Skip to content

How to extend with a custom function in c#? #115

@omnilogix

Description

@omnilogix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions