Implementations of the generic operations for numeric types that have optimizations available, and for the general symbolic case.
Implementations of the generic operations for numeric types that have optimizations available, and for the general symbolic case.
When bound to a simplifier (a function from symbolic expression => symbolic
expression), this simplifier will be called after every operation performed on
emmy.abstract.number
instances.
nil
by default.
When bound to a simplifier (a function from symbolic expression => symbolic expression), this simplifier will be called after every operation performed on `emmy.abstract.number` instances. `nil` by default.
(dot-product z1 z2)
Returns the symbolic dot product of the two supplied numbers z1
and z2
.
If both are numbers, defers to emmy.generic/dot-product
. Else,
returns
$$\Re(z_1)\Re(z_2) + \Im(z_1)\Im(z_2)$$
Returns the symbolic dot product of the two supplied numbers `z1` and `z2`. If both are numbers, defers to [[emmy.generic/dot-product]]. Else, returns $$\Re(z_1)\Re(z_2) + \Im(z_1)\Im(z_2)$$
Square root implementation that attempts to preserve exact numbers wherever possible. If the incoming value is not exact, simply computes sqrt.
Square root implementation that attempts to preserve exact numbers wherever possible. If the incoming value is not exact, simply computes sqrt.
(symbolic-operator s)
Given a symbol (like '+
) returns an applicable operator if there is a
corresponding symbolic operator construction available.
Given a symbol (like `'+`) returns an applicable operator if there is a corresponding symbolic operator construction available.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close