Wilang Documentation1.0.0+4

partfrac#

Decompose a rational expression into partial fractions.

Available in: math cells, REPL.

Syntax#

partfrac(expression, variable)

Arguments and behavior#

Pass quoted expressions and variable names. Numeric assignments earlier in the note can substitute into coefficients. Results are displayed symbolic text or numbers, not objects with .evaluate methods. The example returns text.

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
partfrac("1/(x^2-1)","x")

Expected result: (-1/2)*(1+x)^-1+(1/2)*(-1+x)^-1.

All functions · Math guides