MTM - Maple Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Connectivity : MTM Package : MTM/double

MTM

 double
 convert to double precision floating point

 Calling Sequence double(A)

Parameters

 A - an expression, or an array, matrix, or vector of expressions

Description

 • The double(A) function evaluates each element of A numerically at a precision of Digits:=15.  If possible, the computation is done using the floating-point hardware of the underlying system using evalhf.  The evaluation is done in double precision.
 • Division by zero will be trapped and Float(infinity) returned instead of raising an error.

Examples

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $\mathrm{double}\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)

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam