File: rtest_ode.mac

package info (click to toggle)
maxima-sage 5.45.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 113,788 kB
  • sloc: lisp: 440,833; fortran: 14,665; perl: 14,369; tcl: 10,997; sh: 4,475; makefile: 2,520; ansic: 447; python: 262; xml: 59; awk: 37; sed: 17
file content (12 lines) | stat: -rw-r--r-- 247 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
kill(all);
'done$

(load('odes), 'done);
'done$

block([eq, sol],
  eq: x^3*'diff(y, x, 3) + x*'diff(y, x) - y = x,
  odecv(x = exp(t), eq, y, x),
  odeL(%%, y, t),
  sol: subst(t = log(x), %%));
y = (x*log(x)^3)/6+C3*x*log(x)^2+C2*x*log(x)+C1*x$