62,425 reputation
18172299
bio website
location California, USA
age
visits member for 2 years, 10 months
seen 2 hours ago

Aug
13
awarded  Nice Answer
Aug
13
awarded  Enlightened
Aug
13
awarded  Nice Answer
Aug
13
comment How to unprotect a variable in a package
@Nick As others have mentioned, there is a collision with a built-in function. I would not recommend clearing the definitions of the System` symbol to make way for yours, because you never know what depends internally on what (and it is a bad practice, period.) and you could be doing more damage than you think. Rather, you might want to look at using the full contexts, such as MyPackage`MySymbol and System`MySymbol. This way, you get to use both functions. You can also change the order in which the contexts appear in $ContextPath to determine which definition is used first.
Aug
13
comment How to unprotect a variable in a package
@AlexeyPopkov I don't think it does... all that OP needs to learn is some context management, which is not hard. I don't think that everyone needs to strictly adhere to this maxim for their packages.
Aug
13
comment Error with “Newton's method” in Wellin's Mathematica book
Yeah, the title and perhaps most of the question... To answer the question in your comment, yes, people do write code that way if necessary. The warning exists because more often than not, this is a mistake made by inexperienced users and is probably not what they want. If you know what you're doing, you're free to ignore the warning. There have been related questions such as this on syntax warnings.
Aug
12
comment Error with “Newton's method” in Wellin's Mathematica book
Simple errors and typos in books are best taken up with the author/publisher...
Aug
11
awarded  Good Answer
Aug
9
comment How to make use of Associations?
Thanks for the insight, Leonid. I agree that the operator forms are really useful. I've mostly been using Associations as the equivalent of a dict in python, but it is certainly capable of a lot more and I've been playing with it, trying to find out other uses. Re: "You probably still have to manage the Module-generated symbol" — do you mean that this symbol won't be garbage collected?
Aug
8
comment How to make use of Associations?
I found it quite fun to use Association as a circular linked list for cyclic repetitions. Sort of like how an Internal`Bag can hold itself, I think this is quite powerful and might have more practical uses beyond what I used it for. Do you see any other good applications for it?
Aug
8
comment Are there tools for getting Mathematica 9 Notebooks working in Mathematica 10?
This is an interesting and useful observation, but it isn't an answer to this specific question. I think it is worth a separate question that exposes the bug.
Aug
7
comment Does Mathematica have Month Range and Day range?
@Algohi There are only 7 days in a week... I'm sure you can type it out faster than hunting for DataPaclets`... (if it existed). I was just too lazy to type out all the months :) Here, use this: Thread[{"Sun", "Mon", "Tues", "Wednes", "Thurs", "Fri", "Satur"} ~~ "day"]
Aug
7
revised Does Mathematica have Month Range and Day range?
edited tags
Aug
7
awarded  Necromancer
Aug
7
revised Accessing list elements by name
added 1 character in body
Aug
7
revised Does Mathematica have Month Range and Day range?
added 170 characters in body
Aug
7
answered Does Mathematica have Month Range and Day range?
Aug
6
comment Incompatible Changes since Mathematica Version 7?
@Mr.Wizard I think we have (at least in the past) consistently been applying CW to anything that calls for a growing and collaborative "list of x" regardless of whether that list is presented as one post or many. It is a more recent phenomenon that such questions are not CW, but that seems more an oversight... I don't have a particular opinion on the format — I'm sure there are other equally useful formats that others might come up with. Your choice shouldn't prevent them from using theirs. I added my entry to yours in your format because I didn't think it warranted a new post.
Aug
6
comment Incompatible Changes since Mathematica Version 7?
Yup, I almost always write a space for implicit Times. Probably started doing that because I used to (and still do) write in code cells or with non-interactive editors such as vim/IDEA.
Aug
6
revised Incompatible Changes since Mathematica Version 7?
added 450 characters in body