MathGroup Archive 2002

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

Search the Archive

Re: Approximation of complex solutions


In a message dated 10/27/2002 7:53:03 AM, not at for.you writes:

>I would like to have mathematica attempt to find complex solutions to the
>equation:
>
>cos(cos(cos(cos x))) = sin(sin(sin(sin x)))
>
>It always tells me the variables appear to be related in a non-algebraic
>way.  Is there a way to have it approximate these solutions?
>

Clear[f];

f[x_] := Cos[Cos[Cos[Cos[x]]]] - Sin[Sin[Sin[Sin[x]]]];

Off[General::ovfl, General::unfl, 
    FindRoot::frnum, FindRoot::cvnwt];

Union[Select[Flatten[
      Table[{x, Conjugate[x]} /. 
          FindRoot[f[x], {x, xr + I*xi},
            WorkingPrecision -> 25],
        {xr, -Pi/2, Pi/2, Pi/16},
        {xi, Pi/16, Pi/2, Pi/16}]],
    Abs[f[#]] < 10^-15 &],
  SameTest -> (Abs[#1 - #2] < 10^-12 &)]


Bob Hanlon


  • Prev by Date: Serial Mathematica 4.x EUROPE !!!
  • Next by Date: RE: Approximation of complex solutions
  • Previous by thread: Approximation of complex solutions
  • Next by thread: RE: Approximation of complex solutions