Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Defining Log[0] = 0 ?' topicStudent Support Forum > General > "Defining Log[0] = 0 ?"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
yehuda ben-shimol
09/28/08 2:22pm

Hi,
Internal functions are always protected, and if you would like to change the definition you need to "unprotect" it

Unprotect[Log];
Log[0] = 0;
Protect[Log]

However, I would be more careful and define another function to do that, that is

myLog[x_]:=If[x==0,0,Log[x]]

other identical definitions are optional (Piecewise etc.)

yehuda


URL: ,

Subject (listing for 'Defining Log[0] = 0 ?')
Author Date Posted
Defining Log[0] = 0 ? Tracy 09/28/08 04:41am
Re: Defining Log[0] = 0 ? Kaveh 09/28/08 12:26pm
Re: Defining Log[0] = 0 ? Xavier 09/28/08 1:58pm
Re: Defining Log[0] = 0 ? yehuda ben-s... 09/28/08 2:22pm
< Previous CommentHelp | Reply To Comment | Reply To Topic