-
Notifications
You must be signed in to change notification settings - Fork 4
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
10 changed files
with
380 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
Additional functions which can be used in Heta platforms | ||
can be added to index file by include ./qsp-functions.heta; | ||
*/ | ||
|
||
// hyperbolic functions | ||
|
||
#defineFunction sinh { | ||
arguments: [x], | ||
math: "0.5 * (exp(x) - exp(-x))" | ||
}; | ||
|
||
#defineFunction cosh { | ||
arguments: [x], | ||
math: "0.5 * (exp(x) + exp(-x))" | ||
}; | ||
|
||
#defineFunction tanh { | ||
arguments: [x], | ||
math: "(exp(2 * x) - 1) / (exp(2 * x) + 1)" | ||
}; | ||
|
||
#defineFunction sech { | ||
arguments: [x], | ||
math: "1 / cosh(x)" | ||
}; | ||
|
||
#defineFunction csch { | ||
arguments: [x], | ||
math: "1 / sinh(x)" | ||
}; | ||
|
||
#defineFunction coth { | ||
arguments: [x], | ||
math: "1 / tanh(x)" | ||
}; | ||
|
||
|
||
// inverse hyperbolic functions | ||
|
||
#defineFunction arcsinh { | ||
arguments: [x], | ||
math: "ln(x + sqrt(x^2 + 1))" | ||
}; | ||
|
||
#defineFunction arccosh { | ||
arguments: [x], | ||
math: "ln(x + sqrt(x^2 - 1))" | ||
}; | ||
|
||
#defineFunction arctanh { | ||
arguments: [x], | ||
math: "0.5 * ln((1 + x) / (1 - x))" | ||
}; | ||
|
||
#defineFunction arcsech { | ||
arguments: [x], | ||
math: "ln((1 + sqrt(1 - x^2)) / x)" | ||
}; | ||
|
||
#defineFunction arccsch { | ||
arguments: [x], | ||
math: "ln(1 / x + sqrt(1 + 1 / x^2))" | ||
}; | ||
|
||
#defineFunction arccoth { | ||
arguments: [x], | ||
math: "0.5 * ln((x + 1) / (x - 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,34 @@ | ||
### Basic .gitattributes for a Heta repo. | ||
# Note that binary is a macro for -text -diff. | ||
|
||
* text=auto | ||
|
||
# main files | ||
# to have heta files in linux style line endings | ||
*.heta text eol=lf | ||
*.xlsx binary | ||
|
||
# auxilary files | ||
*.bash text eol=lf | ||
*.sh text eol=lf | ||
*.xlsm binary | ||
*.xls binary | ||
*.pptx binary | ||
*.ppt binary | ||
|
||
# code | ||
*.md text | ||
*.m text | ||
# -diff | ||
*.slv text eol=crlf diff=slv | ||
*.dat text eol=crlf diff=dat | ||
*.cpp text | ||
*.svg text diff=xml | ||
*.xml text diff=xml | ||
*.sbml text diff=xml | ||
|
||
# LFS (large files) | ||
large/* filter=lfs diff=lfs merge=lfs -text | ||
literature/* filter=lfs diff=lfs merge=lfs -text | ||
*.zip filter=lfs diff=lfs merge=lfs -text | ||
*.rar filter=lfs diff=lfs merge=lfs -text |
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,11 @@ | ||
### Heta specific files and dirs | ||
/dist | ||
/draft | ||
/drafts | ||
/meta | ||
|
||
### temporal files | ||
*.tmp | ||
~$*.* | ||
*.log | ||
.Rhistory |
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,12 @@ | ||
{ | ||
"builderVersion": "^0.8.2", | ||
"id": "template", | ||
"notes": "platform notes", | ||
"version": "v0.1.0", | ||
"license": "UNLICENSED", | ||
"options": {}, | ||
"importModule": { | ||
"type": "heta", | ||
"source": "src/index.heta" | ||
} | ||
} |
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,25 @@ | ||
/* | ||
template file for creating platform | ||
*/ | ||
// add qsp units | ||
include ./qsp-units.heta; | ||
include ./qsp-functions.heta; | ||
|
||
// include module.heta type heta; | ||
// include table.xlsx type table with { sheet: 0, omitRows: 3 }; | ||
// include addon.json type json; | ||
// include addon.yml type yaml; | ||
|
||
p1 @Record .= 1; | ||
|
||
// exports | ||
#export { format: JSON, filepath: output }; | ||
//#export { format: YAML }; | ||
//#export { format: XLSX, omitRows: 3, splitByClass: true }; | ||
//#export { format: SBML, version: L2V4 }; | ||
//#export { format: SLV, eventsOff: false }; | ||
//#export { format: DBSolve }; | ||
//#export { format: Simbio }; | ||
//#export { format: Mrgsolve }; | ||
//#export { format: Matlab }; | ||
//#export { format: Julia }; |
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,69 @@ | ||
/* | ||
Additional functions which can be used in Heta platforms | ||
can be added to index file by include ./qsp-functions.heta; | ||
*/ | ||
|
||
// hyperbolic functions | ||
|
||
#defineFunction sinh { | ||
arguments: [x], | ||
math: "0.5 * (exp(x) - exp(-x))" | ||
}; | ||
|
||
#defineFunction cosh { | ||
arguments: [x], | ||
math: "0.5 * (exp(x) + exp(-x))" | ||
}; | ||
|
||
#defineFunction tanh { | ||
arguments: [x], | ||
math: "(exp(2 * x) - 1) / (exp(2 * x) + 1)" | ||
}; | ||
|
||
#defineFunction sech { | ||
arguments: [x], | ||
math: "1 / cosh(x)" | ||
}; | ||
|
||
#defineFunction csch { | ||
arguments: [x], | ||
math: "1 / sinh(x)" | ||
}; | ||
|
||
#defineFunction coth { | ||
arguments: [x], | ||
math: "1 / tanh(x)" | ||
}; | ||
|
||
|
||
// inverse hyperbolic functions | ||
|
||
#defineFunction arcsinh { | ||
arguments: [x], | ||
math: "ln(x + sqrt(x^2 + 1))" | ||
}; | ||
|
||
#defineFunction arccosh { | ||
arguments: [x], | ||
math: "ln(x + sqrt(x^2 - 1))" | ||
}; | ||
|
||
#defineFunction arctanh { | ||
arguments: [x], | ||
math: "0.5 * ln((1 + x) / (1 - x))" | ||
}; | ||
|
||
#defineFunction arcsech { | ||
arguments: [x], | ||
math: "ln((1 + sqrt(1 - x^2)) / x)" | ||
}; | ||
|
||
#defineFunction arccsch { | ||
arguments: [x], | ||
math: "ln(1 / x + sqrt(1 + 1 / x^2))" | ||
}; | ||
|
||
#defineFunction arccoth { | ||
arguments: [x], | ||
math: "0.5 * ln((x + 1) / (x - 1))" | ||
}; |
Oops, something went wrong.