RobinHankin / onion

R functionality to deal with quaternions and octonions
6 stars 1 forks source link

need a zap() to kill tiny nonzero values #11

Closed RobinHankin closed 3 years ago

RobinHankin commented 3 years ago
> Oim^(1:8)
            [1]           [2]           [3]           [4]          [5]
Re 1.620055e-16 -7.000000e+00 -3.402116e-15  4.900000e+01 -7.54537e-14
i  1.000000e+00  3.240111e-16 -7.000000e+00 -4.536155e-15  4.90000e+01
j  1.000000e+00  3.240111e-16 -7.000000e+00 -4.536155e-15  4.90000e+01
k  1.000000e+00  3.240111e-16 -7.000000e+00 -4.536155e-15  4.90000e+01
l  1.000000e+00  3.240111e-16 -7.000000e+00 -4.536155e-15  4.90000e+01
il 1.000000e+00  3.240111e-16 -7.000000e+00 -4.536155e-15  4.90000e+01
jl 1.000000e+00  3.240111e-16 -7.000000e+00 -4.536155e-15  4.90000e+01
kl 1.000000e+00  3.240111e-16 -7.000000e+00 -4.536155e-15  4.90000e+01
             [6]           [7]           [8]
Re -3.430000e+02 -3.889753e-13  2.401000e+03
i   4.762963e-14 -3.430000e+02 -4.445432e-13
j   4.762963e-14 -3.430000e+02 -4.445432e-13
k   4.762963e-14 -3.430000e+02 -4.445432e-13
l   4.762963e-14 -3.430000e+02 -4.445432e-13
il  4.762963e-14 -3.430000e+02 -4.445432e-13
jl  4.762963e-14 -3.430000e+02 -4.445432e-13
kl  4.762963e-14 -3.430000e+02 -4.445432e-13
> zap(Oim^(1:8))
Error in zap(Oim^(1:8)) : could not find function "zap"