## `fp::unapply` -- create a procedure from an expression

#### Introduction

`fp::unapply``(e,x)` interprets the expression `e` as a function in `x` and returns a procedure computing that function.

#### Call(s)

`fp::unapply(e <, x...>)`

#### Parameters

`e` | - | expression
`x` | - | identifier

#### Returns

A procedure.

### Overloadable:

`e`

#### Related Functions

`fp::expr_unapply`

#### Details

- `fp::unapply` views the expression `e` as a function in the indeterminates `x,...` and returns a procedure computing that function.
- If no indeterminates are given, any indeterminates of `e` found by `indets` are used.

#### Example 1

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

#### Changes

- new function

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000