dart-sdk/sdk/lib/math
dimpen 0aa9ce5c57 Update math.dart:atan2 in relation to atan comment
It's a **typo**. It should say **atan(a/b).**
The way the _atan2(a,b)_ is defined _x=b, y=a => atan2(y,x) = atan(y/x) if x is positive_.

So _atan2(a,b) = atan(a/b) if b is positive._

Indeed:
```
import 'dart:math';

void main() {
    double a = 1, b = 2;
    assert(atan2(a, b) == atan(a / b));
    assert(atan2(a, b) != atan(b / a));
}
```

Closes #39479
https://github.com/dart-lang/sdk/pull/39479

GitOrigin-RevId: 73910bb787c2dbb811bb9f7fb1bd8bab22ef92ad
Change-Id: I189030346e7f6ccf8526d444101dd0172a54ee53
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/125926
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
2019-12-16 12:45:27 +00:00
..
jenkins_smi_hash.dart Add non-NNBD language version marker to all sdk (non-nnbd) files 2019-11-15 00:22:47 +00:00
math.dart Update math.dart:atan2 in relation to atan comment 2019-12-16 12:45:27 +00:00
math_sources.gni [infra] Translate _sources.gypi files to _sources.gni files 2017-08-14 21:54:36 -07:00
point.dart Add non-NNBD language version marker to all sdk (non-nnbd) files 2019-11-15 00:22:47 +00:00
random.dart Add non-NNBD language version marker to all sdk (non-nnbd) files 2019-11-15 00:22:47 +00:00
rectangle.dart Add non-NNBD language version marker to all sdk (non-nnbd) files 2019-11-15 00:22:47 +00:00