"richard " <
richa...@embarqmail.com> wrote in message
news:lnb8o1$5ou$1...@newscl01ah.mathworks.com...
You want to find an r that makes this f equal to 0.
>> syms r
>> f = 0.95*2*atan(4.5/(2*r))*r/4.5-1
Let's plot it and see where that r may be located.
>> ezplot(f)
The function is always negative on the default range of r, [-2*pi 2*pi].
Let's expand the range of r a bit.
>> ezplot(f, [-100, 100])
Still always negative. It looks like it's increasing as r gets larger,
though; let's see the limit of f as r goes to positive and negative
infinity.
>> limit(f, r, Inf)
>> limit(f, r, -Inf)
Neither of those are positive. That suggests to me that f is always negative
and therefore your equation has no solution (at least for real r.)
When I defined r to be complex:
>> syms rp ip real
>> r = rp+1i*ip
and solved for real(f) == 0 and imag(f) == 0 SOLVE found one solution.
Substituting that back into f gave a value that was very close to 0.
--
Steve Lord
sl...@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com