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↦sin⁡x⋅y−y3
f≔convert⁡g,numericproc
f ≔ procx,ylocalr;tryr ≔ evalhf⁡g⁡x,ycatch:end try;ifnottype⁡r,'numeric'thentryr ≔ evalf⁡g⁡x,ycatch:end tryend if;if⁡type⁡r,'numeric',r,'undefined'end proc
See Also
evalhf
plottools
Download Help Document