mirror of
https://github.com/ArashPartow/exprtk.git
synced 2025-06-12 16:27:23 +00:00
C++ Mathematical Expression Library (ExprTk) http://www.partow.net/programming/exprtk/index.html
This commit is contained in:
29
readme.txt
29
readme.txt
@ -33,7 +33,7 @@ arithmetic operations, functions and processes:
|
||||
(5) Conditional,
|
||||
Switch &
|
||||
Loop statements: if-then-else, ternary conditional, switch-case,
|
||||
while, for, repeat-until
|
||||
while, for, repeat-until, break, continue
|
||||
|
||||
(6) Assignment: :=, +=, -=, *=, /=
|
||||
|
||||
@ -456,6 +456,33 @@ include path (e.g: /usr/include/).
|
||||
| | w := u + y; |
|
||||
| | } |
|
||||
+----------+---------------------------------------------------------+
|
||||
| break | Break terminates the execution of the nearest enclosed |
|
||||
| break[] | loop, allowing for the execution to continue on external|
|
||||
| | to the loop. The default break statement will set the |
|
||||
| | return value of the loop to NaN, where as the return |
|
||||
| | based form will set the value to that of the break |
|
||||
| | expression. |
|
||||
| | eg: |
|
||||
| | while ((i += 1) < 10) |
|
||||
| | { |
|
||||
| | if (i < 5) |
|
||||
| | j -= i + 2; |
|
||||
| | else if (i % 2 == 0) |
|
||||
| | break; |
|
||||
| | else |
|
||||
| | break[2i + 3]; |
|
||||
| | } |
|
||||
+----------+---------------------------------------------------------+
|
||||
| continue | Continue results in the remaining portion of the nearest|
|
||||
| | enclosing loop body to be skipped. |
|
||||
| | eg: |
|
||||
| | for (i := 0; i < 10; i+= 1) |
|
||||
| | { |
|
||||
| | if (i < 5) |
|
||||
| | continue; |
|
||||
| | j -= i + 2; |
|
||||
| | } |
|
||||
+----------+---------------------------------------------------------+
|
||||
| ?: | Ternary conditional statement, similar to that of the |
|
||||
| | above denoted if-statement. |
|
||||
| | eg: |
|
||||
|
Reference in New Issue
Block a user