Looking for advanced math plugin

● ARCHIVED · READ-ONLY
Started by Warilized 3 posts View original ↗
  1. Hello and good day/night~

    I'm looking for an "advanced math/arithmetic plugins" to calculate some math prob. (I need it for my math quiz like game).

    The math subject is basic linear programming if you are wondering.

    I'm searching for plugin with a plugin call that can save to a certain var.

    Ex: "solve x v[10], 3x + 2 = 8"
    Where the plugin will store value of x in a variable.

    or "solve x v[10], v[1]x + v[2] = v[3]"
    Where it is the same as above but variable can be used in calculation...

    I also wany the abilty to solve y/z if there's multiple variables.

    Idk if it is hard or not because it is only involving math function.

    I tried to common event it, and that's a nightmare.
    I've been searching a similar plugin but can't find Q.Q

    Thanks a bunch in advance.
  2. I don't really get why this would need a plugin.
    The solution to ax + b = c is always x = (c - b) / a.

    Just do that using variables, let's say:
    a = variable 1,
    b = var 2,
    c = var 3,
    x = var 4

    So in engine you'd do:
    var 4 = var 3
    var 4 -= var 2
    var 4 /= var 1
    And you're set, it's 3 lines of eventing.
    Am I missing something ?
  3. Astfgl66 said:
    And you're set, it's 3 lines of eventing.
    Am I missing something ?

    The thing is I wanted to make a more complicated math problem so eventing it will take much more time.

    My puzzle/quiz isn't just simple like "2x + 3 = 9" it also had like "2x^3 + 4 = 20" and "2x+3y=13" which I'm not sure how to event
    I also planned to make linear equation problems, so eventing it also an option but i'll make that as a last resort.

    In my head it's complicated. If i can found a better eventing alternative, i think i'll event it, because my current event is a huge load of stuff and script and it's probably had a bug or two...