fp::unapply
-- create a
procedure from an expressionfp::unapply
(e,x)
interprets the expression
e
as a function in x
and returns a procedure
computing that function.
fp::unapply(e <, x...>)
e |
- | expression |
x |
- | identifier |
A procedure.
e
fp::unapply
views the expression e
as a
function in the indeterminates x,...
and returns a
procedure computing that function.e
found by indets
are used.Get the procedure computing
sin(x)^2+cos(y)^2
:
>> s := fp::unapply(sin(x)^2 + cos(y)^2, x, y)
(x, y) -> cos(y)^2 + sin(x)^2