-
-
Notifications
You must be signed in to change notification settings - Fork 4
MathExprExtensions
Miroiu Emanuel edited this page Oct 12, 2022
·
1 revision
Namespace: StringMath
Assembly: StringMath
Inheritance: Object → MathExprExtensions
References: MathExpr, IMathContext
Extensions for MathExpr.
public static class MathExprExtensions
public static double Eval(string value);
Parameters
value
String
Returns
public static double Eval(string value, IMathContext context);
Parameters
value
String
context
IMathContext
Returns
public static MathExpr Substitute(string expr, string var, double val);
Parameters
expr
String
var
String
val
Double
Returns
public static MathExpr ToMathExpr(string expr);
Parameters
expr
String
Returns
public static MathExpr ToMathExpr(string expr, IMathContext context);
Parameters
expr
String
context
IMathContext
Returns