File tree Expand file tree Collapse file tree 4 files changed +24
-16
lines changed Expand file tree Collapse file tree 4 files changed +24
-16
lines changed Original file line number Diff line number Diff line change @@ -557,10 +557,12 @@ impl f128 {
557
557
558
558
/// Computes the four quadrant arctangent of `self` (`y`) and `other` (`x`) in radians.
559
559
///
560
- /// * `x = 0`, `y = 0`: `0`
561
- /// * `x >= 0`: `arctan(y/x)` -> `[-pi/2, pi/2]`
562
- /// * `y >= 0`: `arctan(y/x) + pi` -> `(pi/2, pi]`
563
- /// * `y < 0`: `arctan(y/x) - pi` -> `(-pi, -pi/2)`
560
+ /// | `x` | `y` | Piecewise Definition | Range |
561
+ /// |---------|---------|----------------------|---------------|
562
+ /// | `>= +0` | `>= +0` | `arctan(y/x)` | `[+0, +pi/2]` |
563
+ /// | `>= +0` | `<= -0` | `arctan(y/x)` | `[-pi/2, -0]` |
564
+ /// | `<= -0` | `>= +0` | `arctan(y/x) + pi` | `[+pi/2, +pi]`|
565
+ /// | `<= -0` | `<= -0` | `arctan(y/x) - pi` | `[-pi, -pi/2]`|
564
566
///
565
567
/// # Unspecified precision
566
568
///
Original file line number Diff line number Diff line change @@ -522,10 +522,12 @@ impl f16 {
522
522
523
523
/// Computes the four quadrant arctangent of `self` (`y`) and `other` (`x`) in radians.
524
524
///
525
- /// * `x = 0`, `y = 0`: `0`
526
- /// * `x >= 0`: `arctan(y/x)` -> `[-pi/2, pi/2]`
527
- /// * `y >= 0`: `arctan(y/x) + pi` -> `(pi/2, pi]`
528
- /// * `y < 0`: `arctan(y/x) - pi` -> `(-pi, -pi/2)`
525
+ /// | `x` | `y` | Piecewise Definition | Range |
526
+ /// |---------|---------|----------------------|---------------|
527
+ /// | `>= +0` | `>= +0` | `arctan(y/x)` | `[+0, +pi/2]` |
528
+ /// | `>= +0` | `<= -0` | `arctan(y/x)` | `[-pi/2, -0]` |
529
+ /// | `<= -0` | `>= +0` | `arctan(y/x) + pi` | `[+pi/2, +pi]`|
530
+ /// | `<= -0` | `<= -0` | `arctan(y/x) - pi` | `[-pi, -pi/2]`|
529
531
///
530
532
/// # Unspecified precision
531
533
///
Original file line number Diff line number Diff line change @@ -827,10 +827,12 @@ impl f32 {
827
827
828
828
/// Computes the four quadrant arctangent of `self` (`y`) and `other` (`x`) in radians.
829
829
///
830
- /// * `x = 0`, `y = 0`: `0`
831
- /// * `x >= 0`: `arctan(y/x)` -> `[-pi/2, pi/2]`
832
- /// * `y >= 0`: `arctan(y/x) + pi` -> `(pi/2, pi]`
833
- /// * `y < 0`: `arctan(y/x) - pi` -> `(-pi, -pi/2)`
830
+ /// | `x` | `y` | Piecewise Definition | Range |
831
+ /// |---------|---------|----------------------|---------------|
832
+ /// | `>= +0` | `>= +0` | `arctan(y/x)` | `[+0, +pi/2]` |
833
+ /// | `>= +0` | `<= -0` | `arctan(y/x)` | `[-pi/2, -0]` |
834
+ /// | `<= -0` | `>= +0` | `arctan(y/x) + pi` | `[+pi/2, +pi]`|
835
+ /// | `<= -0` | `<= -0` | `arctan(y/x) - pi` | `[-pi, -pi/2]`|
834
836
///
835
837
/// # Unspecified precision
836
838
///
Original file line number Diff line number Diff line change @@ -827,10 +827,12 @@ impl f64 {
827
827
828
828
/// Computes the four quadrant arctangent of `self` (`y`) and `other` (`x`) in radians.
829
829
///
830
- /// * `x = 0`, `y = 0`: `0`
831
- /// * `x >= 0`: `arctan(y/x)` -> `[-pi/2, pi/2]`
832
- /// * `y >= 0`: `arctan(y/x) + pi` -> `(pi/2, pi]`
833
- /// * `y < 0`: `arctan(y/x) - pi` -> `(-pi, -pi/2)`
830
+ /// | `x` | `y` | Piecewise Definition | Range |
831
+ /// |---------|---------|----------------------|---------------|
832
+ /// | `>= +0` | `>= +0` | `arctan(y/x)` | `[+0, +pi/2]` |
833
+ /// | `>= +0` | `<= -0` | `arctan(y/x)` | `[-pi/2, -0]` |
834
+ /// | `<= -0` | `>= +0` | `arctan(y/x) + pi` | `[+pi/2, +pi]`|
835
+ /// | `<= -0` | `<= -0` | `arctan(y/x) - pi` | `[-pi, -pi/2]`|
834
836
///
835
837
/// # Unspecified precision
836
838
///
You can’t perform that action at this time.
0 commit comments