Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*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 2005

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

Search the Archive

Re: (a/b)^2 when a/b is replaced by e won't yield e^2

  • To: mathgroup at smc.vnet.net
  • Subject: [mg61321] Re: (a/b)^2 when a/b is replaced by e won't yield e^2
  • From: "Scout" <mathem at tica.org>
  • Date: Fri, 14 Oct 2005 22:23:20 -0400 (EDT)
  • References: <dinvoj$s6i$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"Oran Gatoran" <oran_gatoran at yahoo.com> news:dinvoj$s6i$1 at smc.vnet.net...
> Can anyone kindly tell how can i force mathematica to
> to replace a/b, say by e, in the term (a/b)^2 and
> yield e^2?
>
> Yours Oran.
>
>
>
> __________________________________
> Yahoo! Music Unlimited
> Access over 1 million songs. Try it free.
> http://music.yahoo.com/unlimited/
>
I hope this helps you:

In[1]:= Hold[(a/b)^2]/.a_/b_\[Rule]e
Out[1]= Hold[e^2]

In[2]:= ReleaseHold[%]
Out[2]= e^2

    ~Scout~ 


  • Prev by Date: Re: (a/b)^2 when a/b is replaced by e won't yield e^2
  • Next by Date: Interesting failure of Collect
  • Previous by thread: Re: (a/b)^2 when a/b is replaced by e won't yield e^2
  • Next by thread: VECTOR coordinate transformation?