Hi Everyone![]()
I've got a question. I'm first year physics student and I can't work this one out.
z = x*y+(x-1)*(9*y-1)
I know what Z is.. is there a way to get x or y?
Katie xx![]()
I know what Z is.. is there a way to get x or y?
Katie xx![]()
Yes if possible. If there is a way to do that. Oh.. also.. see my other reply.Thanks for taking interest.Are you desiring all INTEGER x and y, when Z = 18587681 ?
In the absence of any other information, you cannot solve for 2 unknowns (x &y) from 1 equation.
this is an update
We know that
z1 = x*y+(x-1)*(9*y-1)
z2 = x*y+(x-1)*(9*y-1)
z1 = 543227
z2 = 4889042
Actually..
it's
z = x*y+(x+1)*(9*y-1)
I'm thinking that you also need subscripted variables for x and y because the expressions highlighted in red are equal (i.e., z1=z2). Like this:
z1 = x1*y1+(x1-1)*(9*y1-1)
z2 = x2*y2+(x2-1)*(9*y2-1)
Or, for ease of typing, you could use upper- and lower-case symbols, to discuss a specific pair of solutions {xyz,XYZ} to the original equation. Like this:
z = xy + (x - 1)(9y - 1)
Z = XY + (X - 1)(9Y - 1)
z = 543227
Z = 4889042
Earlier, you posted:
I had thought that you changed the binomial (highlighted in red) in your original equation. Looking at your most recent post, it appears that you've changed it back to x-1.
Please confirm the equation.
Cheers :cool:
Are you desiring all INTEGER x and y, when Z = 18587681 ?
Yes if possible. If there is a way to do that.
[start]
input "Enter z: "; z
for x = 0 to z
y = (z+x+1)/(10*x+9)
if y - int(y) = 0 then print "(";x;", ";y;")"
next x
print "Done"
[end]
If you have These two equations as:
543227=x*y+(x+1)*(9y-1)
4889042=x*y+(x+1)*(9y-1)
Hello
If you have one individual system of two equations as:
543227=x*y+(x+1)*(9y-1)
4889042=x*y+(x+1)*(9y-1)
Then i should say that your problem is impossible to have any answer. Because as we know, two quantities equal to another quantity are equal to each other.
but 543227 is not equal to 4889042 so the problem is impossible to have any answer.
Hi Info:
I think Katie is discussing sets of (xn, yn, zn) solutions to the equation
zn = xn*yn + (xn + 1)*(9yn - 1)
So, she ought to have written something like
543227 = x*y + (x + 1)*(9y - 1)
4889042 = X*Y + (X + 1)*(9Y - 1)
for solutions (x, y) and (X, Y)
:cool: