System of equations

My question is more mathmatical than it is computational layer, but I still need some help. I am trying to create random systems of equations which I have done, but I would like a way to ensure that the solution (x, y) values are both integer answers.

Here is my project. Screen 4 has the system of equations that I would like to modify somehow to ensure the x and y are both integers. I can figure it out when I’m creating equations manually, but I can’t seem to figure out how that works in a computational layer.

I’m will also be working on another screen in the same project that I will need to have calculated the point values rather than checking that the input student entered works for both equations because I want that one to be a multiple choice equation. So I will need to have the answer in advance, but I want it to be a random system of equations also so they can have multiple different practice opportunities.

This is a spot where being a teacher gives you a little tunnel vision. While it is mathematical, it’s very relevant to coding! Easiest way to ensure integer answers is by defining the answers and calculating constants. So, for Ax+By=C, where A, B and C are integers, define A, B, x, and y, and calculate C.

Edit: (Additional clarification) Define A_1, B_1, A_2, B_2, x and y. Then, calculate C_1 and C_2.

Not sure how this helps because, yes there can be an integer x and integer y (x, y) that works for for one equation, but I need the same integer x and integer y to work for two simultaneous but different equations - lines that intersect at only one place and that intersection point is (integer, integer)

What Daniel is saying is simply to make it work for both equations: you generate both equations from the point solution, not the other way around.

edit: in case you want something that does this, here you go: Systems of Equations | Components • Activity Builder by Desmos Classroom

Sorry - it just took a while to sink in. I get it now - thanks.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.