eval(function,arg)

Evaluates the given function at the given argument.


Syntax

eval(function,arg)
a: scalar Text - function of A
b: any - value of A
return: function evaluated at the given value of A

Usage

This is designed for use in cases where the function is determined at runtime.

Location

menu: veeos ==> Math ==> eval

library: mathLib

Example

eval("2+a^2", 4) returns 18
eval("3*A+15","4") returns 44415

Notes

When a formula is known at programming time it of course can be coded into a formula and then evaluated at runtime. However in cases such as filters where the function to be evaluated is itself determined only at runtime, one needs the ability to evaluate that function. eval(function,arg) provides a convenient way to do this

Reference

Dependencies

Supported On

VEE 7.0+, all platforms

See Also

ifThenEval


© 2015. All Rights Reserved.  Stan Bischof (stan@worldbadminton.com). Last updated 20 October 2015 20:38. © 2015.