Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*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 2005

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

Search the Archive

Re: Can I define 0^0 to be 1 for a notebook

  • To: mathgroup at smc.vnet.net
  • Subject: [mg63174] Re: Can I define 0^0 to be 1 for a notebook
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Fri, 16 Dec 2005 07:22:35 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

On 12/15/05 at 6:07 AM, thomas.??? at balliol.ox.ac.uk (Thomas
Schmelzer) wrote:

>If I enter 0^0 Mathematica keeps teeling me that this is an
>indeterminate expression. Can I define for a single notebook the rule
>"0^0 = 1?" How to do that?

This can be accomplished as follows:

Unprotect[Power]
Power[0,0]=1
Protect[Power]

This technique can be used to modify the output from virtually any built in Mathematica function. However, modifying built in functions is generally not a good idea and will likely lead to unexpected (and possibly incorrect) results.
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: Remote Mathematica kernels and SSH password
  • Next by Date: Re: Output a list of keywords
  • Previous by thread: Can I define 0^0 to be 1 for a notebook
  • Next by thread: Re: Can I define 0^0 to be 1 for a notebook