Skip to content

Commit

Permalink
format according to doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewFlamm committed Jan 29, 2019
1 parent dd2a893 commit 0aa9857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scipy/integrate/_ivp/ivp.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,14 +430,14 @@ def solve_ivp(fun, t_span, y0, method='RK45', t_eval=None, dense_output=False,
>>> def apex(t,y): return y[1]
>>> sol = solve_ivp(upward_cannon, [0, 100], [0, 10],
>>> events=(hit_ground, apex), dense_output=True)
... events=(hit_ground, apex), dense_output=True)
>>> print(sol.t_events)
[array([40.]), array([20.])]
>>> print(sol.t)
[0.00000000e+00 9.99900010e-05 1.09989001e-03 1.10988901e-02
1.11088891e-01 1.11098890e+00 1.11099890e+01 4.00000000e+01]
>>> print(sol.sol(sol.t_events[1][0]))
[100. 0.]
[100. 0.]
"""
if method not in METHODS and not (
inspect.isclass(method) and issubclass(method, OdeSolver)):
Expand Down

0 comments on commit 0aa9857

Please sign in to comment.