Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushbisht2001 committed Feb 16, 2021
1 parent 22b7417 commit e1acdfb
Showing 1 changed file with 7 additions and 29 deletions.
36 changes: 7 additions & 29 deletions sympy/series/tests/test_series.py
Original file line number Diff line number Diff line change
@@ -1,43 +1,33 @@
from sympy import sin, cos, exp, E, series, oo, S, Derivative, O, Integral, \
Function, PoleError, log, sqrt, N, Symbol, Subs, pi, symbols, atan, LambertW, Rational, tan, cot, sec, cosec
Function, PoleError, log, sqrt, N, Symbol, Subs, pi, symbols, atan, LambertW, Rational
from sympy.abc import x, y, n, k
from sympy.testing.pytest import raises
from sympy.series.gruntz import calculate_series


def test_sin():
def test_trigonometric():
e1 = sin(x).series(x, 0)
e2 = series(sin(x), x, 0)
assert e1 == e2


def test_cos():
e1 = cos(x).series(x, 0)
e2 = series(cos(x), x, 0)
assert e1 == e2


def test_tan():
e1 = tan(x).series(x, 0)
e2 = series(tan(x), x, 0)
assert e1 == e2


def test_cot():
e1 = cot(x).series(x, 0)
e2 = series(cot(x), x, 0)
assert e1 == e2


def test_sec():
e1 = sec(x).series(x, 0)
e2 = series(sec(x), x, 0)
assert e1 == e2


def test_cosec():
e1 = cosec(x).series(x, 0)
e2 = series(cosec(x), x, 0)
e1 = csc(x).series(x, 0)
e2 = series(csc(x), x, 0)
assert e1 == e2


Expand All @@ -46,40 +36,28 @@ def test_exp():
e2 = series(exp(x), x, 0)
assert e1 == e2


def test_exp2():
e1 = exp(cos(x)).series(x, 0)
e2 = series(exp(cos(x)), x, 0)
assert e1 == e2


def test_exp3():
e1 = exp(sin(x)).series(x, 0)
e1 = exp(sin(x)).series(x, 0)
e2 = series(exp(sin(x)), x, 0)
assert e1 == e2


def test_exp4():
e1 = exp(tan(x)).series(x, 0)
e2 = series(exp(tan(x)), x, 0)
assert e1 == e2


def test_exp5():
e1 = exp(cot(x)).series(x, 0)
e2 = series(exp(cot(x)), x, 0)
assert e1 == e2


def test_exp6():
e1 = exp(sec(x)).series(x, 0)
e2 = series(exp(sec(x)), x, 0)
assert e1 == e2


def test_exp7():
e1 = exp(cosec(x)).series(x, 0)
e2 = series(exp(cosec(x)), x, 0)
e1 = exp(csc(x)).series(x, 0)
e2 = series(exp(csc(x)), x, 0)
assert e1 == e2


Expand Down

0 comments on commit e1acdfb

Please sign in to comment.