Mathematical Functions and Operations

Table 11.1 lists the common mathematical functions which can be used in databases (tdb file) as well as in Pandat GUI table column expressions. Table 11.2 and Table 11.3 lists the mathematical operations which could be used in table column expressions.

Table 11.1: Mathematical Functions for Databases and Table Column Expressions

Name

Comments

sin(x), cos(x), tan(x), tan2(y,x)

Trigonometric functions. tan2(y,x)=tan(y/x)

asin(x), acos(x), atan(x), atan2(y,x)

Arcus functions. atan2(y,x)=atan(y/x)

sinh(x), cosh(x), tanh(x)

Hyperbolic functions

asinh(x), acosh(x), atanh(x)

Arcus hyperbolic functions

log2(x), log10(x), ln(x)

Hyperbolic functions

exp(x)

Exponential function

abs(x)

Absolute value

sqrt(x)

Square root

rint(x)

Round to integral value

sign(x)

Sign function

Table 11.2: Mathematical Operations for Pandat Table Column Expressions

Name

Operation

Examples

+, -, *, /, ^

Addition, subtraction, multiplication, division and exponentiation

H-T*S 
x(Al)+x(Ni) 
1/T

//

Numerical derivative

H//T ( See Section Table Column Functions for an example)


Table 11.3: Logical Operators for Pandat Table Column Expressions

Name

Meaning

Examples

=

equal to

#phases=2 
phase_name=Liquid+Fcc+Hcp 
tieline=5 (specifying tieline density)

!=

not equal to

phase_name!=Fcc

>

larger than

T>1200

<

less than

x(Al)<0.5

>=

larger than or equal to

f(@Liquid)>=0

<=

less than or equal to

a(Al)<=0.3