convert/numericproc
convert a symbolic function of two variables to a numeric function of two variables
Calling Sequence
Parameters
Description
Examples
convert( f, numericproc)
f
-
function of two variables
Converts a function of two variables into a numeric function of two variables that uses evalhf for low precision numerical evaluation, if possible, evalf otherwise.
g≔x,y↦sinx⋅y−y3
f≔convertg,numericproc
f ≔ procx,ylocalr;tryr ≔ evalhfgx,ycatch:end try;ifnottyper,'numeric'thentryr ≔ evalfgx,ycatch:end tryend if;iftyper,'numeric',r,'undefined'end proc
See Also
evalhf
plottools
Download Help Document