Solve 1 Equation with 2 Unknowns

Just starting out? Need help? Post your questions and find answers here.
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 627
Joined: Mon May 09, 2011 9:36 am

Solve 1 Equation with 2 Unknowns

Post by VB6_to_PBx »

how to Solve 1 Equation with 2 Unknowns ???

Solve both X and Y values :

X = (653184000 / (499 * Y))

is it possible ?
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
User avatar
idle
Always Here
Always Here
Posts: 5836
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Solve 1 Equation with 2 Unknowns

Post by idle »

What's to solve you plug in y to get x ?
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Solve 1 Equation with 2 Unknowns

Post by STARGÅTE »

I also wonder, what do you mean here with solve?
X = 653184000 / (499 * Y)
and
Y = 653184000 / (499 * X)
if you rearrange.

There is not only one solution for x and y, but infinitely many.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 627
Joined: Mon May 09, 2011 9:36 am

Re: Solve 1 Equation with 2 Unknowns

Post by VB6_to_PBx »

STARGÅTE wrote: Fri Mar 01, 2024 6:44 am I also wonder, what do you mean here with solve?
X = 653184000 / (499 * Y)
and
Y = 653184000 / (499 * X)
if you rearrange.

There is not only one solution for x and y, but infinitely many.
"I also wonder, what do you mean here with solve?"
meaning : Solve both X and Y values at the same time
"infinitely many" .... that's what i thought too , unsolveable !
i was hoping it would be solveable with Math advancements or AI ?
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Solve 1 Equation with 2 Unknowns

Post by STARGÅTE »

VB6_to_PBx wrote: Fri Mar 01, 2024 6:50 am "infinitely many" .... that's what i thought too , unsolveable !
i was hoping it would be solveable with Math advancements or AI ?
This is no advanced math, it is math for elementary school.
No, it is not unsolvable! Unsolvable would mean, no solution. But here you have a rule, how to get X or Y.
Basically, you have here an inverse function, a line where each point x correspond to one y.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 627
Joined: Mon May 09, 2011 9:36 am

Re: Solve 1 Equation with 2 Unknowns

Post by VB6_to_PBx »

STARGÅTE wrote: Fri Mar 01, 2024 6:58 am
VB6_to_PBx wrote: Fri Mar 01, 2024 6:50 am "infinitely many" .... that's what i thought too , unsolveable !
i was hoping it would be solveable with Math advancements or AI ?
This is no advanced math, it is math for elementary school.
No, it is not unsolvable! Unsolvable would mean, no solution. But here you have a rule, how to get X or Y.
Basically, you have here an inverse function, a line where each point x correspond to one y.
could you Post a PureBasic solution example
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
TassyJim
Enthusiast
Enthusiast
Posts: 183
Joined: Sun Jun 16, 2013 6:27 am
Location: Tasmania (Australia)

Re: Solve 1 Equation with 2 Unknowns

Post by TassyJim »

Code: Select all

y.f = 0.1

If OpenWindow(0, 0, 0, 520, 520, "CanvasGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  CanvasGadget(0, 10, 10, 500, 500)

  If StartDrawing(CanvasOutput(0))
    Repeat
      x.f = 653184000 / (499 * Y)
      ; Debug StrF(y)+" "+StrF(x)
      Circle(x/1000,500-y*10,2,RGB(255,0,0))
      y = y+0.1
    Until y > 50
    StopDrawing()
  EndIf
  Repeat
    Event = WaitWindowEvent()
  Until Event = #PB_Event_CloseWindow
EndIf
For every value of X there is a corresponding value of Y and for every value of Y there is a corresponding value of X
There are vanishing points which get difficult to chart and can cause much heated discussion but the simple answer is " Theer is no one solution"
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Solve 1 Equation with 2 Unknowns

Post by STARGÅTE »

VB6_to_PBx wrote: Fri Mar 01, 2024 7:19 am could you Post a PureBasic solution example

Code: Select all

Define Y.d = 158.3 ; Enter any number
Define X.d = 653184000.0 / (499.0 * Y) ; Solve the other one
If X = 653184000.0 / (499.0 * Y) ; See the equality
	Debug "Solution: x="+X+" , y="+Y
EndIf
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
Little John
Addict
Addict
Posts: 4777
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Solve 1 Equation with 2 Unknowns

Post by Little John »

VB6_to_PBx wrote: X = (653184000 / (499 * Y))
1) This equation also can be written like this:

Code: Select all

Y = 653184000 / (X * 499)
 
2) For a long time X was unknown, so that people all over the world had to calculate its value over and over again. Fortunately, about 10 years ago the world-renowned Max Planck Institute for Mathematics ended this desaster and has once and for all set the value of x to 5.

3) So Y = 130636800/499 ≈ 2.61797e5

:mrgreen:
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 627
Joined: Mon May 09, 2011 9:36 am

Re: Solve 1 Equation with 2 Unknowns

Post by VB6_to_PBx »

thanks Little John, TassyJim, and Stargate
for the quick replies with Code

this is what it should calculate :
real Solution: x=129.6025714796 , y=10100

also Stargate,
the movie "Stargate" is my Wife and I's one of all time favorite Movies !
We watched several times over the years .

For many years , we've been having a brand new "un-opened" DVD "Special Edition" version with extra scenes
finally opened 4 Days ago and we watched it, enjoyed the new extra scenes !

Image
Image
 
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
User avatar
NicTheQuick
Addict
Addict
Posts: 1504
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Solve 1 Equation with 2 Unknowns

Post by NicTheQuick »

VB6_to_PBx wrote: Fri Mar 01, 2024 11:45 amthis is what it should calculate :
real Solution: x=129.6025714796 , y=10100
No. That's still just one of infinitely many solutions.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: Solve 1 Equation with 2 Unknowns

Post by DarkDragon »

VB6_to_PBx wrote: Fri Mar 01, 2024 6:08 am how to Solve 1 Equation with 2 Unknowns ???

Solve both X and Y values :

X = (653184000 / (499 * Y))

is it possible ?
For two variables you need two equations like this to get a unique solution and even then it's not guaranteed.
VB6_to_PBx wrote: Fri Mar 01, 2024 11:45 amthis is what it should calculate :
real Solution: x=129.6025714796 , y=10100
Where did you get y from?
bye,
Daniel
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Solve 1 Equation with 2 Unknowns

Post by STARGÅTE »

VB6_to_PBx wrote: Fri Mar 01, 2024 11:45 am this is what it should calculate :
real Solution: x=129.6025714796 , y=10100
Why do you think this is the "real" solution?
Also x=64.8012857398 , y=20200 is a solution or x=1296.0257147959 , y=1010.
All of them lead to a true statement for X = 653184000 / (499 * Y).
And no solution is more "real" than another.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
StarBootics
Addict
Addict
Posts: 1006
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: Solve 1 Equation with 2 Unknowns

Post by StarBootics »

It's impossible to solve 1 equation with 2 unknowns. You need 2 equations and 2 unknowns in order to solve for a unique solution if it exist.

Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
normeus
Enthusiast
Enthusiast
Posts: 470
Joined: Fri Apr 20, 2012 8:09 pm
Contact:

Re: Solve 1 Equation with 2 Unknowns

Post by normeus »

Everyone who has answered knows that with the given information there are an infinite number of answers, for any number in y there will be a different number in x and, no number is a wrong answer. If you are sure that the answer is y=10100, it means that there is a 2nd equation that defines a point on the line. (We/I) need the 2nd equation to find closure to this topic or at least an explanation on why you believe y=10100 is the right answer.

(I am Sorry, but I need to know)
Norm.
P.S.

Code: Select all

; The correct parameter for the following procedure is "Perplexed" any other answer will not work
Procedure.s x(y.s)
  y= "I am feeling "+ y
ProcedureReturn y
EndProcedure

Debug x("10100")
google Translate;Makes my jokes fall flat- Fait mes blagues tombent à plat- Machte meine Witze verpuffen- Eh cumpari ci vo sunari
Post Reply