MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: bug --


Daniel Lichtblau wrote:
> UHAP023 at alpha1.rhbnc.ac.uk wrote:
> 
>>Dear All,
>>	A couple of queries;
>>
>>(1) Regarding the following expression,
>>
>>z=2*Sqrt[2]*Rvt^5*(Rvt^2 + Rx^2)^(3/2)*w^2*
>> (Sqrt[2*Dc - I*Rx^2*w]*(2*Dc - I*(Rvt^2 + Rx^2)*w)^3 + 
>>  Sqrt[2*Dc + I*Rx^2*w]*(2*Dc + I*(Rvt^2 + Rx^2)*w)^3)
>>
>>all the variables are of Real type and are +ve.  
>>[...]Now I believe that this expression
>>should *always* produce a real result for real, +ve parameter values.
>>A simple but obviously non-rigorous test is to substitute arbitrary
>>real,+ve values for the parameters and observe the numeric result,
>>[...]
> 
> I'm not sure and don't have a lot of time to experiment. I'll sidestep 
> by showing how to determine whether z is always positive subject to the 
> stated assumptions.
> 
> z = 2*Sqrt[2]*rvt^5*(rvt^2 + rx^2)^(3/2)*w^2*
>   (Sqrt[2*dc - I*rx^2*w]*(2*dc - I*(rvt^2 + rx^2)*w)^3 +
>    Sqrt[2*dc + I*rx^2*w]*(2*dc + I*(rvt^2 + rx^2)*w)^3);
> 
> Timing[inst = FindInstance[{z<0,rx>0,w>0,rvt>0,dc>0},
>    {rx,w,rvt,dc}, Complexes]]
> 
> Out[49]= {48.663, {{rx -> 84, w -> 67, rvt -> 5, dc -> 54137}}}
> [...]

Oops. Misread the question. You only want to know that z is real, not 
necessarily positive. Same idea as above.

In[2]:= Timing[inst = FindInstance[{Im[z]!=0,rx>0,w>0,rvt>0,dc>0},
    {rx,w,rvt,dc}, Complexes]]

Out[2]= {8.54853, {}}

This shows there are no allowed values of the parameters that can give z 
a nonzero imaginary part, ergo it is real subject to the stated conditions.

Daniel Lichtblau
Wolfram Research




  • Prev by Date: Re: Interactive 2d zoom and some Dynamic questions
  • Next by Date: Re: Integrating "If"
  • Previous by thread: Re: bug --
  • Next by thread: Re: bug -- advice sought