The NMC Kernel and its computation capabilities can be accessed through its command-line interface. Which allows NMC to be used in large-scale batch mode or as background computing environments.
This C# code below, creates a new polynomial abbreviated f
and store it in ext1
, then using the ToStringExpression(...)
to factor the expression, and print the result with a new abbreviation g
.
Polynomial ex1 = new Polynomial("f", new double[] { 1, -6 }, 7);
Console.WriteLine(ex1);
ex1.Designation = "g";
Console.WriteLine(ex1.ToStringExpression(true, true));
The two functions f(x)
and g(x)
are sure to be identical, not only sharing roots. But this can be configured and simplified even more.
Here's a graph of the two functions.
- LaTeX
\begin{bmatrix}
\frac{\sum_{{\color{Red}a}={\color{Red}t}}^{{\color{Red} N_e}}({\color{Purple} M_a}/{\color{Purple} t^h})}{C_{{\color{DarkGreen} core}}}
\end{bmatrix}_2^\pi