Skip to content

Commit 7e1d201

Browse files
committed
TEST: Updated test
1 parent 47ba01c commit 7e1d201

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

integration_tests/test_cmath.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
from cmath import (exp, log, sqrt, acos, asin, atan, cos, sin, tan,
2-
acosh, asinh, atanh, cosh, sinh, tanh,
3-
phase, polar, rect)
4-
from lpython import c64, c32, f64
1+
from cmath import (acos, acosh, asin, asinh, atan, atanh, cos, cosh, exp, log,
2+
phase, polar, rect, sin, sinh, sqrt, tan, tanh)
3+
4+
from lpython import c32, c64, f64
5+
56

67
def test_power_logarithmic():
78
x: c64
@@ -63,7 +64,7 @@ def test_hyperbolic():
6364
def test_polar():
6465
x: c64
6566
eps: f64
66-
eps = 1e-12
67+
eps = 1e-6
6768
x = complex(1, -2)
6869
assert f64(abs(f64(phase(x)) - (-1.1071487177940904))) < eps
6970
assert f64(abs(f64(polar(x)[0]) - (2.23606797749979))) < eps
@@ -73,4 +74,4 @@ def test_polar():
7374
test_power_logarithmic()
7475
test_trigonometric()
7576
test_hyperbolic()
76-
test_polar()
77+
test_polar()

0 commit comments

Comments
 (0)