X <- clifford(list(1,1:2,1:3,3:5), 6:9)
X
X <- X + 1e300
X
const(X) # should be 1e300
const(X) <- 0.6
const(X) # should be 0.6, no numerical error
# compare naive approach:
X <- clifford(list(1,1:2,1:3,3:5), 6:9) + 1e300
X + 0.6 - const(X) # constant gets lost in the numerics
X <- clifford(list(1,1:2,1:3,3:5), 6:9) + 1e-300
X - const(X) + 0.6 # answer correct by virtue of left-associativity
x <- 2+rcliff(d=3, g=3)
jj <- x*cliffconj(x)
is.real(jj*rev(jj)) # should be TRUE
Run the code above in your browser using DataLab