Skip to content

Commit 2ac6ed6

Browse files
committed
Update Readmes to mention 24 parameter support
1 parent b6032e1 commit 2ac6ed6

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Note: for current users of *TinyExpr++*, please see the [compatibility advisory]
4747
- Exposes standard C math functions (`sin`, `sqrt`, `ln`, etc.), as well as some *Excel*-like functions (e.g., `AVERAGE()` and `IF()`).
4848
- Can add custom functions and variables easily.
4949
- Can bind constants at eval-time.
50-
- Supports variadic functions (taking between 1-7 arguments).
50+
- Supports variadic functions (taking between 1-24 arguments).
5151
- Case insensitive.
5252
- Supports non-US formulas (e.g., `POW(2,2; 2)` instead of `POW(2.2, 2)`).
5353
- Supports C and C++ style comments within math expressions.

TinyExprChanges.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The following are changes from the original TinyExpr C library:
99
- Variable/function types (e.g., `TE_FUNCTION0`) have been removed; types are now deduced by the compiler. The available flags
1010
for variables and functions are now just combinations of `TE_DEFAULT`, `TE_PURE`, and `TE_VARIADIC`.
1111
- Formula parsing is now case insensitive.
12-
- Added support for variadic functions (can accept 1-7 arguments); enabled through the `TE_VARIADIC` flag.
12+
- Added support for variadic functions (can accept 1-24 arguments); enabled through the `TE_VARIADIC` flag.
1313
(Refer to the `AVERAGE()` function in `tinyexp.cpp` for an example.)
1414
- Added support for parsing formulas in non-US format (e.g., `pow(2,2; 2)` instead of `pow(2.2, 2)`). Useful for when the program's locale is non-English.
1515
(Refer to [Example 4](Examples.md) for a demonstration.)
@@ -31,8 +31,8 @@ The following are changes from the original TinyExpr C library:
3131
- Custom functions and variables can now be removed.
3232
- Added support for custom handlers to resolve unknown variables.
3333
- Added new built-in functions:
34-
- `and`: returns true (i.e., non-zero) if all conditions are true (accepts 1-7 arguments).
35-
- `average`: returns the mean for a range of values (accepts 1-7 arguments).
34+
- `and`: returns true (i.e., non-zero) if all conditions are true (accepts 1-24 arguments).
35+
- `average`: returns the mean for a range of values (accepts 1-24 arguments).
3636
- `bitand`: bitwise AND.
3737
- `bitlrotate`: bitwise left rotate. Versions of this are available for 8-, 16-, 32-, and 64-bit integers (if supported by the platform). (Only available if compiled as C++20.)
3838
- `bitlshift`: left shift.
@@ -53,13 +53,13 @@ The following are changes from the original TinyExpr C library:
5353
- `isodd`: returns true if a number is odd, false if even.
5454
- `if`: if a value is true (i.e., non-zero), then returns the second argument; otherwise, returns the third argument.
5555
- `ifs`: checks up to three conditions, returning the value corresponding to the first met condition.
56-
- `max`: returns the maximum of a range of values (accepts 1-7 arguments).
56+
- `max`: returns the maximum of a range of values (accepts 1-24 arguments).
5757
- `maxint`: returns the largest integer value that the parser can store.
58-
- `min`: returns the minimum of a range of values (accepts 1-7 arguments).
58+
- `min`: returns the minimum of a range of values (accepts 1-24 arguments).
5959
- `mod`: returns remainder from a division.
6060
- `nan`: returns `NaN` (i.e., Not-a-Number) in a boolean expression.
6161
- `odd`: returns a value rounded up to the nearest odd integer.
62-
- `or`: returns true (i.e., non-zero) if any condition is true (accepts 1-7 arguments).
62+
- `or`: returns true (i.e., non-zero) if any condition is true (accepts 1-24 arguments).
6363
- `not`: returns logical negation of value.
6464
- `permut`: alias for `npr()`, like the *Excel* function.
6565
- `power`: alias for `pow()`, like the *Excel* function.
@@ -69,7 +69,7 @@ The following are changes from the original TinyExpr C library:
6969
(Decimal point is optional and defaults to `0`.)
7070
Negative number-of-digits arguments (similar to *Excel*) is supported.
7171
- `sign`: returns the sign of a number: `1` if positive, `-1` if negative, `0` if zero.
72-
- `sum`: returns the sum of a list of values (accepts 1-7 arguments).
72+
- `sum`: returns the sum of a list of values (accepts 1-24 arguments).
7373
- `sqr`: returns a number squared.
7474
- `tgamma`: returns gamma function of a specified value.
7575
- `trunc`: returns the integer part of a number.

docs/manual/functions.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Table: Statistical Functions\index{functions!statistical}
9898
| :-- | :-- |
9999
| AND(Value1, Value2, ...) | Returns true if all conditions are true. |
100100
| IF(Condition, ValueIfTrue, ValueIfFalse) | If *Condition* is true (non-zero), then *ValueIfTrue* is returned; otherwise, *ValueIfFalse* is returned.<br>\linebreak Note that multiple `IF` commands can be nested to create a "case" statement\index{case statements}. |
101-
| IFS(Condition1, Value1, Condition2, Value2, ...) | Checks up to three conditions, returning the value corresponding to the first met condition.<br>\linebreak This is shorthand for multiple nested `IF` commands, providing better readability. Will accept 1–3 condition/value pairs.<br>\linebreak NaN will be returned if all conditions are false. |
101+
| IFS(Condition1, Value1, Condition2, Value2, ...) | Checks up to twelve conditions, returning the value corresponding to the first met condition.<br>\linebreak This is shorthand for multiple nested `IF` commands, providing better readability. Will accept 1–12 condition/value pairs.<br>\linebreak NaN will be returned if all conditions are false. |
102102
| NOT(Value) | Returns the logical negation of *Value.* |
103103
| OR(Value1, Value2, ...) | Returns true if any condition is true. |
104104

docs/manual/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ It's open-source, free, easy-to-use, and self-contained in a single source and h
3939
- Can add custom functions and variables easily.
4040
- Can add a custom handler to resolve unknown variables.
4141
- Can bind constants at eval-time.
42-
- Supports variadic functions (taking between 1-7 arguments).
42+
- Supports variadic functions (taking between 1-24 arguments).
4343
- Case insensitive.
4444
- Supports non-US formulas (e.g., `POW(2,2; 2)` instead of `POW(2.2, 2)`).
4545
- Supports C and C++ style comments within math expressions.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy