As has already been seen above, some mathematical functions such as are pre-defined within PyXPlot. A list of frequently-used functions which are predefined in PyXPlot is given in Table 2.1†Users with some experience in Python may be interested to know that all of the functions in the core and math modules are recognised.. A list of operators recognised by PyXPlot is given in Table 2.2.
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 |
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. |
frexp( |
Return the mantissa and exponent of |
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. |
modf( |
Return the fractional and integer parts of |
pow( |
Return |
radians( |
Converts angle |
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 |