student(deprecated)/makeproc - Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : student(deprecated)/makeproc

student

  

makeproc

  

convert an expression into a Maple procedure

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

makeproc(expr, x)

makeproc([x1,y1], [x2,y2])

makeproc([x,y],'slope'=m) or

makeproc('slope'=m,[x,y])

Parameters

expr

-

any expression

x

-

variable name

Description

• 

Important: The student package has been deprecated. Use the superseding package Student instead.

• 

The result of calling makeproc(expr, x) is a procedure which when evaluated at x returns expr.

• 

It is useful when evaluating an expression at several values of x.

• 

If expr is an unevaluated function call such as sinx, then the name of the function is returned.

• 

The result of calling makeproc([x1,y1], [x2,y2]) is a procedure with the result being the line created from two given points [x1,y1] and [x2,y2].

• 

The result of calling makeproc([x,y], 'slope'=m) or makeproc('slope'=m, [x,y]) is a procedure with the result being the line created from the point [x, y] and the slope m.

• 

The command with(student,makeproc) allows the use of the abbreviated form of this command.

Examples

Important: The student package has been deprecated. Use the superseding package Student instead.

withstudent:

makeproc(sin(x), x);

x→sinx

(1)

px2+2x+3

p:=x2+2x+3

(2)

f := makeproc(p, x);

f:=x→x2+2x+3

(3)

fx

x2+2x+3

(4)

fu

u2+2u+3

(5)

makeproc([2,3],[4,5]);

x→x+1

(6)

makeproc([a,b],'slope'=m);

x→ma+mx+b

(7)

See Also

operator

operators[functional]

Student

unapply

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam