Liking cljdoc? Tell your friends :D

sicmutils.polynomial.factor

This namespace contains functions for factoring polynomials and symbolic expressions.

This namespace contains functions for factoring polynomials and symbolic
expressions.
raw docstring

analyzerclj/s

Expression analyzer, identical to [[polynomial/analyzer]] except the symbolic expressions returned are in factored form.

Expression analyzer, identical to [[polynomial/analyzer]] except
the symbolic expressions returned are in factored form.
sourceraw docstring

factorclj/s

(factor expr)

Accepts a single symbolic expression and returns a factored version of that expression.

Differs from factor-expression in that it can handle any expression, not just expressions limited to polynomial operations.

Accepts a single symbolic expression and returns a factored version
of that expression.

Differs from [[factor-expression]] in that it can handle any expression, not
just expressions limited to polynomial operations.
sourceraw docstring

factor-expressionclj/s

(factor-expression expr)
(factor-expression expr simplify)

Given some symbolic expression containing only polynomial operations, returns a factored version of the expression with basic simplifications applied.

Optionally accepts a simplify function that will be called on each factor of exponent 0, 1, 2 etc. Defaults to identity.

NOTE prefer factor, as factor can handle expressions with non-polynomial operations. The trigonometric functions, for example.

Given some symbolic expression containing only polynomial operations, returns a
factored version of the expression with basic simplifications applied.

Optionally accepts a `simplify` function that will be called on each factor of
exponent 0, 1, 2 etc. Defaults to `identity`.

NOTE prefer [[factor]], as [[factor]] can handle expressions with
non-polynomial operations. The trigonometric functions, for example.
sourceraw docstring

poly->factored-expressionclj/s

(poly->factored-expression p vars)
(poly->factored-expression p vars simplify)

Given a polynomial p, and a sequence of variables vars (one for each indeterminate in p), returns a symbolic expression representing the product of all factors of p.

Optionally accepts a simplify function that will be called on each factor of exponent 0, 1, 2 etc. Defaults to identity.

Given a polynomial `p`, and a sequence of variables `vars` (one for each
indeterminate in `p`), returns a symbolic expression representing the product
of all factors of `p`.

Optionally accepts a `simplify` function that will be called on each factor of
exponent 0, 1, 2 etc. Defaults to `identity`.
sourceraw docstring

root-out-squaresclj/s

(root-out-squares expr)

Given an unwrapped symbolic expression, returns a new symbolic expression with any perfect square (exponent with an even power) removed from underneath any sqrt that appears in the expression.

To use root-out-squares with a wrapped symbolic expression, use sicmutils.expression/fmap.

Given an unwrapped symbolic expression, returns a new symbolic expression with
any perfect square (exponent with an even power) removed from underneath any
`sqrt` that appears in the expression.

To use [[root-out-squares]] with a wrapped symbolic expression,
use [[sicmutils.expression/fmap]].
sourceraw docstring

split-polynomialclj/s

(split-polynomial p)

Given a [[Polynomial]] p, returns a sequence of factors of in order of increasing power.

The first element is a constant factor, the next is a factor with power 1, and so on.

Given a [[Polynomial]] `p`, returns a sequence of factors of in order of
increasing power.

The first element is a constant factor, the next is a factor with power 1, and
so on.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close