Liking cljdoc? Tell your friends :D

jordibc.geometric-algebra


addclj

(add)
(add a)
(add a b)
(add a b & more)

Return a + b.

Return a + b.
sourceraw docstring

antiwedgeclj

(antiwedge a b)

Return the antiwedge product (also regressive/meet) of a and b.

Return the antiwedge product (also regressive/meet) of `a` and `b`.
sourceraw docstring

basisclj

(basis signature)
(basis signature start)

Return basis elements of a geometric algebra with the given signature.

Return basis elements of a geometric algebra with the given signature.
sourceraw docstring

commutatorclj

(commutator a b)

Return a x b, the commutator product of multivectors a and b.

Return a x b, the commutator product of multivectors `a` and `b`.
sourceraw docstring

def-basiscljmacro

(def-basis signature)
(def-basis signature start)

Create global vars with the names of the multivector basis.

Create global vars with the names of the multivector basis.
sourceraw docstring

def-opscljmacro

(def-ops)

Create global vars with multivector operators, replacing some core ones.

Create global vars with multivector operators, replacing some core ones.
sourceraw docstring

divclj

(div a)
(div a b)
(div a b & more)

Return a / b = a * b^-1 (if b has an inverse).

Return a / b = a * b^-1 (if `b` has an inverse).
sourceraw docstring

dotclj

(dot a b)

Return the dot product (inner product) of multivectors a and b.

Return the dot product (inner product) of multivectors `a` and `b`.
sourceraw docstring

dualclj

(dual a)

Return the dual of multivector a. Example: 2 e12 + e024 -> 2 e034 + e13. There are other types of duals, for example ia or ai. The dual in this function works even for degenerate algebras (algebras with i*i = 0).

Return the dual of multivector `a`. Example: 2 e12 + e024 -> 2 e034 + e13.
There are other types of duals, for example i*a or a*i. The dual in
this function works even for degenerate algebras (algebras with i*i = 0).
sourceraw docstring

expclj

(exp a)

Return exp(a), the exponentiation of multivector a.

Return exp(a), the exponentiation of multivector `a`.
sourceraw docstring

fat-dotclj

(fat-dot a b)

Return the "fat dot" product of multivectors a and b.

Return the "fat dot" product of multivectors `a` and `b`.
sourceraw docstring

gradeclj

(grade a r)

Grade-projection operator <a>_r (select only blades of the given grade r). Example: (grade (+ e1 e2 e0245) 1) -> (+ e1 e2).

Grade-projection operator <a>_r (select only blades of the given grade `r`).
Example: (grade (+ e1 e2 e0245) 1) -> (+ e1 e2).
sourceraw docstring

gradesclj

(grades a)

Return the grades present in multivector a. Example: e1 + e2 + e0245 -> (1, 4).

Return the grades present in multivector `a`.
Example: e1 + e2 + e0245 -> (1, 4).
sourceraw docstring

infixcljmacro

(infix & expr)

Evaluate the given expression expr given in infix notation.

Evaluate the given expression `expr` given in infix notation.
sourceraw docstring

invclj

(inv a)

Return a^-1, the inverse of multivector a if it exists.

Return a^-1, the inverse of multivector `a` if it exists.
sourceraw docstring

involclj

(invol a)

Return a^^, the involution of multivector a. Example: 1 + e1 -> 1 - e1.

Return a^^, the involution of multivector `a`. Example: 1 + e1 -> 1 - e1.
sourceraw docstring

lcontractclj

(lcontract a b)

Return the left contraction of multivectors a and b.

Return the left contraction of multivectors `a` and `b`.
sourceraw docstring

multivectorclj

(multivector blades-or-num signature)

Create a new multivector.

Create a new multivector.
sourceraw docstring

multivector?clj

(multivector? a)

Return true if a is a multivector (numbers are multivectors too).

Return true if `a` is a multivector (numbers are multivectors too).
sourceraw docstring

normclj

(norm a)
source

powclj

(pow a n)

Return a^n (a raised to the nth power).

Return a^n (`a` raised to the nth power).
sourceraw docstring

prodclj

(prod)
(prod a)
(prod a b)
(prod a b & more)

Return a * b, the geometric product of multivectors a and b.

Return a * b, the geometric product of multivectors `a` and `b`.
sourceraw docstring

projclj

(proj a b)

Return P_b(a), the projection of multivector a on b.

Return P_b(a), the projection of multivector `a` on `b`.
sourceraw docstring

pseudoscalar-unitclj

(pseudoscalar-unit sig)

Return the pseudoscalar unit corresponding to signature sig.

Return the pseudoscalar unit corresponding to signature `sig`.
sourceraw docstring

rcontractclj

(rcontract a b)

Return the right contraction of multivectors a and b.

Return the right contraction of multivectors `a` and `b`.
sourceraw docstring

revclj

(rev a)

Return a^~, the reverse of multivector a. Example: e12 -> e21 = -e12.

Return a^~, the reverse of multivector `a`. Example: e12 -> e21 = -e12.
sourceraw docstring

same-algebra?clj

(same-algebra? a b)

Return true if the arguments belong to the same geometric algebra.

Return true if the arguments belong to the same geometric algebra.
sourceraw docstring

scalarclj

(scalar a)

Return the given multivector a as a number (if it is a scalar).

Return the given multivector `a` as a number (if it is a scalar).
sourceraw docstring

scalar-prodclj

(scalar-prod a b)

Return the scalar product of multivectors a and b.

Return the scalar product of multivectors `a` and `b`.
sourceraw docstring

scalar?clj

(scalar? a)

Return true if a is a number or a multivector with only a scalar blade.

Return true if `a` is a number or a multivector with only a scalar blade.
sourceraw docstring

subclj

(sub a)
(sub a b)
(sub a b & more)

Return -a for one argument, a - b for two, a - b - c, etc.

Return -a for one argument, a - b for two, a - b - c, etc.
sourceraw docstring

sum-exp-seriesclj

(sum-exp-series a)
(sum-exp-series a precision max-terms)

Return exp(a) by adding the terms in its expansion in powers of a.

Return exp(a) by adding the terms in its expansion in powers of `a`.
sourceraw docstring

wedgeclj

(wedge a b)

Return the wedge product (also exterior/outer) of multivectors a and b.

Return the wedge product (also exterior/outer) of multivectors `a` and `b`.
sourceraw docstring

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

× close