@sdeverywhere/cli 0.7.12 → 0.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/c/vensim.h +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdeverywhere/cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.13",
|
|
4
4
|
"description": "Contains the `sde` command line interface for the SDEverywhere tool suite.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@sdeverywhere/build": "^0.3.2",
|
|
15
|
-
"@sdeverywhere/compile": "^0.7.
|
|
15
|
+
"@sdeverywhere/compile": "^0.7.9",
|
|
16
16
|
"bufx": "^1.0.5",
|
|
17
17
|
"byline": "^5.0.0",
|
|
18
18
|
"ramda": "^0.27.0",
|
package/src/c/vensim.h
CHANGED
|
@@ -13,12 +13,13 @@ extern "C" {
|
|
|
13
13
|
//
|
|
14
14
|
// Vensim functions
|
|
15
15
|
// See the Vensim Reference Manual for descriptions of the functions.
|
|
16
|
-
//
|
|
16
|
+
// https://www.vensim.com/documentation/22300.html
|
|
17
17
|
//
|
|
18
18
|
#define _ABS(x) fabs(x)
|
|
19
19
|
#define _COS(x) cos(x)
|
|
20
20
|
#define _EXP(x) exp(x)
|
|
21
21
|
#define _GAME(x) (x)
|
|
22
|
+
#define _GAMMA_LN(x) lgamma(x)
|
|
22
23
|
#define _IF_THEN_ELSE(c, t, f) (bool_cond(c) ? (t) : (f))
|
|
23
24
|
#define _INTEG(value, rate) ((value) + (rate) * _time_step)
|
|
24
25
|
#define _INTEGER(x) trunc(x)
|