I have an equation that uses three variables that I have defined as follows: b[l_, m_, lt_] := 0.025 * (((1 - m)*l)^(-1/2))*((1 - m)*lt) - 5
.
After this definition, I am attempting to solve this equation using NSolve --> NSolve[{b[l, m, lt] = 0}, {l, m, lt}, Reals]
.
This results in an error of NSolve: 3 is not a valid variable
with an additional output of NSolve[{0, False}, {l, 3, lt}, Reals]
. However, this is not a massive deal since the problem definition I am working with requires 0<=m<=1, which negates the issue of NSolve not working when m=3. The issue that I am running into is I cannot find a way in which to have the parameters of NSolve reflect the bounds that I want to place on m.
For instance, NSolve[{b[l, 0 <= m <= 1, lt] = 0}, {l, m, lt}, Reals]
and
NSolve[{b[l, m, lt] = 0, 0 <= m <= 1}, {l, m, lt}, Reals]
both give the exact same error and result, while NSolve[{b[l, m, lt] = 0}, {l, 0 <= m <= 1, lt}, Reals]
just gives me empty brackets.
Any suggestions on what my parameters should be? Thank you so much!
l
as variable names, it looks like1
which makes the code hard to read. Also, are you sure you want to writeNSolve[{b[l, m, lt] = 0}
instead ofNSolve[{b[l, m, lt] == 0}
? $\endgroup$