TExprFunc Delegate

Source: MtxParseClass.cs · Assembly: Dew.Math
MulticastDelegateTExprFunc

public delegate TExprFunc

Function type for custom function definition.

Any custome defined function must be of this type to be used in the expression parser.

Examples

csharp
void _log10x(TExprRec Param)
{
}

void Example()
{
    TMtxExpression ep = new TMtxExpression();

    ep.DefineFunction("Log10x",_log10x,1);
    ep.Add("Log10x(1.2)+3");