mathnet-symbolics
mathnet-symbolics copied to clipboard
How to extend with a custom function in c#?
I would like to add a ccustom function that gets evaluated when calling SymbolicExpression.Evaluate();
for instance SqFt(x, y) where I would calculate square footage from the parameters
public double SqFt(double x, double y) { return x * y; }
SymbolicExpression.Parse("SqFt(23, 15)");
When using NCalc I was able to attach a delegate that would receive the function name and arguments so I could return a result.
Is there a way to do this with MathNet?
Thanks