public class PluginInit : IPluginMathNumericEvaluation { public AssemblyInfo[] Dependences { get; private set; } public TermInfo[] TermsHandled { get; private set; } public void Initialize() { Dependences = new[] { new AssemblyInfo("SMath", new Version(0,1), new Guid("4fe8964b-6ba1-47dc-9b17-ba4c6c835a65")) }; TermsHandled = new[] { new TermInfo("MySumFunc", TermType.Function, 2, "Summary function",FunctionSection.Unknown, true ) }; } public bool NumericEvaluation(Term term, TNumber[] args, ref TNumber result) { if (term.Type == TermType.Function && term.Text == "MySumFunc" && args.Length == 2) { var sum = args0 + args1; result = new TNumber(sum); return true; } return false; } public void Dispose() { } }