Commit fd52126
test: math: test floating-point behavior when mapping zero to zero (#59265)
The idea for this addition to the test suite originates here, where
stevengj suggested to do this test for `cosc` specifically:
* #59087 (comment)
This PR instead tests all applicable functions I could find.
Also fix the sign of `cosc(::BigFloat)` for zero input, thanks to
stevengj.
---------
Co-authored-by: Steven G. Johnson <[email protected]>1 parent 7b9f532 commit fd52126
2 files changed
+34
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1112 | 1112 | | |
1113 | 1113 | | |
1114 | 1114 | | |
| 1115 | + | |
1115 | 1116 | | |
1116 | 1117 | | |
1117 | 1118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
593 | 626 | | |
594 | 627 | | |
595 | 628 | | |
| |||
0 commit comments