vipbion.blogg.se

Calcpad exception
Calcpad exception










calcpad exception

You have to insert a separate line containing: #deg for degrees or #rad for radians.

calcpad exception

Alternatively, it can be specified inside the code. This option is selected trough the radio buttons above the output window. Arguments of trigonometric functions can be in degrees or radians. Exceptions from this rule are " cot(0)" and " coth(0)", which return " +∞". When arguments are out of range, the function returns " Undefined". Multiple arguments must be separated by semicolons " ". They can be constants, variables or any valid expression. spline( x a b c…) - performs Hermite spline interpolation Īrguments must be enclosed in round brackets.line( x a b c…) - performs linear interpolation among the specified values for parameter x.take( n a b c…) - returns the n-th element from the list.If none is satisfied, it returns the default value in the end Conditions are checked from left to right. switch( … ) - returns the value for which the respective condition is satisfied.The condition is satisfied when it evaluates to any non-zero number if( ) - if the condition cond is satisfied, the function returns the first value, otherwise it returns the second value.mean( x y z…) - geometric mean = n-th root( x.product( x y z…) - product of multiple values = x.average( x y z…) - average of multiple values = ( x + y + z…)/n.srss( x y z…) - square root of sum of squares = sqrt( x² + y² + z²…).

calcpad exception

  • sumsq( x y z…) - sum of squares = x² + y² + z²….
  • sum( x y z…) - sum of multiple values = x + y + z….
  • max( x y z…) - the greatest of of multiple values.
  • min( x y z…) - the smallest of multiple values.
  • random( x) - a random number between 0 and x.
  • trunc( x) - rounds to the nearest integer towards zero.
  • ceiling( x) - rounds to the greater integer.
  • floor( x) - rounds to the smaller integer.
  • round( x) - rounds to the nearest integer.
  • calcpad exception

    sqr( x) or sqrt( x) - square root ( √ x ), defined for each x ≥ 0.log 2( x) - binary logarithm (with base 2), for each x > 0.ln( x) - natural logarithm (with base e ≈ 2.7183), for each x > 0.log( x) - decimal logarithm (with base 10), for each x > 0.atanh( x) - inverted hyperbolic tangent = 1/2.acosh( x) - inverted hyperbolic cosine = ln( x + √ x + 1.asinh ( x) - inverted hyperbolic sine = ln( x + √ x 2 + 1), defined for -∞ ≤ x ≤ +∞.asec( x) - inverted secant = acos(1/ x).acsc( x) - inverted cosecant = asin(1/ x).atan2( x y) - the angle whose tangent is the quotient of y and x.acos( x) - inverted cosine, defined for -1 ≤ x ≤ 1.asin ( x) - inverted sine, defined for -1 ≤ x ≤ 1.coth( x) - hyperbolic cotangent = (e x + e - x)/(e x - e - x), for x ≠ 0.sech( x) - hyperbolic secant = 1/cosh( x).csch( x) - hyperbolic cosecant = 1/sinh( x).tanh ( x) - hyperbolic tangent = (e x - e - x)/(e x + e - x).cosh( x) - hyperbolic cosine = (e x + e - x)/2.sinh( x) - hyperbolic sine = (e x - e - x)/2.abs( x) - absolute value (modulus) | x|.Calcpad includes a library with common math functions, ready to use:












    Calcpad exception