Improve the help for a calculation

Add help text and plus AND example


Improve help pages for calculator
This commit is contained in:
Magne Sjaastad
2022-12-13 14:47:26 +01:00
parent bfae28b4b4
commit e4c0b45b15
6 changed files with 183 additions and 1 deletions

View File

@@ -23,6 +23,10 @@
const std::map<QString, std::set<QString>> RiuExpressionContextMenuManager::MENU_MAP =
{ { "Basic Operators", { "+", "-", "*", "/", "x^n" } },
{ "Assignment Operators", { ":=" } },
{ "If Statements",
{ "VAR_1 := if((X < 0.01), 0.01, X)",
"VAR_1 := if((X < 0.01 AND Y > 2.5), 0.01, X)",
"VAR_1 := if((X < 0.01 OR Y > 2.5), 0.01, X)" } },
{ "Scalar Functions", { "avg(x)", "max(x)", "min(x)", "sum(x)" } },
{ "Vector Functions",
{ "abs(x)", "ceil(x)", "floor(x)", "frac(x)", "log(x)", "log10(x)", "pow(x, n)", "round(x)", "sgn(x)", "sqrt(x)", "trunc(x)" } },