Skip to content
pieterderycke edited this page Dec 31, 2012 · 13 revisions

The following mathematical functions are out of the box supported by Jace.NET:

Examples

Calculating the sine of 90:

CalculationEngine engine = new CalculationEngine();
double result = engine.Calculate("sin(90)");

The logarithm of var1 to base var2:

Dictionary<string, double> variables = new Dictionary<string, double>();
variables.Add("var1", 2.5);
variables.Add("var2", 3.4);

CalculationEngine engine = new CalculationEngine();
double result = engine.Calculate("logn(var1, var2)", variables);
Clone this wiki locally