apart: Partial fraction decomposition on a rational function

View source: R/simplify.R

apartR Documentation

Partial fraction decomposition on a rational function

Description

apart() performs a partial fraction decomposition on a rational function

Usage

apart(x)

Arguments

x

A caracas_symbol

Examples

if (has_sympy()){
  def_sym(x)
  expr = (4*x**3 + 21*x**2 + 10*x + 12)/(x**4 + 5*x**3 + 5*x**2 + 4*x)
  apart(expr)
}

caracas documentation built on June 22, 2024, 10:59 a.m.