MathGroup Archive 2008

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

Search the Archive

Re: making 0^0=1 and not indet

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94886] Re: making 0^0=1 and not indet
  • From: Peter Pein <petsie at dordos.net>
  • Date: Mon, 29 Dec 2008 06:42:07 -0500 (EST)
  • References: <gj55gp$c3u$1@smc.vnet.net>

Affan schrieb:
> I have another question. One of the terms in my formulation involves
> computing 0^0. This indeterminate form is widely accepted to be equal
> to 1 and if this form was used all of my equation can be solved
> separately (without having to worry about some corner case). Is there
> some way to force mathematica to use 0^0=1?
> 
> 
> Thanks
> 
> Affan
> 

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

(Pi - x)^Sin[x] /. x -> Pi

Out[4]=
1

works, but don't forget to restart the kernel, after these calculations
(or Unprotect[Power] again, let DownValues[Power]={} and Protect[Power]).

Peter


  • Prev by Date: Re: Computing nCr how?
  • Next by Date: Re: making 0^0=1 and not indet
  • Previous by thread: Re: making 0^0=1 and not indet
  • Next by thread: Re: making 0^0=1 and not indet