-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
314 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
NEURON { | ||
SUFFIX scalar | ||
} | ||
|
||
PARAMETER { | ||
freq = 10 | ||
a = 5 | ||
v1 = -1 | ||
v2 = 5 | ||
v3 = 15 | ||
v4 = 0.8 | ||
v5 = 0.3 | ||
r = 3 | ||
k = 0.2 | ||
} | ||
|
||
STATE {var1 var2 var3} | ||
|
||
INITIAL { | ||
var1 = v1 | ||
var2 = v2 | ||
var3 = v3 | ||
} | ||
|
||
BREAKPOINT { | ||
SOLVE equation METHOD derivimplicit | ||
} | ||
|
||
|
||
DERIVATIVE equation { | ||
: eq with a function on RHS | ||
var1' = -sin(freq * t) | ||
: simple ODE (nonzero Jacobian) | ||
var2' = -var2 * a | ||
: logistic ODE | ||
var3' = r * var3 * (1 - var3 / k) | ||
} |
Oops, something went wrong.