| () | Brackets |
| * | Multiplication |
| / | Division |
| % | Returns the remainder of a division, only supported for integers |
| + | Addition |
| - | Subtraction |
| BitOr | Bitwise OR function, only supported for integers |
| BitAnd | Bitwise AND function, only supported for integers |
| BitXOR | Bitwise XOR function, only supported for integers |
| = or == | Equal, result is False=0, True=1 |
| <> | Not equal, result is False=0, True=1 |
| < | Less, result is False=0, True=1 |
| <= | Less equal, result is False=0, True=1 |
| > | Greater, result is False=0, True=1 |
| >= | Greater equal, result is False=0, True=1 |
| | or OR | Logical or (0=False, all other values=True), only supported for integers, result is False=0, True=1 |
| & or AND | Logical and (0=False, all other values=True), only supported for integers, result is False=0, True=1 |
| integer?expression1:expression2 | Returns expression1 if integer is non-zero else result is expression2 |
| | |
| Sin/Cos/Tan/ArcSin/ArcCos/ArcTan | Standard trigonometric functions |
| todB/todBpwr/fromdB/fromdBpwr | Convert to and from dB |
| ArcTan2(y,x) | ArcTan(y/x) angle is in the correct quadrant |
| CoTan(x) | Same as 1/tan(x) |
| Hypot(x,y) | Same as sqrt(sqr(x)+sqr(y)) |
| sinh/cosh/tanh/ArcSinh/ArcCosh/arcTanh | Hyperbolic trigonometric functions |
| Ln/Log10/Log2 | Logarithm functions Natural/base 10/base 2 |
| LogN(Base,x) | Logarithm with any base |
| Power(value,exponent) | Raises value to exponent |
| Exp(x)/ALn(x) | Raises e to the power of x |
| ALog(x) | Raises 10 to the power of x |
| e | Returns e (base of the natural logarithms) |
| pi | Returns pi |
| sqr(x) | Returns x*x |
| sqrt(x) | Returns square root of x |
| SolveSqr(x2,x,c) | Solve a quadrantic equation, the result array may contain complex numbers |
| SolvePoly(xn,xn-1,....,x,c)/SolvePoly(array) | Solve a n degree polynomial, the result array may contain complex numbers |
| EvalPoly(v,xn,xn-1,....,x,c)/EvalPoly(v,array) | Evaluate a polynomial |
| InterpolateSpline(x,x1,y1,x2,y2,x3,y3,....)/InterpolateSpline(x,Array) | Interpolate y from x using spline function |
| Array(v1,v2,v3,v4) | Create a array, first value is placed at index 0 |
| Arrayr(v1,v2,v3,v4) | Create a array, last value is placed at index 0 |
| hex/dec/oct/bin | Returns a hex/dec/oct/bin string of the integer part of the value |
| cpx(r,i)/complex(r,i) | Create a complex number |
| int(x) | Cuts any digits after the point |
| frac(x) | Returns only digits after the point |
| ComplexAngle(x) | Returns the angle of a complex number |
| ComplexVector(x) | Returns the vector length of a complex number |
| ComplexR(x) | Returns the real part of a complex number |
| ComplexI(x) | Returns the complex part of a complex number |
| StdR(x)/StdC(x)/StdL(x) | Round value to standard for specified component |
| StdE3(x)/.../StdE192(x) | Round value to specified standard |
| FilterLP1(f0,f) | Calculate the attenuation in dB for a first order low pass filter with 3 dB frequence f0 at frequence f |
| FilterHP1(f0,f) | Calculate the attenuation in dB for a first order high pass filter with 3 dB frequence f0 at frequence f |
| FilterLP1cpx(f0,f) | Calculate the complex factor for a first order low pass filter with 3 dB frequence f0 at frequence f |
| FilterHP1cpx(f0,f) | Calculate the complex factor for a first order high pass filter with 3 dB frequence f0 at frequence f |
| RIAA(freq) | Convert a frequence to RIAA dB value |
| RIAAIEC(freq) | Convert a frequence to RIAA, with IEC modification dB, value |
| RIAAcpx(freq) | Calculate the complex factor for a frequence according to the RIAA specification "todB(ComplexVector(RIAAcpx(freq)))" is the same as "RIAA(freq)" |
| RIAAIECcpx(freq) | Calculate the complex factor for a frequence according to the RIAA, with IEC modification, specification |
| CRC8(poly,initial,string)/CRC16(poly,initial,string)/CRC32(poly,initial,string) | Calculate crc for specified string. Some standard poly's:
| Poly | Initial | Test "123456789" | Name |
| $a001* | 0 | BB3D | CRC16 standard crc-16 |
| $8408 | $ffff | 29B1 | CRC16 CITT (REMARK: a bitreversal is automatic done when using this poly) |
| $edb88320* | $ffffffff | CBF43926 | CRC32 Standard crc-32 (REMARK: output is automatic inverted when using this poly) |
All other poly's are calculated without special handling.
*Using 0 as poly will preload this poly and initial value, ie. using crc32(0,0,data) is the same as using crc32($edb88320,$ffffffff,data);
I your need code for crc calculations see CRC calculations
Remark:All these functions are working with inverted poly's, see CRC and Checksum hints for more explanation
|
| CRCPoly(coefficients) | Calculate a poly value from a list of coefficients i.e. CRCPoly(16,15,2,0) gives $a001 as poly value for x^16+x^15+x^2+x^0 |
| CRCPolyReverse(ReversePolyValue) | Reverse all bits in poly value. The poly value used here is with lsb coefficient FIRST and msb-1 coefficient last |
| BoxSurface(x,y,z) | Calculates the surface area of a box. To estimate the mass of the box use (for a 10*20*30cm box made of 1mm aluminium): BoxSurface(100m,200m,300m)*1m*aluminium_density |
| UnitConversion(FromUnit,ToUnit,Value) | Convert a value between any two units. Both full and short unit names can be used. Example: UnitConversion("atm","mmHg",1) |
| ToSI(Unit,Value) | Convert a value to corrosponding SI unit |
| FromSI(Unit,Value) | Convert a value to from corrosponding SI unit |
| | |