Jonny is writing a program for a video game. For one part of the game he uses the rule given below to move objects on the screen.
Showing all your work, give the output that the rule gives for the inputs.
(x, y)→(x−7.5, y+6.8)
{"version":"1.1","math":"<math xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mi>x</mi><mo>,</mo><mo> </mo><mi>y</mi><mo>)</mo><mo>→</mo><mo>(</mo><mi>x</mi><mo>-</mo><mn>7</mn><mo>.</mo><mn>5</mn><mo>,</mo><mo> </mo><mi>y</mi><mo>+</mo><mn>6</mn><mo>.</mo><mn>8</mn><mo>)</mo></math>"}
First input: (4.4, 2.5)
Second input: (9.7, -2.9)
"(x, y)\u2192(x\u22127.5, y+6.8)"
"\\text{First input: } (4.4, 2.5)"
"\\text{First output:}"
"(4.4, 2.5)\\to(4.4-7.5, 2.5+6.8)=(-3.1, 9.3)"
"\\text{Second input: } (9.7, -2.9)"
"\\text{Second output:}"
"(9.7, -2.9)\\to(9.7-7.5, -2.9+6.5)=(2.2, 3.6)"
"\\text{Answer:}"
"\\text{First output: }(-3.1, 9.3)"
"\\text{Second output: }(2.2, 3.6)"
Comments
Leave a comment