skygames
skygames
  • Threads: 8
  • Posts: 33
Joined: Apr 25, 2017
August 17th, 2017 at 6:56:58 PM permalink
Simple question from stupid guy...
We have
((120*X1)+(80*X2))/(X1+X2)=99
How to find X1 and X2 ?
Is it possible?
But final target is equation with five and more unknowns...
((120*X1)+...+(80*X5))/(X1+... +X5)=99
RS
RS
  • Threads: 62
  • Posts: 8626
Joined: Feb 11, 2014
Thanked by
skygames
August 17th, 2017 at 7:09:32 PM permalink
Wolframalpha.com

Change X1 to A, X2 to B, etc.

B = -A - 200

Edit, forgot the = 99 part.

http://m.wolframalpha.com/input/?i=%28%28120%2Ba%29%2B%2880%2Bb%29%29%2F%28a%2Bb%29+%3D+99&x=0&y=0

B = (100 - 49A)/49
skygames
skygames
  • Threads: 8
  • Posts: 33
Joined: Apr 25, 2017
August 17th, 2017 at 7:17:17 PM permalink
Thank you for link.
I think I need to remember the elementary school math course...
skygames
skygames
  • Threads: 8
  • Posts: 33
Joined: Apr 25, 2017
August 17th, 2017 at 7:24:08 PM permalink
You use ((120+a)+(80+b))/(a+b) = 99
But that was correct
((120*a)+(80*b))/(a+b) = 99
BUT THANKS ANYWAY
Your link will save more hours of my lifetime)))
RS
RS
  • Threads: 62
  • Posts: 8626
Joined: Feb 11, 2014
August 17th, 2017 at 7:36:21 PM permalink
Damnit I messed it up twice, forgetting the =99 as well as thinking those were + signs not *'s.

But I think you figured it out -- just plug in formula and it'll give you proper result.
skygames
skygames
  • Threads: 8
  • Posts: 33
Joined: Apr 25, 2017
August 17th, 2017 at 7:45:45 PM permalink
Yes. I understand.
My way is create formula for juggle reels in slot logic. For make game process more interesting for player)
  • Jump to: