student
makeproc
convert an expression into a Maple procedure
Calling Sequence
Parameters
Description
Examples
makeproc(expr, x)
makeproc([x1,y1], [x2,y2])
makeproc([x,y],'slope'=m) or
makeproc('slope'=m,[x,y])
expr
-
any expression
x
variable name
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 sin⁡x, 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.
with⁡student:
makeproc(sin(x), x);
x↦sin⁡x
p≔x2+2⁢x+3
f := makeproc(p, x);
f≔x↦x2+2⋅x+3
f⁡x
x2+2⁢x+3
f⁡u
u2+2⁢u+3
makeproc([2,3],[4,5]);
x↦x+1
makeproc([a,b],'slope'=m);
x↦−m⋅a+m⋅x+b
See Also
operator
operators[functional]
Student
unapply
Download Help Document