Re: find argument of function inside long result?
- To: mathgroup at smc.vnet.net
- Subject: [mg31327] Re: [mg31313] find argument of function inside long result?
- From: BobHanlon at aol.com
- Date: Sun, 28 Oct 2001 03:07:07 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
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