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