Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Redefine Power

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65781] Redefine Power
  • From: suchaneck <greenux at gmx.de>
  • Date: Mon, 17 Apr 2006 02:28:38 -0400 (EDT)
  • Reply-to: greenux at gmx.de
  • Sender: owner-wri-mathgroup at wolfram.com

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: Axes with arrowheads !?
  • Next by Date: Define new constant as Pi is
  • Previous by thread: Re: Programming Problem with "if"
  • Next by thread: Re: Redefine Power