C# Class AK.ExpressionSolver

Exibir arquivo Open project: akuukka/ExpressionSolver Class Usage Examples

Public Properties

Property Type Description
undefinedVariablePolicy UndefinedVariablePolicy

Public Methods

Method Description
AddCustomFunction ( string name, double>.System func, bool enableSymbolicationTimeEvaluation = false ) : void
AddCustomFunction ( string name, int paramCount, double>.System func, bool enableSymbolicationTimeEvaluation = false ) : void
AddCustomFunction ( string name, int paramCount, double>.System func, bool enableSymbolicationTimeEvaluation = false ) : void
ClearGlobalVariables ( ) : void
EvaluateExpression ( string formula ) : double
ExpressionSolver ( ) : System.Collections
GetGlobalVariable ( string name ) : Variable
GetSymbolValue ( Symbol s ) : double
RemoveCustomFunction ( string name ) : void
RemoveGlobalVariable ( string name ) : bool
SetGlobalVariable ( string name, double value ) : Variable
SetGlobalVariable ( string name, string value ) : Variable
SymbolicateExpression ( string formula, string localVariable ) : Expression

Private Methods

Method Description
ParseSymbols ( SymbolList syms ) : double
Symbolicate ( string formula, int begin, int end, Expression exp ) : Symbol
SymbolicateMonome ( string formula, int begin, int end, Expression exp ) : Symbol
SymbolicateValue ( string formula, int begin, int end, Expression exp ) : Symbol

Method Details

AddCustomFunction() public method

public AddCustomFunction ( string name, double>.System func, bool enableSymbolicationTimeEvaluation = false ) : void
name string
func double>.System
enableSymbolicationTimeEvaluation bool
return void

AddCustomFunction() public method

public AddCustomFunction ( string name, int paramCount, double>.System func, bool enableSymbolicationTimeEvaluation = false ) : void
name string
paramCount int
func double>.System
enableSymbolicationTimeEvaluation bool
return void

AddCustomFunction() public method

public AddCustomFunction ( string name, int paramCount, double>.System func, bool enableSymbolicationTimeEvaluation = false ) : void
name string
paramCount int
func double>.System
enableSymbolicationTimeEvaluation bool
return void

ClearGlobalVariables() public method

public ClearGlobalVariables ( ) : void
return void

EvaluateExpression() public method

public EvaluateExpression ( string formula ) : double
formula string
return double

ExpressionSolver() public method

public ExpressionSolver ( ) : System.Collections
return System.Collections

GetGlobalVariable() public method

public GetGlobalVariable ( string name ) : Variable
name string
return Variable

GetSymbolValue() public static method

public static GetSymbolValue ( Symbol s ) : double
s Symbol
return double

RemoveCustomFunction() public method

public RemoveCustomFunction ( string name ) : void
name string
return void

RemoveGlobalVariable() public method

public RemoveGlobalVariable ( string name ) : bool
name string
return bool

SetGlobalVariable() public method

public SetGlobalVariable ( string name, double value ) : Variable
name string
value double
return Variable

SetGlobalVariable() public method

public SetGlobalVariable ( string name, string value ) : Variable
name string
value string
return Variable

SymbolicateExpression() public method

public SymbolicateExpression ( string formula, string localVariable ) : Expression
formula string
localVariable string
return Expression

Property Details

undefinedVariablePolicy public_oe property

public UndefinedVariablePolicy undefinedVariablePolicy
return UndefinedVariablePolicy