Difference between revisions of "Math functions"

Line 2: Line 2:
 
<languages />
 
<languages />
 
<translate>
 
<translate>
[[Analytica User Guide]] >
+
[[Analytica User Guide]] > [[Using Expressions]] > [[Math functions]]
  
 
These functions can be accessed from the '''Math '''library from the '''Definition '''menu.
 
These functions can be accessed from the '''Math '''library from the '''Definition '''menu.

Revision as of 08:00, 3 September 2015


Analytica User Guide > Using Expressions > Math functions

These functions can be accessed from the Math library from the Definition menu.

Abs(x): Returns the absolute value of x. When x in complex, returns the magnitude, see Complex number functions.

Abs(180) 180
Abs(-210) 210

Ceil(x): Returns the smallest integer that is greater than or equal to x.

Ceil(3.1) 4
Ceil(5) 5
Ceil(-2.9999) -2
Ceil(-7) -7

Ceil(x,digits): Returns the smallest number with the indicated of digits to the right of the decimal that is greater than or equal to x.

Ceil(Pi,4) 3.1416
Ceil(-12345,-2) -12300

Floor(x): Returns the largest integer that is smaller than or equal to x.

Floor(2.999) 2
Floor(3) 3
Floor(-2.01) -3
Floor(-5) -5

See Also

Function calls and parameters <- Math functions -> Numbers and text
Comments


You are not allowed to post comments.