Commit 43fbfb2
authored
Tan bug fixed (#570)
So basically, before that `tan` checked if the angle is divided
by `pi / 2`. If yes, it should be zero.
But it misses a condition: it also should not be integer. Basically,
whenever you get `pi / 2` as a modulo of dividing the angle by
`pi`, then `tan` turns into NaN. Whereas it just checked dividing
by `pi / 2` and did not care about case when `angle` is `pi` or
any integer by `pi`.
Issue #5681 parent 2accea2 commit 43fbfb2
2 files changed
Lines changed: 13 additions & 2 deletions
File tree
- Sources
- AngouriMath/AngouriMath/Functions/Evaluation/Evaluation.Continuous
- Tests/UnitTests/PatternsTest
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
258 | 264 | | |
259 | 265 | | |
260 | 266 | | |
0 commit comments