AngouriMath

Navigation

← Back to list of members

Factorize​(System.​String)

 Method (no overloads)

Summary

Parses and factorizes the given expression so that as few powers as possible remain,
and the expression is represented as a product of multipliers

Returns

A factorized expression

Example

Where no factorization is found the expression comes back unchanged, which is how
this says "no answer" rather than "irreducible":
Console.WriteLine("a2 - b2".Factorize());
Console.WriteLine("x2 + 2x + 1".Factorize());

Prints
(a - b) * (a + b)
x ^ 2 + 2 * x + 1

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online