Skip to content

Commit 20b0f00

Browse files
authored
Add Math functions Microsoft MSDN link
1 parent 040bcb5 commit 20b0f00

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -166,36 +166,36 @@ The evaluation of functions names is case insensitive.
166166

167167
|Name|Description|Example|Result|
168168
|---|---|---|---|
169-
|**Abs**(double number)|Return a double that is the absolute value of number|`Abs(-3.2d)`|`3.2d`|
170-
|**Acos**(double d)|Return a double value that is the angle in radian whose d is the cosine<br/>d must be betwteen -1 and 1|`Acos(-0.5d)`|`2.0943951023032d`|
169+
|**[Abs](https://msdn.microsoft.com/en-us/library/f2yzeea2(v=vs.110).aspx)**(double number)|Return a double that is the absolute value of number|`Abs(-3.2d)`|`3.2d`|
170+
|**[Acos](https://msdn.microsoft.com/en-us/library/system.math.acos(v=vs.110).aspx)**(double d)|Return a double value that is the angle in radian whose d is the cosine<br/>d must be betwteen -1 and 1|`Acos(-0.5d)`|`2.0943951023032d`|
171171
|**Array**(object obj1, object obj2 ,...)|Return a array (System.Object[]) of all given arguments|`Array(1, "Hello", true)`|`new object[]{1, "Hello", true}`|
172-
|**Asin**(double d)|Return a double value that is the angle in radian whose d is the sine<br/>d must be betwteen -1 and 1|`Asin(-0.2d)`|`0.304692654015398d`|
173-
|**Atan**(double d)|Return a double value that is the angle in radian whose d is the tangent|`Atan(2.1)`|`1.1263771168938d`|
174-
|**Atan2**(double x, double y)|Return a double value that is the angle in radian whose the tangente is the quotient of x and y<br/>|`Atan2(2.1d, 3.4d)`|`0.553294325322293d`|
172+
|**[Asin](https://msdn.microsoft.com/en-us/library/system.math.asin(v=vs.110).aspx)**(double d)|Return a double value that is the angle in radian whose d is the sine<br/>d must be betwteen -1 and 1|`Asin(-0.2d)`|`0.304692654015398d`|
173+
|**[Atan](https://msdn.microsoft.com/en-us/library/system.math.atan(v=vs.110).aspx)**(double d)|Return a double value that is the angle in radian whose d is the tangent|`Atan(2.1)`|`1.1263771168938d`|
174+
|**[Atan2](https://msdn.microsoft.com/en-us/library/system.math.atan2(v=vs.110).aspx)**(double x, double y)|Return a double value that is the angle in radian whose the tangente is the quotient of x and y<br/>|`Atan2(2.1d, 3.4d)`|`0.553294325322293d`|
175175
|**Avg**(double nb1, double nb2 ,...)|Return a double value that is the average value of all given arguments|`Avg(1, 2.5, -4, 6.2)`|`1.425d`|
176-
|**Ceiling**(double a)|Return a double value that is the smallest integer greater than or equal to the specified number.|`Ceiling(4.23d)`|`5d`|
177-
|**Cos**(double angle)|Return a double value that is the cosine of the specified angle in radian|`Cos(2 * Pi)`|`1d`|
178-
|**Cosh**(double angle)|Return a double value that is the hyperbolic cosine of the specified angle in radian|`Cosh(2d)`|`3.76219569108363d`|
179-
|**Exp**(double d)|Return a double value that is e raised to the specified d power|`Exp(3d)`|`20.0855369231877d`|
180-
|**Floor**(double d)|Return a double value that is the largest integer less than or equal to the specified d argument|`Floor(4.23d)`|`4d`|
176+
|**[Ceiling](https://msdn.microsoft.com/en-us/library/zx4t0t48(v=vs.110).aspx)**(double a)|Return a double value that is the smallest integer greater than or equal to the specified number.|`Ceiling(4.23d)`|`5d`|
177+
|**[Cos](https://msdn.microsoft.com/en-us/library/system.math.cos(v=vs.110).aspx)**(double angle)|Return a double value that is the cosine of the specified angle in radian|`Cos(2 * Pi)`|`1d`|
178+
|**[Cosh](https://msdn.microsoft.com/en-us/library/system.math.cosh(v=vs.110).aspx)**(double angle)|Return a double value that is the hyperbolic cosine of the specified angle in radian|`Cosh(2d)`|`3.76219569108363d`|
179+
|**[Exp](https://msdn.microsoft.com/en-us/library/system.math.exp(v=vs.110).aspx)**(double d)|Return a double value that is e raised to the specified d power|`Exp(3d)`|`20.0855369231877d`|
180+
|**[Floor](https://msdn.microsoft.com/en-us/library/e0b5f0xb(v=vs.110).aspx)**(double d)|Return a double value that is the largest integer less than or equal to the specified d argument|`Floor(4.23d)`|`4d`|
181181
|**[IEEERemainder](https://msdn.microsoft.com/en-us/library/system.math.ieeeremainder(v=vs.110).aspx)**(double x, double y)|Return a double value that is the remainder resulting from the division of x by y|`IEEERemainder(9, 8)`|`1d`|
182182
|**if**(bool condition, object yes, object no)|Return the yes object value if condition is true.<br/>Return the no object if condition is false|`if(1>2, "It is true", "It is false")`|`"It is false"`|
183183
|**in**(object valueToFind, object obj1, object obj2...)|Return a boolean value that indicate if the first argument is found in the other arguments|`in(8, 4, 2, 8)`|`true`|
184184
|**List**(object obj1, object obj2 ,...)|Return a List (System.Collections.Generic.List<object>) of all given arguments|`List(1, "Hello", true)`|`new List<object>(){1, "Hello", true}`|
185-
|**Log**(double a, double base)|Return a double value that is the logarithm of a in the specified base|`Log(64d, 2d)`|`6d`|
186-
|**Log10**(double a)|Return a double value that is the base 10 logarithm of a specified a|`Log10(1000d)`|`3d`|
185+
|**[Log](https://msdn.microsoft.com/en-us/library/system.math.log(v=vs.110).aspx)**(double a, double base)|Return a double value that is the logarithm of a in the specified base|`Log(64d, 2d)`|`6d`|
186+
|**[Log10](https://msdn.microsoft.com/en-us/library/system.math.log10(v=vs.110).aspx)**(double a)|Return a double value that is the base 10 logarithm of a specified a|`Log10(1000d)`|`3d`|
187187
|**Max**(double nb1, double nb2 ,...)|Return a double value that is the maximum value of all given arguments|`Max(1d, 2.5d, -4d)`|`2.5d`|
188188
|**Min**(double nb1, double nb2 ,...)|Return a double value that is the minimum value of all given arguments|`Min(1d, 2.5d, -4d)`|`-4d`|
189189
|**new**(TypeOrClass, constructorArg1, constructorArg2 ...)|Create an instance of the specified class as first argument and return it. A optional list of additional arguments can be passed as constructor arguments|`new(Random).next(0,10)`|`5d // or a random value between 1 and 9`|
190-
|**Pow**(double x, double y)|Return a double value that is x elevate to the power y|`Pow(2,4)`|`16d`|
191-
|**Round**(double d, (optional) int digits)|Rounds d to the nearest integer or specified number of decimal places.|`Round(2.432,1)`|`2.4d`|
192-
|**Sign**(double d)|Return 1,-1 or 0 indicating the sign of d|`Sign(-12)`|`-1d`|
193-
|**Sin**(double angle)|Return a double value that is the sine of the specified angle in radian|`Sin(Pi/2)`|`1d`|
194-
|**Sinh**(double angle)|Return a double value that is the hyperbolic sine of the specified angle in radian|`Sinh(2d)`|`3.62686040784702d`|
195-
|**Sqrt**(double d)|Return a double value that is the square root of the specified d value|`Sqrt(4d)`|`2d`|
196-
|**Tan**(double angle)|Return a double value that is the tangent of the specified angle in radian|`Tan(Pi / 4)`|`1d`|
197-
|**Tanh**(double angle)|Return a double value that is the hyperbolic tangent of the specified angle in radian|`Tanh(2d)`|`0.964027580075817d`|
198-
|**Truncate**(double d)|Return a double value that is the integer part of the specified d value|`Truncate(2.45d)`|`2d`|
190+
|**[Pow](https://msdn.microsoft.com/en-us/library/system.math.pow(v=vs.110).aspx)**(double x, double y)|Return a double value that is x elevate to the power y|`Pow(2,4)`|`16d`|
191+
|**[Round](https://msdn.microsoft.com/en-us/library/system.math.round(v=vs.110).aspx)**(double d, (optional) int digits)|Rounds d to the nearest integer or specified number of decimal places.|`Round(2.432,1)`|`2.4d`|
192+
|**[Sign](https://msdn.microsoft.com/en-us/library/system.math.sign(v=vs.110).aspx)**(double d)|Return 1,-1 or 0 indicating the sign of d|`Sign(-12)`|`-1d`|
193+
|**[Sin](https://msdn.microsoft.com/en-us/library/system.math.sin(v=vs.110).aspx)**(double angle)|Return a double value that is the sine of the specified angle in radian|`Sin(Pi/2)`|`1d`|
194+
|**[Sinh](https://msdn.microsoft.com/en-us/library/system.math.sinh(v=vs.110).aspx)**(double angle)|Return a double value that is the hyperbolic sine of the specified angle in radian|`Sinh(2d)`|`3.62686040784702d`|
195+
|**[Sqrt](https://msdn.microsoft.com/en-us/library/system.math.sqrt(v=vs.110).aspx)**(double d)|Return a double value that is the square root of the specified d value|`Sqrt(4d)`|`2d`|
196+
|**[Tan](https://msdn.microsoft.com/en-us/library/system.math.tan(v=vs.110).aspx)**(double angle)|Return a double value that is the tangent of the specified angle in radian|`Tan(Pi / 4)`|`1d`|
197+
|**[Tanh](https://msdn.microsoft.com/en-us/library/system.math.tanh(v=vs.110).aspx)**(double angle)|Return a double value that is the hyperbolic tangent of the specified angle in radian|`Tanh(2d)`|`0.964027580075817d`|
198+
|**[Truncate](https://msdn.microsoft.com/en-us/library/c2eabd70(v=vs.110).aspx)**(double d)|Return a double value that is the integer part of the specified d value|`Truncate(2.45d)`|`2d`|
199199
200200
## On the fly variables and functions evaluation
201201
In addition to custom variables, you can add variables and/or functions with on the fly evaluation.

0 commit comments

Comments
 (0)