Go to the first, previous, next, last section, table of contents.
- eval(obj[,prec])
-
:: Evaluate obj numerically.
- return
-
number or expression
- obj
-
general expression
- prec
-
integer
-
Evaluates the value of the functions contained in obj as far as
possible.
-
The computation is done by PARI (See section
pari
).
-
When prec is specified, computation will be performed with a
precision of about prec-digits.
If prec is not specified, computation is performed with the
precision set currently. (See section
setprec
)
-
Currently available numerical functions are listed below.
Note they are only a small part of whole PARI functions.
sin
, cos
, tan
,
asin
, acos
, atan
,
sinh
, cosh
, tanh
,
asinh
, acosh
, atanh
,
exp
, log
, pow(a,b) (a^b)
-
Symbols for special values are as the followings.
- @i
-
unit of imaginary number
- @pi
-
the number pi,
the ratio of circumference to diameter
- @e
-
Napier's number (exp(1))
[118] eval(exp(@pi*@i));
-1.0000000000000000000000000000
[119] eval(2^(1/2));
1.414213562373095048763788073031
[120] eval(sin(@pi/3));
0.86602540378443864674620506632
[121] eval(sin(@pi/3)-3^(1/2)/2,50);
-2.78791084448179148471 E-58
- References
-
section
ctrl
, section setprec
, section pari
.
Go to the first, previous, next, last section, table of contents.