MathGroup Archive 2008

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

Search the Archive

Re: Exponent function question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94394] Re: Exponent function question
  • From: Raffy <raffy at mac.com>
  • Date: Thu, 11 Dec 2008 07:28:37 -0500 (EST)
  • References: <ghqju2$138$1@smc.vnet.net>

getexpof[expr_, x_Symbol] := Max[Cases[expr, Power[x, p_Integer] :> p,
Infinity]];

getexpof[ Sqrt[x^2 + 1], x] ==> 2


  • Prev by Date: Re: Mathematica 7 is now available
  • Next by Date: use of a notebook inside another notebook
  • Previous by thread: Re: Elliptic Modular Function
  • Next by thread: Re: Exponent function question