diff options
Diffstat (limited to 'lib/std/math/complex/exp.zig')
| -rw-r--r-- | lib/std/math/complex/exp.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/math/complex/exp.zig b/lib/std/math/complex/exp.zig index 3ad51fe06f..156a947a32 100644 --- a/lib/std/math/complex/exp.zig +++ b/lib/std/math/complex/exp.zig @@ -131,14 +131,14 @@ test "complex.cexp32" { const a = Complex(f32).new(5, 3); const c = exp(a); - testing.expect(math.approxEq(f32, c.re, -146.927917, epsilon)); - testing.expect(math.approxEq(f32, c.im, 20.944065, epsilon)); + testing.expect(math.approxEqAbs(f32, c.re, -146.927917, epsilon)); + testing.expect(math.approxEqAbs(f32, c.im, 20.944065, epsilon)); } test "complex.cexp64" { const a = Complex(f64).new(5, 3); const c = exp(a); - testing.expect(math.approxEq(f64, c.re, -146.927917, epsilon)); - testing.expect(math.approxEq(f64, c.im, 20.944065, epsilon)); + testing.expect(math.approxEqAbs(f64, c.re, -146.927917, epsilon)); + testing.expect(math.approxEqAbs(f64, c.im, 20.944065, epsilon)); } |
