CatsKernel
com.phasmidsoftware.number.cats.CatsKernel
object CatsKernel extends CatsKernelInstances
Attributes
- Graph
-
- Supertypes
- Self type
-
CatsKernel.type
Members list
Implicits
Inherited implicits
Attributes
- Inherited from:
- CatsKernelInstances
Attributes
- Inherited from:
- CatsKernelInstances
Attributes
- Inherited from:
- CatsKernelInstances
Attributes
- Inherited from:
- CatsKernelInstances
Attributes
- Inherited from:
- CatsKernelInstances
Attributes
- Inherited from:
- CatsKernelInstances
Attributes
- Inherited from:
- CatsKernelInstances
Attributes
- Inherited from:
- CatsKernelInstances
Attributes
- Inherited from:
- CatsKernelInstances
NOTE: This has changed from the original. It now uses isSame instead of isSameWithinTolerance.
NOTE: This has changed from the original. It now uses isSame instead of isSameWithinTolerance.
WARNING: Avoid providing inputs that "look like zero but are not exactly zero". Examples: 0.00(...), 0.00[...], 0* — these are fuzzy renderings whose nominal values may be non-zero. This Eq[Number] deems two numbers equal only if their numeric values are equal within a tolerance AND their factors match. Near-zero-but-non-zero inputs can therefore compare unequal to exact zero and may violate users’ expectations in equality/ordering checks.
Guidance for callers:
- When zero is intended, pass an exact zero (e.g., ExactNumber(Rational(0,1)) or Number.zeroR), not a fuzzy/near-zero value.
- Upstream, normalize or filter values with |x| <= 1e-10 to exact zero if semantic zero is desired.
- Avoid comparing numbers across different factors unless you first normalize them into the same factor.
Attributes
- Inherited from:
- CatsKernelInstances
Attributes
- Inherited from:
- CatsKernelInstances
Attributes
- Inherited from:
- CatsKernelInstances
Attributes
- Inherited from:
- CatsKernelInstances
Attributes
- Inherited from:
- CatsKernelInstances
Attributes
- Inherited from:
- CatsKernelInstances
Attributes
- Inherited from:
- CatsKernelInstances
Attributes
- Inherited from:
- CatsKernelInstances
Attributes
- Inherited from:
- CatsKernelInstances
In this article