-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add the Vensim POWER functions as a C macro (#286)
Fixes #283
- Loading branch information
1 parent
5e2f60c
commit 8fc1ee8
Showing
3 changed files
with
31 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
a | ||
0 4 | ||
1 4 | ||
b | ||
0 1.41421 | ||
1 1.41421 | ||
base | ||
0 2 | ||
c | ||
0 2.82843 | ||
1 2.82843 | ||
FINAL TIME | ||
0 1 | ||
INITIAL TIME | ||
0 0 | ||
SAVEPER | ||
0 1 | ||
1 1 | ||
TIME STEP | ||
0 1 |
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,10 @@ | ||
{UTF-8} | ||
base = 2 ~~| | ||
a = POWER(base, 2) ~~| | ||
b = POWER(base, 0.5) ~~| | ||
c = POWER(base, 1.5) ~~| | ||
|
||
INITIAL TIME = 0 ~~| | ||
FINAL TIME = 1 ~~| | ||
TIME STEP = 1 ~~| | ||
SAVEPER = TIME STEP ~~| |
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