As has already been seen above, some mathematical functions such as are pre-defined within PyXPlot. A list of all of PyXPlot’s pre-defined functions is given in Table 2.1. A list of operators recognised by PyXPlot is given in Table 2.3.
acos( |
Return the arc cosine (measured in radians) of |
asin( |
Return the arc sine (measured in radians) of |
atan( |
Return the arc tangent (measured in radians) of |
atan2( |
Return the arc tangent (measured in radians) of |
ceil( |
Return the ceiling of |
cos( |
Return the cosine of |
cosh( |
Return the hyperbolic cosine of |
degrees( |
Convert angle |
erf( |
Return the error function, i.e. the Gaussian (normal) distribution function. |
exp( |
Return |
fabs( |
Return the absolute value of the float |
floor( |
Return the floor of |
fmod( |
Return fmod(x, y), according to platform C. x % y may differ. |
gamma( |
Return the gamma function. |
hypot( |
Return the Euclidean distance, |
ldexp( |
Return |
log( |
Return the logarithm of |
log10( |
Return the base 10 logarithm of |
max( |
Return the greatest of the numerical values supplied. |
min( |
Return the least of the numerical values supplied. |
pow( |
Return |
radians( |
Converts angle |
random() |
Return a pseudo-random number in the range |
sin( |
Return the sine of |
sinh( |
Return the hyperbolic sine of |
sqrt( |
Return the square root of |
tan( |
Return the tangent of |
tanh( |
Return the hyperbolic tangent of |
+ |
Algebraic sum |
- |
Algebraic subtraction |
* |
Algebraic multiplication |
** |
Algebraic exponentiation |
/ |
Algebraic division |
% |
Modulo operator |
<< |
Left binary shift |
>> |
Right binary shift |
& |
Binary and |
| |
Binary or |
|
Logical exclusive or |
< |
Magnitude comparison |
> |
Magnitude comparison |
<= |
Magnitude comparison |
>= |
Magnitude comparison |
== |
Equality comparison |
!= |
Equality comparison |
<> |
Alias for != |
and |
Logical and |
or |
Logical or |