Solve 1 Equation with 2 Unknowns
- VB6_to_PBx
- Enthusiast
- Posts: 627
- Joined: Mon May 09, 2011 9:36 am
Solve 1 Equation with 2 Unknowns
how to Solve 1 Equation with 2 Unknowns ???
Solve both X and Y values :
X = (653184000 / (499 * Y))
is it possible ?
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
Re: Solve 1 Equation with 2 Unknowns
What's to solve you plug in y to get x ?
Re: Solve 1 Equation with 2 Unknowns
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.
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 more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
- VB6_to_PBx
- Enthusiast
- Posts: 627
- Joined: Mon May 09, 2011 9:36 am
Re: Solve 1 Equation with 2 Unknowns
"I also wonder, what do you mean here with solve?"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.
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
Re: Solve 1 Equation with 2 Unknowns
This is no advanced math, it is math for elementary school.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 ?
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 more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
- VB6_to_PBx
- Enthusiast
- Posts: 627
- Joined: Mon May 09, 2011 9:36 am
Re: Solve 1 Equation with 2 Unknowns
could you Post a PureBasic solution exampleSTARGÅTE wrote: Fri Mar 01, 2024 6:58 amThis is no advanced math, it is math for elementary school.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 ?
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.
PureBasic .... making tiny electrons do what you want !
"With every mistake we must surely be learning" - George Harrison
Re: Solve 1 Equation with 2 Unknowns
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
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"
Re: Solve 1 Equation with 2 Unknowns
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 more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
-
- Addict
- Posts: 4777
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: Solve 1 Equation with 2 Unknowns
1) This equation also can be written like this:VB6_to_PBx wrote: X = (653184000 / (499 * Y))
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

- VB6_to_PBx
- Enthusiast
- Posts: 627
- Joined: Mon May 09, 2011 9:36 am
Re: Solve 1 Equation with 2 Unknowns
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 !


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 !


PureBasic .... making tiny electrons do what you want !
"With every mistake we must surely be learning" - George Harrison
- NicTheQuick
- Addict
- Posts: 1504
- Joined: Sun Jun 22, 2003 7:43 pm
- Location: Germany, Saarbrücken
- Contact:
Re: Solve 1 Equation with 2 Unknowns
No. That's still just one of infinitely many solutions.VB6_to_PBx wrote: Fri Mar 01, 2024 11:45 amthis is what it should calculate :
real Solution: x=129.6025714796 , y=10100
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.
-
- Addict
- Posts: 2344
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Re: Solve 1 Equation with 2 Unknowns
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 6:08 am how to Solve 1 Equation with 2 Unknowns ???
Solve both X and Y values :
X = (653184000 / (499 * Y))
is it possible ?
Where did you get y from?VB6_to_PBx wrote: Fri Mar 01, 2024 11:45 amthis is what it should calculate :
real Solution: x=129.6025714796 , y=10100
bye,
Daniel
Daniel
Re: Solve 1 Equation with 2 Unknowns
Why do you think this is the "real" solution?VB6_to_PBx wrote: Fri Mar 01, 2024 11:45 am this is what it should calculate :
real Solution: x=129.6025714796 , y=10100
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 more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
- StarBootics
- Addict
- Posts: 1006
- Joined: Sun Jul 07, 2013 11:35 am
- Location: Canada
Re: Solve 1 Equation with 2 Unknowns
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
Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
Re: Solve 1 Equation with 2 Unknowns
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.
(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