Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagation of signed zeros when multiplying by a negative scalar vs. an EvenCliffordNumber equal to that scalar #21

Open
brainandforce opened this issue Sep 11, 2024 · 0 comments

Comments

@brainandforce
Copy link
Owner

This is a significant issue that can arise when multiplying a Clifford number by a negative scalar as opposed to an EvenCliffordNumber equal to that scalar:

julia> x = EvenCliffordNumber{VGA(3),Float64}(0, 0, 6, 9)
4-element EvenCliffordNumber{VGA(3), Float64}:
6.0e₁e₃ + 9.0e₂e₃

julia> -x == x * EvenCliffordNumber{VGA(3),Float64}(-1)
true

julia> isequal(-x, x * EvenCliffordNumber{VGA(3),Float64}(-1))
true

julia> -x === x * EvenCliffordNumber{VGA(3),Float64}(-1)
false

Part of this issue is due to the behavior of signed zero under addition: 0.0 + (-0.0) === 0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant