Functions Available
(The functions have the same syntax and behavior as in C. Note that
the ^ (power) operator in DSL version 3.1 is no longer supported and
has been replaced by the pow(x,y) function.)
- cos(x)
- returns the cosine of x (x in radians)
- sin(x)
- returns the sine of x (x in radians)
- tan(x)
- returns the tangent of x (x in radians)
- acos(x)
- returns the principal value of arccosine of x (x is
between 0 and 1 and the result is between 0 and
)
- asin(x)
- returns the principal value of arcsine of x (x is between
0 and 1 and the result is between -
/2 and
/2)
- atan(x)
- returns the principal value of arc tangent of x (the
result is between -
/2 and
/2)
- atan2(x,y)
- returns the principal value of arc tangent y/x, where the
signs of x and y determine the quadrant of return value (between -
and
)
- cosh(x)
- returns the hybolic cosine of x
- sinh(x)
- returns the hybolic sine of x
- tanh(x)
- returns the hybolic tangent of x
- exp(x)
- returns the exponential function value of x
- pow(x,y)
- returns the y-th power of x; y must be an integer if x is
negative
- log(x)
- returns the natural logarithm of x (x is positive)
- log10(x)
- returns the base-ten logarithm of x (x is positive)
- sqrt(x)
- returns the square root of x (x is positive)
- hypot(x,y)
- returns sqrt(x*x+y*y)
- abs(x)
- returns the absolute value of x
- int(x)
- returns the truncated integer value of x
- double(x)
- returns the floating-point value of x
- ceil(x)
- returns the smallest integer not less than x
- floor(x)
- returns the largest integer not greater than x
- fmod(x,y)
- returns the floating point remainder of x divided by y
(with the same sign as x)
Main
access page
Advanced-Use access.
BTCL Language access
The eval and expr Commands
Logical and Arithmetic Operators
Copyright Biosym/MSI