mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 23:19:47 +00:00
0aa9ce5c57
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> |
||
---|---|---|
.. | ||
jenkins_smi_hash.dart | ||
math.dart | ||
math_sources.gni | ||
point.dart | ||
random.dart | ||
rectangle.dart |