Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Solve system equations with additional conditions in sage

Hi Sage users,

I've got a system of equations like the following example:

  • eq1 = a + b == n * (c + d)
  • eq2 = b == k * e

with n and k must be integers.

for the other variables, there are additional conditions like

  • a >= 80
  • b >= 1000
  • c >= 20
  • d >= 40
  • a + b <= 2000
  • c + d <= 90

I want to get all solutions of this system where n and k are integers. Is there a way to find these with sage?

Would be great to get any possible hint to do this!

Thanks for your suggestions, Tobi

Solve system of equations with additional conditions in sage

Hi Sage users,

I've got a system of equations like the following example:

  • eq1 = a + b == n * (c + d)
  • eq2 = b == k * e

with n and k must be integers.

for the other variables, there are additional conditions like

  • a >= 80
  • b >= 1000
  • c >= 20
  • d >= 40
  • a + b <= 2000
  • c + d <= 90

I want to get all solutions of this system where n and k are integers. Is there a way to find these with sage?

Would be great to get any possible hint to do this!

Thanks for your suggestions, Tobi

click to hide/show revision 3
retagged

Solve system of equations with additional conditions in sage

Hi Sage users,

I've got a system of equations like the following example:

  • eq1 = a + b == n * (c + d)
  • eq2 = b == k * e

with n and k must be integers.

for the other variables, there are additional conditions like

  • a >= 80
  • b >= 1000
  • c >= 20
  • d >= 40
  • a + b <= 2000
  • c + d <= 90

I want to get all solutions of this system where n and k are integers. Is there a way to find these with sage?

Would be great to get any possible hint to do this!

Thanks for your suggestions, Tobi

Solve system of equations with additional conditions in sage

Hi Sage users,

I've got a system of equations like the following example:

  • eq1 = a + b == n * (c + d)
  • eq2 = b == k * ed

with n and k must be integers.

for the other variables, there are additional conditions like

  • a >= 80
  • b >= 1000
  • c >= 20
  • d >= 40
  • a + b <= 2000
  • c + d <= 90

I want to get all solutions of this system where n and k are integers. Is there a way to find these with sage?

Would be great to get any possible hint to do this!

Thanks for your suggestions, Tobi