Skip to content
Miroiu Emanuel edited this page Oct 12, 2022 · 1 revision

MathExprExtensions Class

Namespace: StringMath

Assembly: StringMath

Inheritance: ObjectMathExprExtensions

References: MathExpr, IMathContext

Extensions for MathExpr.

public static class MathExprExtensions

Methods

Eval(String)

public static double Eval(string value);

Parameters

value String

Returns

Double

Eval(String, IMathContext)

public static double Eval(string value, IMathContext context);

Parameters

value String

context IMathContext

Returns

Double

Substitute(String, String, Double)

public static MathExpr Substitute(string expr, string var, double val);

Parameters

expr String

var String

val Double

Returns

MathExpr

ToMathExpr(String)

public static MathExpr ToMathExpr(string expr);

Parameters

expr String

Returns

MathExpr

ToMathExpr(String, IMathContext)

public static MathExpr ToMathExpr(string expr, IMathContext context);

Parameters

expr String

context IMathContext

Returns

MathExpr