Skip to contents

solve_decomposition(f, symbol, domain) writes f as a composition of simpler functions with decompogen() and solves the equations from the outside in, as SymPy's solve_decomposition().

Usage

solve_decomposition(f, symbol, domain)

Arguments

f

An expression.

symbol

The variable.

domain

The domain, a set.

Value

A set.

Examples

x <- Symbol("x")
solve_decomposition(exp(2*x) - 3*exp(x) + 2, x, Reals)
#> {0, log(2)}