Scientific calculator plugin

Hello and good day~

Is it possible to make a scientific calculator plugin in MV?
Let say if i want to calculate algebra to find x, x=2y-5 it will calculate till it find x = -5.

So the plugin call will be something like:
Code:
calc var[n] x=2y-5

or other variation like:

calc var[n] x=2y^2+3z+5
calc var[n] x=var[o]y+var[p]

where var[n] is the variable to store the answer. It can also use variable to calculate.
I tried calculate this using scriptcall of course. but it is nice if there's plugin for that available.
It might also possible calculate damage formula using this and store it on a variable.
Honestly this is the kind of thing where a dedicated plugin isn't really necessary. You can do the same with a basic script call, and it's probably much more customizable than any plugin would be. My initial guess would be using JS's Math.() function in conjunction with $gameVariables.value(variable ID here) to achieve your desired effect.
Yeah, I've tried that actually, but keeping track of the formula is difficult. manageable but difficult.
I create many branches so that I can count x+y+z, x*y+z, and all variation of the calculation.

I wanted to make a puzzle, but instead of a predetermined math quiz, I wanted it to be random.
You can essentially create your own plugin commands by assigning each formula to a common event, and then using the "Call Common Event" command to process it, using variables to pass info between event pages.
I have done something similar, but i think I over complicated it and make it in one huge pile of common event.
I will work it from the ground up again.
1 common event to determine the formula, then call the right common event to calculate it.
i wanted a calculator HUD, but there is none. if you just want functions just use that of javascript built in. maybe you should check that of mog hunter's yuri yuri

i think what you are trying to find is a quiz data base manager plugin. there is none, you will need no manually distribute them into common events then random number where it lands. if you want to remove duplicates just make an array question numbers, then use splice to remove them.

Original thread: https://forums.rpgmakerweb.com/threads/scientific-calculator-plugin.122127/