Close
Close window
Overview - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

evalf

evaluate using floating-point arithmetic

Calling Sequence

evalf(expression)

Parameters

expression

-

expression to be evaluated

Basic Information

Description

The evalf command numerically evaluates expressions (or subexpressions) involving constants (for example, π, ⅇ, and γ ) and mathematical functions (for example, exp, ln, sin, arctan, cosh, GAMMA, and erf).

For a complete list of constants, see Initially Known Names . For a complete list of mathematical functions, see Initially Known Mathematical Functions .

Output

The evalf command returns a floating-point or complex floating-point number or expression.

Examples

>

π

π

(1)
>

evalfπ

3.141592654

(2)
>

evalfcos1+sin1I

0.5403023059+0.8414709848I

(3)
>

evalf34x2+13xsqrt2

0.7500000000x2+0.3333333333x1.414213562

(4)

The evalf command can be used to evaluate more complex mathematical functions.

>

fintexpx3,x=0..1

f01ⅇx3ⅆx

(5)
>

evalff

1.341904418

(6)
>

gSum1sqrtx,x=1..1000

gx=110001x

(7)
>

evalfg

61.80100877

(8)

The number of significant digits can be restricted with the evalf command.

>

evalf3π

3.14

(9)
>

evalf15π

3.14159265358979

(10)

Details

For detailed information including:

Complete description of all parameters

Controlling numeric precision of computations

Special evaluation for user-defined constants and functions

see the evalf/details help page.


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /