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:
@ -600,8 +600,8 @@ static const test_t test_list[] =
|
||||
test_t("log(2.7182818284590451)",1.0),
|
||||
test_t("log10(10.0)",1.0),
|
||||
test_t("frac(12.34) + trunc(12.34)",12.34),
|
||||
test_t("hyp(3.0,4.0)",5.0),
|
||||
test_t("hyp(1.0,sqrt(3.0))",2.0),
|
||||
test_t("hypot(3.0,4.0)",5.0),
|
||||
test_t("hypot(1.0,sqrt(3.0))",2.0),
|
||||
test_t("if(1 < 2, 3, 4)",3.0),
|
||||
test_t("if(1.1 < 2.2, 3.3, 4.4)",3.3),
|
||||
test_t("if((1.0+1.1) < (2.0+1.2), 3.3, 4.4)",3.3),
|
||||
|
Reference in New Issue
Block a user