Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Every operations with NaN should return NaN #6

Open
maxonfjvipon opened this issue Jun 13, 2022 · 1 comment
Open

Every operations with NaN should return NaN #6

maxonfjvipon opened this issue Jun 13, 2022 · 1 comment
Assignees

Comments

@maxonfjvipon
Copy link
Member

maxonfjvipon commented Jun 13, 2022

Accordingly to IEEE 754 NaN should be a result of next operations:

  1. Every math operations with NaN as argument
  2. 0 / 0
  3. ∞ / ∞
  4. 0 * ∞
  5. ∞ + (-∞) = ∞ - ∞ = -∞ + ∞
  6. sqrt(x) if x < 0 (if EO will not support complex arithmetics)
  7. log(x) and ln(x) if x < 0 (if EO will not support complex arithmetics)
  8. powr(+-0, +-0) (powr(x, y) is pow(x, y), but x ∈ [0,+∞] when in pow(x, y) x ∈ [-∞, +∞])
@maxonfjvipon maxonfjvipon self-assigned this Jun 13, 2022
maxonfjvipon pushed a commit that referenced this issue Jun 13, 2022
@Graur
Copy link
Contributor

Graur commented Aug 12, 2022

@maxonfjvipon What's up with this?

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

No branches or pull requests

2 participants