Fixing issue with derivative and integrals
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Adsooi 2024-01-11 00:09:35 +01:00
parent f9a7443631
commit e5fe8afd06
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -64,7 +64,7 @@ function parseArgumentsForFunction(args, usage1, usage2) {
} else if(args.length == 2) { } else if(args.length == 2) {
// Parse variable // Parse variable
[f,variable] = args [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)) throw EvalError(qsTranslate('usage', 'Usage: %1').arg(usage2))
f = parser.parse(f).toJSFunction(variable, currentVars) f = parser.parse(f).toJSFunction(variable, currentVars)
} else } else