Page 1 of 2
Solve 1 Equation with 2 Unknowns
Posted: Fri Mar 01, 2024 6:08 am
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 ?
Re: Solve 1 Equation with 2 Unknowns
Posted: Fri Mar 01, 2024 6:25 am
by idle
What's to solve you plug in y to get x ?
Re: Solve 1 Equation with 2 Unknowns
Posted: Fri Mar 01, 2024 6:44 am
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.
Re: Solve 1 Equation with 2 Unknowns
Posted: Fri Mar 01, 2024 6:50 am
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 ?
Re: Solve 1 Equation with 2 Unknowns
Posted: Fri Mar 01, 2024 6:58 am
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.
Re: Solve 1 Equation with 2 Unknowns
Posted: Fri Mar 01, 2024 7:19 am
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
Re: Solve 1 Equation with 2 Unknowns
Posted: Fri Mar 01, 2024 7:48 am
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"
Re: Solve 1 Equation with 2 Unknowns
Posted: Fri Mar 01, 2024 8:27 am
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
Re: Solve 1 Equation with 2 Unknowns
Posted: Fri Mar 01, 2024 8:46 am
by Little John
VB6_to_PBx wrote:
X = (653184000 / (499 * Y))
1) This equation also can be written like this:
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

Re: Solve 1 Equation with 2 Unknowns
Posted: Fri Mar 01, 2024 11:45 am
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 !
Re: Solve 1 Equation with 2 Unknowns
Posted: Fri Mar 01, 2024 11:57 am
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.
Re: Solve 1 Equation with 2 Unknowns
Posted: Fri Mar 01, 2024 12:18 pm
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?
Re: Solve 1 Equation with 2 Unknowns
Posted: Fri Mar 01, 2024 12:23 pm
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.
Re: Solve 1 Equation with 2 Unknowns
Posted: Fri Mar 01, 2024 1:50 pm
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
Re: Solve 1 Equation with 2 Unknowns
Posted: Fri Mar 01, 2024 6:35 pm
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")