MathGroup Archive 2006

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

Search the Archive

Re: Redefine Power


Hi,

Power[] has the attribute Listable and this comes 
before any rule
like yours apply. So to do that, you must remove 
the Listable attribute
from Power[].

Regards
  Jens

"suchaneck" <greenux at gmx.de> schrieb im 
Newsbeitrag news:e1vf2m$9e8$1 at smc.vnet.net...
| hi,
| i want to redefine the Power function for 
matrices like that:
| Power[A_?MatrixQ,n_]:=mppower[A,n];
| If n is a number, then it should execute the 
function mppower[], elseif
| Head[n]=symbol, it should return the matrix with 
exp n as symbol
| without execution. How can I prevent the 
recursion of the Power-Function?
| Thanks.
| 




  • Prev by Date: Re: setps problem/how to set matrix elements
  • Next by Date: Re: No success with a package from the Wolfram Website
  • Previous by thread: Redefine Power
  • Next by thread: Define new constant as Pi is