First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 13 years ago

twk gravatar image

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

click to hide/show revision 2
No.2 Revision

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

updated 13 years ago

Kelvin Li gravatar image

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 4
No.4 Revision

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