From e5fe8afd0623c66a0dfacb7be38464ff759cdbce Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Thu, 11 Jan 2024 00:09:35 +0100 Subject: [PATCH] Fixing issue with derivative and integrals --- .../qml/eu/ad5001/LogarithmPlotter/js/math/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/common.js b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/common.js index 450ae6d..ed544ab 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/common.js +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/common.js @@ -64,7 +64,7 @@ function parseArgumentsForFunction(args, usage1, usage2) { } else if(args.length == 2) { // Parse variable [f,variable] = args - if(typeof f != 'string' || typeof variable != 'number') + if(typeof f != 'string' || typeof variable != 'string') throw EvalError(qsTranslate('usage', 'Usage: %1').arg(usage2)) f = parser.parse(f).toJSFunction(variable, currentVars) } else