Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

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


  • 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?