Skip to content

Math Library

Jeremy edited this page Feb 2, 2023 · 16 revisions

LLMath

Overview

Complex Math

Math_CxABS

Finds the absolute value of a complex number.

Math_CxACOS

Finds the arccosine of a complex number.

Math_CxACOSH

Finds the hyperbolic arccosine of a complex number.

Math_CxADD

Adds two complex numbers.

Math_CxARG

Finds the phase angle of a complex number.

Math_CxASIN

Finds the arcsine of a complex number.

Math_CxASINH

Finds the hyperbolic arcsine of a complex number.

Math_CxATAN

Finds the arctangent of a complex number.

Math_CxATANH

Finds the hyperbolic arctangent of a complex number.

Math_CxCONJ

Finds the conjugate of a complex number.

Math_CxCOS

Finds the cosine of a complex number.

Math_CxCOSH

Finds the hyperbolic cosine of a complex number.

Math_CxCOT

Finds the cotangent of a complex number.

Math_CxCOTH

Finds the hyperbolic cotangent of a complex number.

Math_CxCSC

Finds the cosecant of a complex number.

Math_CxCSCH

Finds the hyperbolic cosecant of a complex number.

Math_CxDIV

Divides two complex numbers.

Math_CxEXP

Finds the exponent of a complex number.

Math_CxIMAG

Imaginary part of a complex number.

Math_CxINV

Finds the inverse of a complex number.

Math_CxLOG

Finds the logarithm of a complex number.

Math_CxLOG10

Finds the logarithm (base-10) of a complex number.

Math_CxLOGB

Finds the logarithm (base-B) of a complex number.

Math_CxMOV

Copies a complex number into another.

Math_CxMUL

Multiplies two complex numbers.

Math_CxPOL

Finds the complex number for a given polar form.

Math_CxPOW

Finds the power function of a complex number.

Math_CxREAL

Real part of a complex number.

Math_CxSEC

Finds the secant of a complex number.

Math_CxSECH

Finds the hyperbolic secant of a complex number.

Math_CxSET

Math_CxSIN

Finds the sine of a complex number.

Math_CxSINH

Finds the hyperbolic sine of a complex number.

Math_CxSQRT

Finds the square root of a complex number.

Math_CxSUB

Subtracts two complex numbers.

Math_CxTAN

Finds the tangent of a complex number.

Math_CxTANH

Finds the hyperbolic tangent of a complex number.

Math_CxVAL

Vector Math

Math_VxABS

Math_VxADD

Math_VxANG

Math_VxCPRO

Math_VxDPRO

Math_VxEQU

Math_VxMOV

Math_VxMULS

Math_VxNEQ

Math_VxNORM

Math_VxNULL

Math_VxORTH

Math_VxPARA

Math_VxREV

Math_VxSQMAG

Math_VxSUB

Math_VxXANG

Math_VxYANG

Math_VxZANG

Physical / Enviro Math

Math_AtmosPressure

Math_RelativeHumidity

Math_RTD

Math_ThermoAny

Math_ThermoB

Math_ThermoE

Math_ThermoJ

Math_ThermoK

Math_ThermoN

Math_ThermoR

Math_ThermoS

Math_ThermoT

Math_WetBulb

Math_WetBulbTemperature

Calculates wet bulb temperature.

image

Background: Wet bulb temperature is used in cooling tower controls to give an indication of what temperature the cooling tower can achieve. If the wet bulb temperature is 14 degrees C, regardless of how hard you run the cooling tower, you won't be able to go past it (or even reach it). This gives you a limit that you can use as a floor for the cooling tower fan's PID setting to reduce the energy consumption at the fan.

Credit: cardosocea

Dependencies

  • UDT: ST_Math_Complex
  • UDT: ST_Math_Vector3D
Clone this wiki locally