Learn R Programming

clifford (version 1.0-2)

neg: Grade negation

Description

The grade \(r\) negation operation applied to Clifford multivector \(A\) changes the sign of the grade \(r\) component of \(A\). It is formally defined as \(A-2\left<A\right>_r\).

Usage

neg(C, n)

Arguments

C

Clifford object

n

Integer vector indicating grades to negate

Details

The function is algebraically equivalent to function(C,n){C-2*grade(C,n)} but uses faster and more efficient idiom.

References

A. Acus and A. Dargys 2018. “The inverse of a multivector: beyond the threshold \(p+q=5\)”. Advances in applied Clifford Algebras, 28:65

See Also

Conj

Examples

Run this code
# NOT RUN {
A <- rcliff()
neg(A,1:2) == A-grade(A,1:2)  # should be TRUE

# }

Run the code above in your browser using DataLab