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: [mg31332] RE: [mg31313] find argument of function inside long result?
  • From: "tgarza01 at prodigy.net.mx" <tgarza01 at prodigy.net.mx>
  • Date: Sun, 28 Oct 2001 03:07:13 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

It should not be too difficult, depending on the way the Sqrt enters into your result. For example,

In[1]:=
expr=Sqrt[x1]+2 Exp[-y] +Cos[z] +Cos[b]  Sqrt[w]+Sqrt[2];

In[2]:=
Cases[expr,Sqrt[x_]->x]
Out[2]=
{2,x1}

In[3]:=
Cases[expr,___ Sqrt[x_]->x]
Out[3]=
{w}

Here we consider only those cases where Sqrt is by itself or with some coefficient. However, if it enters as an exponent of some other expression, for example, this case should be considered too.

Tomas Garza
Mexico City

Original Message:
-----------------
From:  jflanigan at netzero.net (jose flanigan)
To: mathgroup at smc.vnet.net
Subject: [mg31332] [mg31313] find argument of function inside long result?


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.

thanks.

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .



  • Prev by Date: Re: 2D to 3D graphics?
  • Next by Date: RE: Does Mathematica do transparent colors?
  • Previous by thread: Re: find argument of function inside long result?
  • Next by thread: Re: find argument of function inside long result?