Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Oct 11, 2021
1 parent 4b36d1a commit d1e5e61
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions diofant/tests/solvers/test_solvers.py
Expand Up @@ -1756,3 +1756,15 @@ def test_sympyissue_22058():
assert solve(-sqrt(t)*x**2 + 2*x + sqrt(t),
x) == [{x: -sqrt(1 + 1/t) + 1/sqrt(t)},
{x: sqrt(1 + 1/t) + 1/sqrt(t)}]


def test_sympyissue_22248():
g = 9.81
y0 = 100
v0 = 55
m = 80
c = 15
y = y0 + (m/c)*(v0 + ((m*g)/c))*(1 - exp(- (c/m)*x)) - ((m*g)/c)*x

assert solve(y) == [{x: Float('-1.4164130909148258', dps=15)},
{x: Float('11.61083847106101', dps=15)}]
1 change: 1 addition & 0 deletions docs/release/notes-0.13.rst
Expand Up @@ -137,3 +137,4 @@ These Sympy issues also were addressed:
* :sympyissue:`22093`: sympy.polys.polyerrors.HeuristicGCDFailed: no luck
* :sympyissue:`22155`: Problem with solving simple separable ODE
* :sympyissue:`22220`: Bug in the evaluation of a log limit
* :sympyissue:`22248`: solve running forever

0 comments on commit d1e5e61

Please sign in to comment.