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


What a bunch of literal-minded answers. Hacking on
syntax or un-simplified forms is not going to get
you anywhere but solving this one problem.
You might as well tell Mike that the solution is the
function  foo[q_]:=e^2;

then  foo[(a/b)^2]  becomes e^2.

Here's a solution more in the spirit of solving the
problem, which is to find occurrence of a/b mathematically.

Try
Last[PolynomialReduce[(a/b)^2, {e - a/b}, {a}]]

RJF



Andrzej Kozlowski wrote:
> On 18 Oct 2005, at 15:44, mike_in_england2000 at yahoo.co.uk wrote:
> 
> 
>>>HoldForm[(a/b)^2] /. (a/b) -> e
>>>
>>
>>
>


  • Prev by Date: Circle equation problem
  • Next by Date: Re: Unsorted Union
  • Previous by thread: Re: Re: (a/b)^2 when a/b is replaced by e won't yield e^2
  • Next by thread: Re: Re: (a/b)^2 when a/b is replaced by e won't yield e^2