Solving Separable Differential Equations
John Travis
Mississippi College
Blanchard, Devaney and Hall, 4th edition.
Enter the right-hand-side for a separable differential equation of the form
$\frac{\mathrm{dy}}{\mathrm{dt}} = f(t,y)$
with y as a function of t entered as "y(t)" instead of just plain "y".
Of course, the DE will be separable if it is possible to write $f(t,y) = g(y) h(t)$ for some functions $g$ and $h$.
#0: ic1(soln=-1/(3*y) = log(_SAGE_VAR_t)+%c,xc=_SAGE_VAR_t = 0,yc=y = 1) Traceback (click to the left of this block for traceback) ... TypeError: ECL says: Error executing code in Maxima: log: encountered log(0). #0: ic1(soln=-1/(3*y) = log(_SAGE_VAR_t)+%c,xc=_SAGE_VAR_t = 0,yc=y = 1) Traceback (most recent call last): F = maxima.factor(f) File "", line 1, in <module> File "/tmp/tmptebzU_/___code___.py", line 20, in <module> sol_p = desolve(diff(y,t) - f, y, ics=[t0,y0]) File "/home/sageserver/sage-8.7/local/lib/python2.7/site-packages/sage/calculus/desolvers.py", line 614, in desolve soln=P(cmd) File "/home/sageserver/sage-8.7/local/lib/python2.7/site-packages/sage/interfaces/interface.py", line 288, in __call__ return cls(self, x, name=name) File "/home/sageserver/sage-8.7/local/lib/python2.7/site-packages/sage/interfaces/interface.py", line 703, in __init__ raise TypeError(x) TypeError: ECL says: Error executing code in Maxima: log: encountered log(0). |
|
|