User Tools

Site Tools


function

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
function [2023/02/16 14:22]
daria
function [2023/02/16 14:54] (current)
daria
Line 28: Line 28:
 |**tanh(X)**                                       |**the hyperbolic tangent of the elements of X.**                                                                                                          | |**tanh(X)**                                       |**the hyperbolic tangent of the elements of X.**                                                                                                          |
 |==== Exponential ====                                                                                                                                                                              | |==== Exponential ====                                                                                                                                                                              |
-|exp(X)                                        |the exponential of the elements of X, e to the X.                                                                                                     | +|**exp(X)**                                        |**the exponential of the elements of X, e to the X.**                                                                                                     | 
-|hypot(A,B)                                    |returns SQRT(ABS(A)2+ABS(B)2) carefully computed to avoid underflow and overflow.                                                                     | +|**hypot(A,B)**                                    |**returns SQRT(ABS(A)2+ABS(B)2) carefully computed to avoid underflow and overflow.**                                                                     | 
-|log(X)                                        |the natural logarithm of the elements of X.                                                                                                           +|**log(X)**                                        |**the natural logarithm of the elements of X.**                                                                                                         
-|log10(X)                                      |the base 10 logarithm of the elements of X.                                                                                                           | +|**log10(X)**                                      |**the base 10 logarithm of the elements of X.**                                                                                                           | 
-|log2(X)                                       |the base 2 logarithm of the elements of X.                                                                                                            | +|**log2(X)**                                       |**the base 2 logarithm of the elements of X.**                                                                                                            | 
-|power(X,Y)                                    |the value of the first argument raised to the power of the second argument. Note: you can use the ^ operator in place of the power() function.        | +|**power(X,Y)**                                   |**the value of the first argument raised to the power of the second argument. Note: you can use the ^ operator in place of the power() function.**        | 
-|sqrt(X)                                       |the square root of the elements of X.                                                                                                                 |+|**sqrt(X)**                                       |**the square root of the elements of X.**                                                                                                                 |
 |==== Rounding and Remainder ====              |                                                                                                                                                      | |==== Rounding and Remainder ====              |                                                                                                                                                      |
-|ceil(X)                                       |rounds the elements of X to the nearest integers towards infinity.                                                                                    | +|**ceil(X)**                                       |**rounds the elements of X to the nearest integers towards infinity.**                                                                                    | 
-|fix(X)                                        |rounds the elements of X to the nearest integers towards zero.                                                                                        | +|**fix(X)**                                        |**rounds the elements of X to the nearest integers towards zero.**                                                                                        | 
-|floor(X)                                      |rounds the elements of X to the nearest integers towards minus infinity.                                                                              | +|**floor(X)**                                      |**rounds the elements of X to the nearest integers towards minus infinity.**                                                                              | 
-|mod(x,y)                                      |is x - n×y where n = floor(x/y) if y <> 0. If y is not an integer and the quotient x/y is within roundoff error of an integer, then n is that integer.| +|**mod(x,y)**                                      |**is x - n×y where n = floor(x/y) if y <> 0. If y is not an integer and the quotient x/y is within roundoff error of an integer, then n is that integer.**
-|rem(x,y)                                      |is x - n×y where n = fix(x/y) if y <> 0. If y is not an integer and the quotient x/y is within roundoff error of an integer, then n is that integer. +|**rem(x,y)**                                      |**is x - n×y where n = fix(x/y) if y <> 0. If y is not an integer and the quotient x/y is within roundoff error of an integer, then n is that integer.**  | 
-|round(X)                                      |rounds the elements of X to the nearest integers.                                                                                                     |+|**round(X)**                                      |**rounds the elements of X to the nearest integers.**                                                                                                     |
 |==== General ====                                                                                                                                                                                  | |==== General ====                                                                                                                                                                                  |
-|abs(X)                                        |the absolute value of the elements of X.                                                                                                              | +|**abs(X)**                                        |**the absolute value of the elements of X.**                                                                                                              | 
-|erf(X)                                        |the error function for X                                                                                                                              | +|**erf(X)**                                        |**the error function for X.**                                                                                                                              | 
-|erfc(X)                                       |the complementary error function for X.                                                                                                               | +|**erfc(X)**                                       |**the complementary error function for X.**                                                                                                               | 
-|max(X,..., N)                                 |returns the highest value of the given arguments                                                                                                      | +|**max(X,..., N)**                                 |**returns the highest value of the given arguments.**                                                                                                      | 
-|mean(X,...,N)                                 |returns the arithmetic mean value of the given arguments                                                                                              | +|**mean(X,...,N)**                                 |**returns the arithmetic mean value of the given arguments.**                                                                                              | 
-|min(X,...,N)                                  |returns the lowest value of the given arguments                                                                                                       | +|**min(X,...,N)**                                  |**returns the lowest value of the given arguments.**                                                                                                       | 
-|prod(X,...,N)                                 |returns the product of the given arguments                                                                                                            | +|**prod(X,...,N)**                                 |**returns the product of the given arguments.**                                                                                                            | 
-|sign(X)                                       |For each element of X, SIGN(X) returns 1 if the element is greater than zero, 0 if it equals zero and -1 if it is less than zero.                     | +|**sign(X)**                                       |**For each element of X, SIGN(X) returns 1 if the element is greater than zero, 0 if it equals zero and -1 if it is less than zero.**                     | 
-|sum(X,...,N)                                  |returns the sum of the given arguments                                                                                                                |+|**sum(X,...,N)**                                  |**returns the sum of the given arguments.**                                                                                                                |
 |==== Logical ====                                                                                                                                                                                  | |==== Logical ====                                                                                                                                                                                  |
-|and(X,Y)                                      |bitwise and of X and Y.                                                                                                                               | +|**and(X,Y)**                                      |**bitwise and of X and Y.**                                                                                                                               | 
-|if(X,Y,//Z//                                |if X is true (not zero), Y is returned. If X is false (equal to zero), Z is returned - if defined - otherwise zero (0).                               | +|**if(X,Y,//Z//)**                                 |**if X is true (not zero), Y is returned. If X is false (equal to zero), Z is returned - if defined - otherwise zero (0).**                               | 
-|not(X)                                        |the bitwise inverse of X                                                                                                                              | +|**not(X)**                                        |**the bitwise inverse of X.**                                                                                                                              | 
-|or(X,Y)                                       |bitwise or of X and Y.                                                                                                                                |+|**or(X,Y)**                                       |**bitwise or of X and Y.**                                                                                                                                |
 |==== Table lookup ====                        |                                                                                                                                                      | |==== Table lookup ====                        |                                                                                                                                                      |
-|interpolationExtrapolation(XI,X1,Y1,...,XN,YN)|will return the YI value from the given table \[X,Y\] using linear interpolation, extrapolating outside the boundaries of the set.                    | +|**interpolationExtrapolation(XI,X1,Y1,...,XN,YN)**|**will return the YI value from the given table \[X,Y\] using linear interpolation, extrapolating outside the boundaries of the set.**                    | 
-|interpolationUseEndValues(XI,X1,Y1,...,XN,YN) |will return the YI value from the given table \[X,Y\] using linear interpolation.                                                                     | +|**interpolationUseEndValues(XI,X1,Y1,...,XN,YN)** |**will return the YI value from the given table \[X,Y\] using linear interpolation.**                                                                     | 
-|useInputAbove(XI,X1,Y1,...,XN,YN)             |will return the YI value from the given table \[X,Y\] using nearest neighbour above.                                                                  | +|**useInputAbove(XI,X1,Y1,...,XN,YN)**             |**will return the YI value from the given table \[X,Y\] using nearest neighbour above.**                                                                  | 
-|useInputBelow(XI,X1,Y1,...,XN,YN)             |will return the YI value from the given table \[X,Y\] using nearest neighbour below.                                                                  | +|**useInputBelow(XI,X1,Y1,...,XN,YN)**             |**will return the YI value from the given table \[X,Y\] using nearest neighbour below.**                                                                  | 
-|useInputNearest(XI,X1,Y1,...,XN,YN)           |will return the YI value from the given table \[X,Y\] using nearest neighbour.                                                                        |+|**useInputNearest(XI,X1,Y1,...,XN,YN)**           |**will return the YI value from the given table \[X,Y\] using nearest neighbour.**                                                                        |
 |==== Arithmetic ====                          |                                                                                                                                                      | |==== Arithmetic ====                          |                                                                                                                                                      |
-|binomial(N,K)                                 |the binomial coefficient, often also referred to as "n over k"                                                                                        | +|**binomial(N,K)**                                 |**the binomial coefficient, often also referred to as "n over k".**                                                                                        | 
-|factorial(N)                                  |the product of all the integers from 1 to N                                                                                                           |+|**factorial(N)**                                  |**the product of all the integers from 1 to N.**                                                                                                           |
  
 ===== See also ===== ===== See also =====
function.1676553778.txt.gz · Last modified: 2023/02/16 14:22 by daria