Skip to content

Commit

Permalink
update math functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Metelkin committed Dec 18, 2019
1 parent 005b0ae commit 32712ff
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
9 changes: 7 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# Change Log

# 0.2.3
## 0.2.4

- update list of core math functions
- add sheet (number) option in include statement

## 0.2.3

- add `include file.heta type heta with {}` statement instead of `import` action

# 0.2.2
## 0.2.2

- mark namespace as experimental (unstable) feature

Expand Down
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

**Heta language** is a domain specific programming language (not general-purpose) for dynamic quantitative models used in quantitative systems pharmacology and systems biology.

## Language specification v0.2.3
## Language specification v0.2.4

- [Syntax](syntax)
- [Classes](classes)
Expand Down
14 changes: 8 additions & 6 deletions math.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,30 +28,32 @@ Additional functions can be added by user. See [@FunctionDefinition](./classes#f
### Arithmetic function list

| id | explanation |
|----|-------------|
|----|-------------|
| abs(x) | The absolute value of a number.|
| add(x, y) | Add two or more values, x + y.|
| ceil(x) | Round a value towards plus infinity. |
| ceil(x) | Round a value towards plus. |
| cube(x) | The cube of a value, x * x * x. |
| divide(x, y)| Divide two values, x / y. |
| exp(x) | The exponent of a value. |
| floor(x) | Round a value towards minus infinity. |
| floor(x) | Round a value towards minus. |
| ln(x) | Natural logarithm of a value |
| log(x) | Natural logarithm of a value |
| log(x, base) | The logarithm of a value with base. |
| log10(x) | The 10-base logarithm of a value. |
| log2(x) | The 2-base of a value. |
| multiply(x, y)| Multiply two or more values, x * y. |
| pow(x, y) | The power of x to y, x ^ y. |
| round(x) | Round a value towards the nearest integer. |
| round(x, n) | Round a value towards the nearest integer with n digits after point. |
| sign(x) | Compute the sign of a value. |
| sqrt(x) | Calculate the square root of a value. |
| square(x)| Compute the square of a value, x * x. |
| subtract(x, y) | Subtract two values, x - y. |
| unaryMinus(x) | Inverse the sign of a value, apply a unary minus operation. |
| max(x, y) | Maximum from two numbers |
| max(x, y, z) | Maximum from 3 numbers |
| min(x, y) | Minimum from two numbers |
| min(x, y, z) | Minimum from 3 numbers |
| ifg(x, y1, y2) | If grater, if x>0 than y1 else y2 |
| ife(x, y1, y2) | If equal, if x==0 than y1 else y2 |
| ifge(x, y1, y2) | If grater or equal, if x>=0 than y1 else y2 |

## Trigonometric functions

Expand Down
1 change: 1 addition & 0 deletions versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ Each substantial change in Heta syntax or interpretation will update the MINOR n
| 0.2.1 | v0.4.3 | ^0.4 |
| 0.2.2 | v0.4.4 | ^0.4 |
| 0.2.3 | v0.4.5 | ^0.4.5 |
| 0.2.4 | v0.4.10 | ^v0.4.10 |

0 comments on commit 32712ff

Please sign in to comment.