eval: add mathematical constants (PI, E, PHI).

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Nicolas George
2011-10-13 13:24:24 +02:00
committed by Michael Niedermayer
parent 4d518f1230
commit 40963ea9e9
2 changed files with 28 additions and 0 deletions

View File

@ -99,6 +99,16 @@ Return the greatest common divisor of @var{x} and @var{y}. If both @var{x} and
@var{y} are 0 or either or both are less than zero then behavior is undefined.
@end table
The following constants are available:
@table @option
@item PI
area of the unit disc, approximatively 3.14
@item E
exp(1) (Euler's number), approximatively 2.718
@item PHI
golden ratio (1+sqrt(5))/2, approximatively 1.618
@end table
Note that:
@code{*} works like AND