HOW TO USE CALCULATOR

Calculator for Chemists

 


Previuos: Molecular weight calculations Contents Next: Insert trigonometric functions

3.4. Insert math functions

Every function that is supported by Calculator for Chemists can be inserted by clicking on button with function name or by typing its name on the physical keyboard. All supported functions are not assigned on buttons.

Calculator for Chemists makes these functions instantly available when you type in the function name - or select them from the "Function" choice on the "Insert" menu.

In trigonometric calculations, angles are interpreted as radians (default), degrees or grads, depending on Mode setting (RAD, DEG or GRAD mode).

Factorial (!) Absolute value Integer value
Random number (0-x) Logarithm base 10 Antilogarithm base 10
Logarithm base e Antilogarithm base e Exponential function (e^x)
Square Square root Insert trigonometric functions
Insert Pi number Insert previous answer Insert number in memory

 

Factorial (!)

Returns the factorial of a number. The factorial of a number x is equal to 1*2*3*...*x.

Syntax

cos x!

x is the nonnegative number you want the factorial of, and must be lower or equal to 170. If number is not an integer, it is truncated.

Examples

h2so4 = H2SO4
H2SO4 = H*2+S+O*4 = 1.00794*2+32.066+15.9994*4
H*2+S+O*4 = 1.00794*2+32.066+15.9994*4
1.00794*2+32.066+15.9994*4 = 98,079

Absolute value

Returns the absolute value of a number. The absolute value of a number is the number without its sign.

Syntax

abs(x)

abs x

:abs x

x is the real number of which you want the absolute value.

Examples

abs2 = 2
abs-8 = 8
sqrt(abs(-25)) = 5
sqrtabs-81 = 9

Integer value

Rounds a number down to the nearest integer.

Syntax

int(x)

int x

:int x

x is the real number you want to round down to an integer.

Examples

int(8.9) = 8
int(8.1) = 8
int(-8.9) = -8
int(-8.1) = -8

Random number (0-x)

Returns an evenly distributed integer random number greater than or equal to 0 and less than x.

Syntax

ran(x)

ran x

:ran x

rand(x)

rand x

:rand x

The required number argument (x) can be any valid numeric expression. If you want a random number greater than or equal to 0 and less than 12 type ran(12).

Examples

ran(12) = 7
ran(12) = 3
ran(12) = 11

Logarithm base 10

Returns the common (base-10) logarithm of a number.

Syntax

log(x)

log x

:log x

x is the positive real number for which you want the base-10 logarithm.

Examples

log(1000) = 3
log(426) = 2.629409599102719
log(1E-5) = -5
log(10^5) = 5

Antilogarithm base 10

Returns 10 raised to the power of a number. alog is the inverse of log, the common logarithm of a number. To calculate powers of other bases, use the exponentiation operator (^).

Syntax

alog(x)

alog x

:alog x

x is the exponent applied to the base 10.

Examples

alog(1) equals 10
alog(2) = 100
alog(log(3)) = 3
alog(1E-5) = 1.00002

Logarithm base e

Returns the natural logarithm of a number. Natural logarithms are based on the constant e (2.71828182845904). ln is the inverse of the exp function.

Syntax

ln(x)

ln x

:ln x

x is the positive real number for which you want the natural logarithm.

Examples

ln(100) = 4.6052
ln(2.718281828459045) = 1
ln(exp(7)) = 7

Antilogarithm base e

Returns e raised to the power of number. The constant e equals 2.71828182845904, the base of the natural logarithm. aln is the inverse of ln, the natural logarithm of number. To calculate powers of other bases, use the exponentiation operator (^).

Syntax

aln(x)

aln x

:aln x

exp(x)

exp x

:exp x

x is the exponent applied to the base e.

Examples

aln(1) equals 2.718282 (the approximate value of e)
aln(2) = e^2 or 7.389056
aln(ln(3)) = 3

Exponential function (e^x)

Returns e raised to the power of number. The constant e equals 2.71828182845904, the base of the natural logarithm. To calculate powers of other bases, use the exponentiation operator (^).

Syntax

exp(x)

exp x

:exp x

exp(x)

exp x

:exp x

x is the exponent applied to the base e.

Examples

exp(1) equals 2.718282 (the approximate value of e)
exp2 = e^2 or 7.389056
exp(ln(3)) = 3

Square

The square of a number is that number multiplied by itself.

Syntax

sqr(x)

sqr x

:sqr x

Number is the number for which you want the square.

Generally, the shortcut key for power is Number^Power or x^y (5^2 is equal square of a 5 or 25).

Examples

sqr(9) = 81
sqr -2 = 4
sqr 5 = 25
7**2 = 7^2 = 49

Square root

Returns a positive square root.

Syntax

sqrt(x)

sqrt x

:sqrt x

Number is the number for which you want the square root. If the number is negative, sqrt returns an error value.

The shortcut key for square root is 2_ or _ (2_25 or _25 is equal square root of a 25 or 25^(1/2) = 5)

Generally, the shortcut key for root is Root_Number or y_x (3_54 is equal cube root of a 54 or 54^(1/3)).

Examples

sqrt9 = 3
sqrt(-25) = Root of a negative number
sqrt abs-25 = 5
_25 = 2_25 = 5

Insert Pi number

Returns the value of mathematical constant pi, 3.1415926535898, accurate to 15 digits

Syntax

pi

:pi

Examples

pi/2 = 1.570796326794897
sin(pi/2) = 1

If the radius of a circle is Radius, the following formula calculates the area of the circle:

Radius^2 * pi = Area

Insert previous answer

ans is the equivalent to the result of the last expression. You can compose a task file in which each line contains the result computed in the line before.

Syntax

ans

:ans

Examples

5*2 = 10
log(ans^2) = log(10^2) = 2
log(ans^2) = log(2^2) = 0.602
5*2 = 10
logans^2 = (log10)^2 = 1^2 = 1
log(10^ans) = log(10^1) = 10
5*2 = 10
ans/2+ans/3 = 10/2+10/3 = 8.333

Insert number in memory

Recalls the value stored in the memory.

Syntax

mem

:mem

If you want store another number (last result) into memory, you must enter the command:

#mem

If you want add or subtract result to number into memory, you must enter the command:

#mem+

#mem-

Examples

5*20 = 100
#mem = 100
log mem = 2
#mem+ = 102
mem*3 = 306
#mem- = -204

 


Previuos: Molecular weight calculations Contents Next: Insert trigonometric functions

 

Free software for Windows at periodni.com

 

Copyright © 2014 by Eni Generalic. All rights reserved.