MathGroup Archive 2001

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

Search the Archive

Re: find argument of function inside long result?


In a message dated 2001/10/27 1:29:26 AM, jflanigan at netzero.net writes:

>I have a very long symbolic result that has several sqrt functions. I
>would like to extract the arguments of each of the sqrt's.
>
>How can I do this? The expression is too complicated to try and read it
>off.
>

expr = b*Sqrt[a]/c + f[Sqrt[t]]-Sqrt[e-Sqrt[d]];

Cases[expr, Sqrt[x_] :> x, Infinity]

{a, d, e - Sqrt[d], t}


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: remote kernel via ssh
  • Next by Date: Re: Plotting the histogram
  • Previous by thread: find argument of function inside long result?
  • Next by thread: RE: find argument of function inside long result?