inst/3dplotting.R

library("lorentz")
library("sphereplot")



u <- as.3vel(c(0,0,0.8))
v <- r3vel(3000,0.9)
w <- as.3vel(c(0,0.8,0))

n1 <- (u+v)-(v+u)            # noncommutativity
n2 <- (u+(v+w)) - ((u+v)+w)  # nonassociativity



rgl.sphgrid()
rgl.sphpoints(car2sph(v))

rgl.sphgrid()
rgl.sphpoints(car2sph(n1))

rgl.sphgrid()
rgl.sphpoints(car2sph(n2))

Try the lorentz package in your browser

Any scripts or data that you put into this service are public.

lorentz documentation built on Oct. 23, 2020, 5:50 p.m.