Previous Page Contents

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

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




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000