Navigation
Main Page
Random Page
Create a new Page
All Pages
Categories
Administration
File Management
Login/Logout
Language Selection
Your Profile
Create Account
Quick Search
Advanced Search »
Back
History
IPluginMathNumericEvaluation - интерфейс
Предоставляет интерфейс подключения плагина для численных расчетов.{BR} {BR} Пространство имен: SMath.Math.Numeric{BR} Сборка: NuLib(в NuLib.dll){BR} {BR} Пример реализации:{BR}{BR} {{{{ 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 = args[0] + args[1]; result = new TNumber(sum); return true; } return false; } public void Dispose() { } } }}}}
ScrewTurn Wiki
version 2.0.37. Some of the icons created by
FamFamFam
.