How to Solve for Y in the Equation X = Y%Z?

  • Thread starter Thread starter Superposed_Cat
  • Start date Start date
AI Thread Summary
To solve for y in the equation x = y%z, the formula can be expressed as y = nz + x, where n is any integer. This allows for multiple valid y values that satisfy the equation, including negative values. For example, if x = 3 and z = 9, possible y values include 12, 3, 21, and -6. The discussion emphasizes that n must be an integer greater than 0 to generate positive values, but the broader formula accommodates all integers. The key takeaway is that y can take on an infinite number of values based on the integer n.
Superposed_Cat
Messages
388
Reaction score
5
Hey all, if x=y%z How do i solve for y?
 
Mathematics news on Phys.org
Superposed_Cat said:
Hey all, if x=y%z How do i solve for y?
Take an example:

3=12\%9

So in this case we have that x=3, z=9, and y=12. But also,

3=3\%9
3=21\%9
3=-6\%9
3=(100*9+3)\%9

Are you seeing the pattern? Can you develop a simple formula that gives us every possible y value that satisfies this equation?
 
y=z*i+x, i is int > 0
 
Why greater than 0? -6= 3%9 because -6= 3+ (-1)9.

(I would say "-6= 3 (mod 9). "%" is computer code.)
 
HallsofIvy said:
Why greater than 0? -6= 3%9 because -6= 3+ (-1)9.
Yes, ## y = nz+x## ##∀x,y,z,n ∈ ℤ ## is more inclusive.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Thread 'Imaginary Pythagoras'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top