Skip to content

Configuration option to return double.nan for mathematically undefined operations - #96

Merged
fkleon merged 2 commits into
masterfrom
95-math-mode
Jul 29, 2026
Merged

fkleon merged 2 commits into
masterfrom
95-math-mode

Conversation

@fkleon

@fkleon fkleon commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Fixes #95

fkleon added 2 commits July 21, 2026 11:42
Adds a useTraditionalMathDefinitions flag to RealEvaluator that makes
division by zero, 0^0, and tan at its undefined asymptotes evaluate to
double.nan instead of following Dart's default floating-point behavior.
Covers division by zero, 0^0, and tan(pi/2) under both the default
Dart behavior and the new traditional math (NaN) behavior. Also
updates the changelog.
@fkleon fkleon self-assigned this Jul 21, 2026
@fkleon
fkleon merged commit a777c21 into master Jul 29, 2026
2 checks passed
@fkleon
fkleon deleted the 95-math-mode branch July 31, 2026 22:39
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

Successfully merging this pull request may close these issues.

Specify behavior regarding undefined operations

1 participant