logo

PowerCalc 1.0

Reference guide

Table of contents

  1. Supported operators and constants
    1. Common operators
    2. Constants
    3. Operator precedence

Supported operators and constants

Common operators

+		addition
-		subtraction
*		multiplication
/		division
^		raise to power of.. ( ex. x^2 )
sqrt(..)	squareroot
sin(..)		trigonometric functions
cos(..)		-"-
tan(..)  	-"-
cotan(..)	-"-
asin(..)	arcus functions
acos(..)	-"-
atan(..)	-"-
acotan(..)	-"-
sinh(..)	hyperbolic functions
cosh(..)	-"-
tanh(..)	-"-
exp(..)		constant e raised to..
ln(..)		the natural logaritm

abs(..)		absolute value of....

ceil(..)	Returns the smallest (closest to negative infinity) value that 
		is not less than the argument and is equal to a mathematical integer. 
		Example: ceil( 3.2 ) = 4.0 , ceil( 9.9 ) = 10.0

floor(..)	Returns the largest (closest to positive infinity)  
		value that is not greater than the argument and is  
		equal to a mathematical integer.  
		Example: floor( 3.2 ) = 3.0 , floor( 9.9 ) = 9.0

fac(..)		faculty of...  
		n*(n-1)*(n-2)*..*1

sfac(..)	semifaculty of..  
		n*(n-2)*(n-4)*..*4*2 if n is even  
		n*(n-2)*(n-4)*..*3*1 if n is not even

round(..)	rounds the argument to the closest mathematical integer.  
		Example: round( 3.4 ) = 3.0, round( 4.99 ) = 5.0 etc...
fpart(..)	returns the decimalvalue of its argument  
		Example: fpart(2.345) = 0.345, fpart(4) = 0.0 etc..

10log(..)	logaritm of 10.
		Example: 10log(10) = 1.0
%		Modulo.                

            

Up...

Supported constants

pi		Same value as java.lang.Math.PI, 3.14159.....
euler		Same value as java.lang.Math.E, 2.7182...
infinity	Same value as java.lang.Double.INFINITY
-infinity	Same value as java.lang.Double.NEGATIVE_INFINITY
nan			Same value as java.lang.Double.NaN
true		1.0
false		0.0
            

Up...

Operators precendence

In order of evaluation

1) ! 
2) cos sin tan sqrt exp.....etc 
3) ^ 
4) * / % 
5) log 
6) + - 
        

Up...