Liking cljdoc? Tell your friends :D

clj-linear.expression


*clj

(* expr factor)

Multiply expr by the given constant factor.

Multiply expr by the given constant factor.
sourceraw docstring

+clj

(+ a b)

Add the expressions a and b.

Add the expressions a and b.
sourceraw docstring

-clj

(- e)
(- a b)

Negate or subtract expressions.

Negate or subtract expressions.
sourceraw docstring

coefficientclj

(coefficient expr v)

Get the coefficient for v in expr, or 0 if it doesn't exist.

Get the coefficient for v in expr, or 0 if it doesn't exist. 
sourceraw docstring

constantclj

(constant expr)

Get the constant part of expr.

Get the constant part of expr.
sourceraw docstring

remove-zero-termsclj

(remove-zero-terms expr)

Remove all entries from expr with a coefficient of 0.

Remove all entries from expr with a coefficient of 0.
sourceraw docstring

substituteclj

(substitute expr v replacement)

Substitute the expression 'replacement' for the variable 'v' in expr.

Substitute the expression 'replacement' for the variable 'v' in expr.
sourceraw docstring

without-constantclj

(without-constant expr)

Get the expression without the constant term

Get the expression without the constant term
sourceraw docstring

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

× close