I have an equation and have defined all variables except one. One of the variables is a Range of numbers. I now want to solve for a specific value and was expecting result to also be a range of numbers - unfortunately this was not the case!
Here is a small piece of my code showing my problem:
ClearAll["Global`*"];
(*define known variables*)
rnc = 0
WRes = 10/1000
DRes = 1/1000
VPE = 0
rho = 1000
r2 = Range[20/1000, 45/1000, 1/1000]
r1 = r2 - 10/1000
V2min = 3/1000/1000/1000
(*define target freq*)
ftarg = 25
omegtarg = ftarg*2*Pi
(*equation for frequency*)
o1targ = Sqrt[
2*(((V1min + V2min)/V1min) - 1)*
P/(rho*((r2 + rnc)^2 - (r1 + rnc + V2min (WRes*DRes) +
VPE/(WRes*DRes))^2))]
(*Solutions for V1min*)
V1range = V1min /. Solve[omegtarg == o1targ , V1min]
From this code all I'm getting is V1range = V1min?? The solve was working for me previously (though not for a range of values). I also tried to make omegtarg a range to match o1targ but this also gave me no luck.
any help is much appreciated! Thank you and regards, D