15,161 reputation
12986
bio website quantdec.com
location Northeastern US
age 14
visits member for 2 years, 7 months
seen 3 hours ago

Consultant (environmental and spatial stats a specialty), expert witness, and teacher. I can be reached through (outdated but still valid) links posted on my web site.

Twitter: @WilliamAHuber // ASA-P website: http://amstatphilly.org/


Why waste time learning, when ignorance is instantaneous?

--T(iger) Hobbes.

For any complex problem there is a simple solution. And it's always wrong.

--[Mis?]attributed to H.L. Mencken by Dava Sobel, Longitude.


May
15
comment How to deal with zero in NDSolve in mathematica?
+1 This argument can be made rigorous by considering the approximate differential equation as a perturbation of the original. Applying DSolve with initial conditions is not very persuasive. It's more insightful to omit initial conditions: the solution will include a Bessel function of the second kind. This captures the singular behavior at the origin and approximates the singular behavior of the original equation there, too. Standard theory shows that's all the solutions you can have--just two dimensions of them--and then the rest of the analysis goes through as shown here.
May
14
comment How to deal with zero in NDSolve in mathematica?
The equations are inconsistent with the initial conditions. At $t=0$ you are requiring that $0 = t y'(t) = -x(t) - t \exp(x(t)) = -1$ which is impossible.
May
14
reviewed Reviewed Variable naming changes everything
May
14
reviewed Leave Open How to store a SparseArray?
May
14
awarded  Enlightened
May
14
awarded  Nice Answer
May
11
awarded  Good Answer
May
10
comment How do I draw a hemisphere?
+1 -- but it's a little bit harder to use this technique to draw an arbitrary hemisphere. :-)
May
10
comment How do I draw a hemisphere?
One method (using RegionFunction) is shown here.
May
10
comment Can one identify the design patterns of Mathematica?
@Oleksandr Those are excellent points. Transforming a held expression is an idiomatic form of self-modification. I think it would be fair to subject such code to the same criticisms applied to all self-modifying code. Memoization, though, still seems to fall a little short of self-modification, because it is really just caching values. The relevant code itself is unchanged, although arguably the memoized object itself undergoes a (benign, controlled) form of "modification" in the sense of augmenting its collection of downvalues at runtime.
May
10
comment Can one identify the design patterns of Mathematica?
Not knowing what operation will take place is similar to not knowing (at compile time) what values the parameters will have, either. "Self-modifying" does not mean "unknown at compile time." Your example would be implemented in Assembly or C or their ilk using a dispatch table. Although the exact procedure will not be known until runtime, there is control over which procedures can be executed and in particular any procedure that might get executed has already been created before the execution started. During runtime, no code is actually modified.
May
10
comment Can one identify the design patterns of Mathematica?
It's powerful, yes, but I don't see how it is "self-modifying." Self-modifying code in MMA can be written but rarely is: it would consist of editing string expressions that would then be interpreted as MMA code and executed. What you discuss here appears merely to be the ability to pass almost any object as parameters, including objects that are thought of as executable. That has not historically been considered a "very bad thing" (although the dangers of such a thorough lack of typing are well known).
May
10
reviewed No Action Needed Exporting twice crashes Mathematica on Ubuntu 12.04 with Unity
May
10
reviewed Reviewed How can I get even steps on x and y axes in a plot?
May
8
comment Evaluation of a triple sum does not finish in reasonable time
Chris, my answer is incorrect: please accept the second answer by @b.gatessucks.
May
8
comment Evaluation of a triple sum does not finish in reasonable time
Very nice idea! @Michael E2 has clearly identified my mistake, which now squares our two results. (I promised only to find a lower bound for the sum, so a numerical value of the integral around $3.5$ is just fine). I apologize for making you work so hard :-) and will make up for it by transferring all the points from my answer to yours, which deserves it. (There's a day's wait before I can do that, though...)
May
8
awarded  Nice Answer
May
8
comment How to compare power towers in Mathematica?
@halirutan Nobody is responsible for deleting incorrect answers: signaling such problems is the role of downvotes. (On other sites, including math.SE, misunderstandings over this issue have created great amounts of angst among some people who have mistakenly accused moderators of not doing their jobs and have disparaged the communities. Please let's not foster such misunderstanding here.)
May
8
reviewed Reviewed How to flush machine underflows to zero and prevent conversion to arbitrary precision?
May
7
comment Finding max, min, and closest root of two dimensional data
You overlooked this, which may be more useful to you.