File: lin.ode

package info (click to toggle)
xppaut 8.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,332 kB
  • sloc: ansic: 74,690; makefile: 127; sh: 92
file content (17 lines) | stat: -rwxr-xr-x 160 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Generic linear equation
#
init x=2,y=0
p a=1,b=0,c=0,d=-1
#f(z)=z/(1+z^2)
f(z)=z
only x,y
x'= a*x+b*y
y'= f(c*x+d*y)
#aux z=if(x>c)then(a*y)else(b*x)
d