Skip to content

Commit c5f573e

Browse files
committed
added documentation for new functions
1 parent 1f54148 commit c5f573e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,16 @@ division (/), exponentiation (^) and modulus (%) with the normal operator
269269
precedence (the one exception being that exponentiation is evaluated
270270
left-to-right, but this can be changed - see below).
271271

272-
In addition, the following C math functions are also supported:
272+
The following C math functions are also supported:
273273

274274
- abs (calls to *fabs*), acos, asin, atan, atan2, ceil, cos, cosh, exp, floor, ln (calls to *log*), log (calls to *log10* by default, see below), log10, pow, sin, sinh, sqrt, tan, tanh
275275

276+
The following functions are also built-in and provided by TinyExpr:
277+
278+
- fac (factorials e.g. `fac 5` == 120)
279+
- ncr (combinations e.g. `ncr(6,2)` == 15)
280+
- npr (permutations e.g. `npr(6,2)` == 30)
281+
276282
Also, the following constants are available:
277283

278284
- `pi`, `e`

0 commit comments

Comments
 (0)