| (1) |
| (2) |
The log1p method does not have a Maple equivalent. It computes log1p( x ) = log( 1 + x ) accurately, for close to .
| (6) |
| (7) |
| (8) |
Note the difference in the following three computations. In particular, for the last of the three, the expression is computed in Maple's regular floating point domain, where inaccuracies due to round off are not kept track of; and consequently, the final result does not contain the correct answer.
| (10) |
| (11) |
| (13) |
Again, there are different results depending upon how the following is computed.
| (14) |
| (15) |
The sqrt function must be invoked as a fully qualified method from its argument b by using the b:- prefix.
| (16) |
There is no Maple equivalent for the method rsqrt, which computes rsqrt( s ) = 1 / sqrt( s ).
>
|
|
| (17) |
This is undefined because the box contains negative values.
However, there is an alternative method sqrtpos that can be used in such cases.
>
|
|
| (20) |
The expinvexp( b ) command returns a pair of RealBox objects, the first representing exp( b ) and the second one exp( -b ).
| (22) |
| (23) |
Note that the expression above provides for a smaller radius for the second output.
| (24) |
| (25) |
| (28) |
| (29) |
Note that the hypot( a, b ) command may produce a more accurate result than computing the result synthetically.
| (30) |
>
|
|