Skip to content

Commit

Permalink
Addressed points from review discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
Raoul Bourquin committed May 12, 2012
1 parent 62bd77c commit 008560c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 17 additions & 3 deletions sympy/functions/special/tests/test_error_functions.py
@@ -1,6 +1,8 @@
from sympy import (symbols, expand, expand_func, erf, nan, oo, Float, conjugate, sqrt, sin, cos, pi, re, im, Abs, O,
factorial, exp_polar, polar_lift, Symbol, I, integrate, exp, uppergamma, expint, log, loggamma, limit,
hyper, meijerg, gamma, S, Shi, Chi, Si, Ci, E1, Ei, sin, cos, sinh, cosh, fresnels, fresnelc)
from sympy import (symbols, expand, expand_func, erf, nan, oo, Float, conjugate,
sqrt, sin, cos, pi, re, im, Abs, O, factorial, exp_polar,
polar_lift, Symbol, I, integrate, exp, uppergamma, expint,
log, loggamma, limit, hyper, meijerg, gamma, S, Shi, Chi,
Si, Ci, E1, Ei, sin, cos, sinh, cosh, fresnels, fresnelc)

from sympy.functions.special.error_functions import _erfs

Expand Down Expand Up @@ -295,3 +297,15 @@ def test_fresnel():
assert fresnelc(z).rewrite(meijerg) == sqrt(2)*pi*z**(S(3)/4)* \
meijerg(((), (1,)), ((S(1)/4,), (S(3)/4, 0)), -pi**2*z**4/16)/(2*(-z)**(S(1)/4)*(z**2)**(S(1)/4))


from sympy.utilities.randtest import test_numerically

test_numerically(re(fresnels(z)), fresnels(z).as_real_imag()[0], z)
test_numerically(im(fresnels(z)), fresnels(z).as_real_imag()[1], z)
test_numerically(fresnels(z), fresnels(z).rewrite(hyper), z)
test_numerically(fresnels(z), fresnels(z).rewrite(meijerg), z)

test_numerically(re(fresnelc(z)), fresnelc(z).as_real_imag()[0], z)
test_numerically(im(fresnelc(z)), fresnelc(z).as_real_imag()[1], z)
test_numerically(fresnelc(z), fresnelc(z).rewrite(hyper), z)
test_numerically(fresnelc(z), fresnelc(z).rewrite(meijerg), z)
2 changes: 1 addition & 1 deletion sympy/integrals/tests/test_transforms.py
Expand Up @@ -486,7 +486,7 @@ def test_laplace_transform():

def test_inverse_laplace_transform():
from sympy import (expand, sinh, cosh, besselj, besseli, exp_polar,
unpolarify, simplify, fresnels, fresnelc)
unpolarify, simplify)
ILT = inverse_laplace_transform
a, b, c, = symbols('a b c', positive=True)
t = symbols('t')
Expand Down

0 comments on commit 008560c

Please sign in to comment.