Name
Abs
Category
Mathematical functions
Prototype
Abs (number)
Parameters
Must be selected. The number argument is a valid numeric expression of any type
"Return value"
Type of same number
"Exception/Error"
No
Description
Returns the absolute value of the parameter number. The absolute value of a number is to remove the positive sign from the future. For example, ABS (-1) and ABS (1) both return 1. Abs (5.2) =5.2,abs (-5) =5
Example
Dimmynumber
Mynumber=abs (50.3) ' returns 50.3.
Mynumber=abs (-50.3) ' returns 50.3.
Notes
Returns NULL if number contains NULL, or 0 if number is an uninitialized variable.
-----------------------------------------------------------------
Name
Atn
Category
Mathematical functions
Prototype
ATN (number)
Parameters
Required, the number argument is a double or any valid numeric expression.
"Return value"
Double type
"Exception/Error"
No
Description
Returns the tangent value of the parameter number.
Example
Dimpi
Pi=4*atn (1) ' Calculates pi.
Notes
The ATN function's parameter value (number) is the ratio of the sides of the right-angled triangle and returns the angle in radians. This ratio is the angle of the side length divided by the angle of the adjacent side length of the quotient. The range of values is between-PI/2 and PI/2 radians. To convert the angle to radians, multiply the angle by pi/180. To convert radians to angles, multiply radians by 180/pi.
Note: ATN is the inverse trigonometric functions of tan, and the value of tan is the angle, which returns the ratio of two sides of the right-angled triangle. Instead of confusing the ATN with the cotangent function, the cotangent value is the reciprocal of the tangent function, cotangent= (1/tangent).
-----------------------------------------
Name
Cos
Category
Mathematical functions
Prototype
Cos (number)
Parameters
Required, the number argument is double or any valid numeric expression that represents an angle in radians.
"Return value"
Double type
"Exception/Error"
No
Description
Returns the cosine of a specified angle.
Example
Dimmyangle,mysecant
myangle=1.3 ' defines the angle (in radians).
Mysecant=1/cos (MyAngle) ' uses cosine to compute secant (sec ()).
Notes
The Cos function's argument is a corner and returns the ratio on both sides of the right-angled triangle. The ratio is the angle of the adjacent side length divided by the length of the hypotenuse. The values of the results range from 1 to 1.
To convert the angle to radians, multiply the angle by pi/180. To convert radians to angles, multiply radians by 180/pi.
-------------------------------------------
Name
Exp
Category
Mathematical functions
Prototype
EXP (number)
Parameters
Required, the number argument is a double or any valid numeric expression
"Return value"
Double type
"Exception/Error"
No
Description
Returns a specified E (the bottom of the natural logarithm, the value of E is 2.71828).
Example
' This example uses the EXP function to compute one of the sides of E.
Dimmyangle,myhsin
' Defines the angle (in radians).
myangle=1.3
' Computes the hyperbolic sine function value (sin ()).
Myhsin= (EXP (MyAngle)-exp ( -1*myangle))/2
Notes
If the value of number is more than 709.782712893, it can cause an error to occur. The value of constant e is about 2.718282. Note: The function of the EXP function is complementary to the function of log, so it is sometimes called the objection number.