aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math/complex/arg.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-11-06 14:09:31 -0500
committerGitHub <noreply@github.com>2020-11-06 14:09:31 -0500
commitd1b1f053b0fa8bf5bf716bae79fd656ce8aaec27 (patch)
tree82795b82ea092ebe4c777ed75db4fe503704c9ad /lib/std/math/complex/arg.zig
parentb9391c9564dd56a46fbf83d8c536af1a3ad14678 (diff)
parentff14451b4a328ca6862637a88912000d11aa2bf3 (diff)
downloadzig-d1b1f053b0fa8bf5bf716bae79fd656ce8aaec27.tar.gz
zig-d1b1f053b0fa8bf5bf716bae79fd656ce8aaec27.zip
Merge pull request #6941 from LemonBoy/floateqapprox
std: Implement more useful approxEq semantics
Diffstat (limited to 'lib/std/math/complex/arg.zig')
-rw-r--r--lib/std/math/complex/arg.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/math/complex/arg.zig b/lib/std/math/complex/arg.zig
index 7cfbc8bd0f..43c1d93874 100644
--- a/lib/std/math/complex/arg.zig
+++ b/lib/std/math/complex/arg.zig
@@ -20,5 +20,5 @@ const epsilon = 0.0001;
test "complex.carg" {
const a = Complex(f32).new(5, 3);
const c = arg(a);
- testing.expect(math.approxEq(f32, c, 0.540420, epsilon));
+ testing.expect(math.approxEqAbs(f32, c, 0.540420, epsilon));
}