tBuLi / kingdon

A symbolically optimized and pythonic Clifford (geometric) algebra library named after none other than William Kingdon Clifford.
https://tbuli.github.io/teahouse/
MIT License
45 stars 5 forks source link

make abs() work on multivectors #42

Open arsenovic opened 6 months ago

tBuLi commented 3 months ago

I like the idea, but I'm actually not sure what the expected result would be. Most obviously it should just call the .norm() function on multivectors. But the problem is that norm can also be negative, or a study number. Whereas with abs I would expect to get a positive real number. So now I'm doubting if this could lead to unintuitive code. Any thoughts?