 operator - Maple Help

type/operator

check for a functional operator Calling Sequence type(f, operator) Parameters

 f - any expression Description

 • A functional operator in Maple is a special form of a function. See operators/functional or refer to the Functional Operators section of the Maple Expressions chapter of the Maple Programming Guide for a full description of functional operators.
 • The call type(f, operator) returns true if f is a functional operator, and false otherwise. Examples

 > $f≔x↦3\cdot x+5$
 ${f}{≔}{x}{↦}{3}{\cdot }{x}{+}{5}$ (1)
 > $\mathrm{type}\left(f,\mathrm{operator}\right)$
 ${\mathrm{true}}$ (2)
 > $g≔\left(x,y\right)↦\mathrm{sin}\left(x\right)\cdot \mathrm{cos}\left(y\right)+y\cdot x$
 ${g}{≔}\left({x}{,}{y}\right){↦}{\mathrm{sin}}{}\left({x}\right){\cdot }{\mathrm{cos}}{}\left({y}\right){+}{y}{\cdot }{x}$ (3)
 > $\mathrm{type}\left(g,\mathrm{operator}\right)$
 ${\mathrm{true}}$ (4)
 > p := proc(x) option operator; x^3-5 end proc;
 ${p}{≔}{\mathbf{proc}}\left({x}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{option}}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathrm{operator}}{;}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{{x}}^{{3}}{-}{5}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end proc}}$ (5)
 > $\mathrm{type}\left(p,\mathrm{operator}\right)$
 ${\mathrm{true}}$ (6)
 > q := proc(x) x^3-5 end proc;
 ${q}{≔}{\mathbf{proc}}\left({x}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{x}{^}{3}{-}{5}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end proc}}$ (7)
 > $\mathrm{type}\left(q,\mathrm{operator}\right)$
 ${\mathrm{false}}$ (8)