Skip to content

Commit d4328d9

Browse files
committed
Use pi instead of tau
1 parent eb44844 commit d4328d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,11 +1610,11 @@ mod test {
16101610

16111611
#[test]
16121612
fn test_cis() {
1613-
assert!(close(Complex::cis(0.00 * f64::consts::TAU), _1_0i));
1614-
assert!(close(Complex::cis(0.25 * f64::consts::TAU), _0_1i));
1615-
assert!(close(Complex::cis(0.50 * f64::consts::TAU), -_1_0i));
1616-
assert!(close(Complex::cis(0.75 * f64::consts::TAU), -_0_1i));
1617-
assert!(close(Complex::cis(1.00 * f64::consts::TAU), _1_0i));
1613+
assert!(close(Complex::cis(0.0 * f64::consts::PI), _1_0i));
1614+
assert!(close(Complex::cis(0.5 * f64::consts::PI), _0_1i));
1615+
assert!(close(Complex::cis(1.0 * f64::consts::PI), -_1_0i));
1616+
assert!(close(Complex::cis(1.5 * f64::consts::PI), -_0_1i));
1617+
assert!(close(Complex::cis(2.0 * f64::consts::PI), _1_0i));
16181618
}
16191619

16201620
#[test]

0 commit comments

Comments
 (0)