MathGroup Archive 2006

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

Search the Archive

Re: How to simplify exponents?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67420] Re: How to simplify exponents?
  • From: Peter Pein <petsie at dordos.net>
  • Date: Fri, 23 Jun 2006 04:31:32 -0400 (EDT)
  • References: <e7dr2n$99h$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

wandering.the.cosmos at gmail.com schrieb:
> My computations in Mathematica yields some exponents that do not seem
> to get simplified automatically, e.g. 2^{4(s-3)+1/2-s/2}
> A^{s+2(s/2+4)}. I even tried to do x^n_ -> x^Simplify[n] but it doesn't
> work very well. Why is this so and how do I make sure my exponents are
> simplified?
> 
> Thanks!
> 

Are you sure, you want a list as exponent?

Simplify and ExpandAll work fine:

In[1]:= Simplify[2^(4*(s - 3) + 1/2 - s/2)]
Out[1]= 2^((1/2)*(-23 + 7*s))
In[2]:= ExpandAll[2^(4*(s - 3) + 1/2 - s/2)]
Out[2]= 2^(-(23/2) + (7*s)/2)
  These Examples work with an exponent-list too.

And if you really want a list as exponent (Power has the attribute 
Listable), simplification appears to happen autamagically:


In[3]:= 2^(1 + s*((Range[5] - 4)/2))
Out[3]= {2^(1 - (3*s)/2), 2^(1 - s), 2^(1 - s/2), 2, 2^(1 + s/2)}

Peter


  • Prev by Date: Re: Sturm-Liouville (eigenvalue/eigenfunction) problems
  • Next by Date: optimise / minimize with constraints (dummy question)
  • Previous by thread: Re: How to simplify exponents?
  • Next by thread: Re: Integrate with multiple integrals -- bug?