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

• To: mathgroup at smc.vnet.net
• Subject: [mg63150] Re: Can I define 0^0 to be 1 for a notebook
• From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
• Date: Thu, 15 Dec 2005 07:14:09 -0500 (EST)
• Organization: The Open University, Milton Keynes, UK
• References: <dnrir7\$o63\$1@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Thomas Schmelzer wrote:
> Hi there,
> thanks for all your help with a previous "73" problem.
> This time my question is probably even simpler...
> 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?
>
> Often in my modules expressions like
>
> "c^n" appear were both numbers can be 0
> Best,
> Thomas
>
>
Hi Thomas,

In[1]:=
FullForm[Unevaluated[0^0]]

Out[1]//FullForm=
Unevaluated[Power[0,0]]

In[2]:=
Unprotect[Power];
0^0 = 1;
Protect[Power];

In[5]:=
0^0

Out[5]=
1

will do it. Also, check the following MathGroup thread: