Skip to content

Comment on Symbolic Algebraic Library written entirely in C#parent

Comments

after parsing the symbolic calculations you can execute them as a normal function call

in case of single variable for example var result = SymbolicVariable.Parse("sin(3*x)").Execute(2);

in case of multi variables you can send the values based on their alphabet order

var d = SymbolicVariable.Parse("a^b^c"); Assert.AreEqual("a^(b^c)", d.ToString());

var r = d.Execute(3, 2, 4); Assert.AreEqual(43046721.0, r);

or by assigning them to a dictionary of Dictionary<string, double>

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.