User Tools

Site Tools


function

Differences

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

Link to this comparison view

Next revision
Previous revision
function [2019/11/18 13:34]
127.0.0.1 external edit
function [2023/02/16 14:54] (current)
daria
Line 4: Line 4:
  
 It is also possible to create custom functions, written in [[http://en.wikipedia.org/wiki/Java_(programming_language)|Java]]. For more information see [[Creating_custom_functions|Creating custom functions]]. It is also possible to create custom functions, written in [[http://en.wikipedia.org/wiki/Java_(programming_language)|Java]]. For more information see [[Creating_custom_functions|Creating custom functions]].
 +
 +All listed functions may be used bu using [[constants_editing_tool]|Constant editing tool]].
  
 Here follows a short description of functions included in the [[Expression_editing_tool|Expression editing tool]]. Here follows a short description of functions included in the [[Expression_editing_tool|Expression editing tool]].
  
 |==== Constant ====                            |                                                                                                                                                      | |==== Constant ====                            |                                                                                                                                                      |
-|end_time                                      |The simulation end time, as specified in [[Simulation_settings|simulation settings]]                                                          +|**end_time**                                      |**The simulation end time, as specified in [[Simulation_settings|simulation settings]].  **                                                        
-|eps                                           |the distance from 1.0 to the next larger double precision number, that is EPS=2-52.                                                                   | +|**eps**                                           |**the distance from 1.0 to the next larger double precision number, that is EPS=2-52.**                                                                   | 
-|iteration                                     |The current iteration, for probabilistic simulations.                                                                                                 | +|**iteration **                                    |**The current iteration, for probabilistic simulations.**                                                                                                 | 
-|pi                                            |4×atan(1) = imag(log(-1)) = 3.1415926535897....                                                                                                       | +|**pi **                                           |**4×atan(1) = imag(log(-1)) = 3.1415926535897....**                                                                                                       | 
-|start_time                                    |The simulation start time, as specified in [[Simulation_settings|simulation settings]]                                                        | +|**start_time**                                    |**The simulation start time, as specified in [[Simulation_settings|simulation settings]].**                                                        | 
-|time                                          |the current simulation time-point                                                                                                                     |+|**time**                                          |**the current simulation time-point.    **                                                                                                                 |
 |==== Trigonometric ====                                                                                                                                                                            | |==== Trigonometric ====                                                                                                                                                                            |
-|acos(X)                                       |the arccosine of the elements of X.                                                                                                                   | +|**acos(X)**                                       |**the arccosine of the elements of X.**                                                                                                                   | 
-|asin(X)                                       |the arcsine of the elements of X.                                                                                                                     | +|**asin(X)**                                       |**the arcsine of the elements of X.**                                                                                                                     | 
-|atan(X)                                       |the arctangent of the elements of X.                                                                                                                  +|**atan(X)**                                       |**the arctangent of the elements of X. **                                                                                                                 
-|atan2(Y,X)                                    |the four quadrant arctangent of the real parts of the elements of X and Y. -pi <= ATAN2(Y,X) <= pi.                                                   | +|**atan2(Y,X)**                                    |**the four quadrant arctangent of the real parts of the elements of X and Y. -pi <= ATAN2(Y,X) <= pi.**                                                   | 
-|cos(X)                                        |the cosine of the elements of X.                                                                                                                      | +|**cos(X)**                                        |**the cosine of the elements of X.**                                                                                                                      | 
-|cosh(X)                                       |the hyperbolic cosine of the elements of X.                                                                                                           | +|**cosh(X)**                                       |**the hyperbolic cosine of the elements of X.**                                                                                                           | 
-|sin(X)                                        |the sine of the elements of X.                                                                                                                        +|**sin(X)**                                        |**the sine of the elements of X.**                                                                                                                       
-|sinh(X)                                       |the hyperbolic sine of the elements of X.                                                                                                             | +|**sinh(X)**                                       |**the hyperbolic sine of the elements of X.**                                                                                                             | 
-|tan(X)                                        |the tangent of the elements of X.                                                                                                                     | +|**tan(X)**                                        |**the tangent of the elements of X.**                                                                                                                     | 
-|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 =====
Line 69: Line 71:
   * [[Creating_custom_functions|Creating custom functions]]   * [[Creating_custom_functions|Creating custom functions]]
   * [[Expression_editing_tool|Expression editing tool]]   * [[Expression_editing_tool|Expression editing tool]]
 +  * [[constants_editing_tool|Constant editing tool]]
 +
  
  
function.1574080454.txt.gz · Last modified: 2019/11/18 13:34 by 127.0.0.1