single - Maple Help

MTM

 single
 convert to single precision floating point

Description

 • The single(expr) function evaluates expr numerically at a precision of no less than Digits := 10.  If possible, the computation is done using the floating-point hardware of the underlying system via evalhf (which uses double precision). Otherwise the evaluation is done in single precision.
 • Division by zero will be trapped and Float(infinity) returned instead of raising an error.

Examples

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $\mathrm{single}\left(\mathrm{Array}\left(\left[\mathrm{sin}\left(1\right),\mathrm{cos}\left(1\right)\right]\right)\right)$
 $\left[\begin{array}{cc}{0.841470984807897}& {0.540302305868140}\end{array}\right]$ (1)