bm252 Functions

Calculations


 

bm281 random number (0 <= x < 1)

 

The random number returns the value of 0 till the number entered. Without specifying the range, the random number returns 0 till 1. The interval of possible random number values includes zero, but it does not include the terminal value. For example, for the implicit interval 0 till 1 the resulting random number can reach the value of 0, but it can never reach the value of 1, the number being always close below the value of 1 as the maximum.

 

bm282 square power

bm283 square root

bm284 absolute value

bm285 integer part

bm286 fractional part

bm287 increment (adds 1)

bm288 decrement (subtracts 1)

 

The function of splitting the number in the integer and the fractional part does not depend on the sign, int(-x) = -int(x).

 

bm289 sine

bm290 cosine

bm291 tangent

bm292 cotangent

bm293 arcsine

bm294 arccosine

bm295 arctangent

bm296 arccotangent

bm297 convert degrees to radians

bm298 convert radians to degrees

 

The goniometric functions calculations are carried out in radian. If a calculation in degree is required, the function converting degrees and radians may be used.

 

bm299 decadic logarithm

bm300 natural logarithm

bm301 natural exponential function

bm302 factorial

 

The factorial calculation is carried out for an argument that is rounded up to the nearest integer value. The valid factorial argument ranges between -170 and +170. For negative argument values the calculation result for an odd number is negative, for an even number positive (odd or even number of multiplication operations).

 

bm303 distance of point

  bm304 X coordinate of point

  bm305 Y coordinate of point

 

The distance of point function serves to calculate a point’s distance from the coordinate system origin or mutual distances of two points. As parameters the point’s coordinates or the two points‘ coordinate differences are specified.

 

bm306 angle of point

  bm304 X coordinate of point

  bm305 Y coordinate of point

 

The angle of point function serves to calculate the point angle from the X-axis of the coordinate system or to calculate the angle of the direction defined by two points. As parameters the point’s coordinates or the two points‘ coordinate differences are specified.