student(deprecated)/makeproc - Help

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

student

 makeproc
 convert an expression into a Maple procedure

 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 $\mathrm{sin}\left(x\right)$, 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.

 > $\mathrm{with}\left(\mathrm{student}\right):$
 > makeproc(sin(x), x);
 ${x}{→}{\mathrm{sin}}{}\left({x}\right)$ (1)
 > $p≔{x}^{2}+2x+3$
 ${p}{≔}{{x}}^{{2}}{+}{2}{}{x}{+}{3}$ (2)
 > f := makeproc(p, x);
 ${f}{≔}{x}{→}{{x}}^{{2}}{+}{2}{}{x}{+}{3}$ (3)
 > $f\left(x\right)$
 ${{x}}^{{2}}{+}{2}{}{x}{+}{3}$ (4)
 > $f\left(u\right)$
 ${{u}}^{{2}}{+}{2}{}{u}{+}{3}$ (5)
 > makeproc([2,3],[4,5]);
 ${x}{→}{x}{+}{1}$ (6)
 > makeproc([a,b],'slope'=m);
 ${x}{→}{-}{m}{}{a}{+}{m}{}{x}{+}{b}$ (7)