Skip to main content
1 of 4
p1988
  • 23
  • 3

Trying to solve an equation with one set of variables as integers and the other as real numbers

I am trying to solve the following equation: !http://imgur.com/x0B7cNn

The link has a screen capture of the equation and the solution. I am looking for the values of a1 and a2 in particular, but they need to be real numbers. s1 and s2 are integers. Now if I remove the condition of integers, then (as expected) the computation takes too long (it hadn't finished for an hour). My questions are:

  1. Is it possible to define a1 and a2 to be reals, and s1 and s2 to be integers?

  2. I would like to reduce the possible values of a1 and a2 to the tenth decimal point (i.e. between 0 and 1, it can have 0.1, 0.2, 0.3,...0.9). Can this be done in Mathematica?

Thank you for your help!

p1988
  • 23
  • 3