Adding x value as argument for derivative objects.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adsooi 2024-10-11 02:38:11 +02:00
parent 82e6d2ffe3
commit 00ab895b21
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -157,7 +157,7 @@ class LatexAPI extends Module {
if(args.length === 3)
return `\\frac{d${args[0].removeEnclosure().replaceAll(args[1].removeEnclosure(), "x")}}{dx}`
else
return `\\frac{d${args[0]}}{dx}(x)`
return `\\frac{d${args[0]}}{dx}(${args[1]})`
case "integral":
if(args.length === 4)
return `\\int\\limits_{${args[0]}}^{${args[1]}}${args[2].removeEnclosure()} d${args[3].removeEnclosure()}`