38,187 reputation
155151
bio website uoregon.edu/~noeckel
location
age
visits member for 2 years, 2 months
seen 7 mins ago

Mar
25
comment FlipView can't handle CurrentValue[“MouseOver”]. Kernel crash
The EventHandler workaround from the linked answer doesn't really work here. I accidentally got it to "work" with the wrong syntax: FlipView[{EventHandler[Framed[...],Framed[...], {"MouseUp",2}:>Null]}] which strangely produced neither an error message nor a crash. But wrapping Framed individually doesn't prevent the crash.
Mar
25
comment Avoid crash in recursive Dynamic
Absolutely, for your application this isn't going to work.
Mar
25
comment Avoid crash in recursive Dynamic
@Kuba, yes, I think this was fixed in the meantime - I don't see the crash on 9.0.1 anymore. But in your question here, the fix seems to work.
Mar
25
comment FlipView can't handle CurrentValue[“MouseOver”]. Kernel crash
Perhaps related: Avoid crash in recursive Dynamic. The fix there does seem to work here if it wraps Framed.
Mar
25
comment Solving Heat equation
You could solve this numerically with NDSolve, but the boundary conditions are inconsistent with the initial condition at t=0. If you replace them by u[10,t] == u[10,t] (periodic boundary conditions), the numerical approach will work after correcting the syntax.
Mar
24
comment Ways to compute inner products of tensors
@IanHincks Yes, it's wasteful if the tensors are large, but on the other hand it's very easy on the eyes. The question asked for elegance, and that's of course in the eye of the beholder.
Mar
20
comment FindRoot constrained to maximum
@LBogaardt OK, thanks for clarifying your problem. I changed my answer to account for this.
Mar
16
comment How to embed a movie into a Mathematica-made presentation?
You can include movies like I did in this example: Style[Dynamic[Refresh[Import["http://pages.uoregon.edu/noeckel/computernotes/St‌​opMotion.mov", "Animation"], None]], DynamicEvaluationTimeout -> 60] which is from this answer.
Mar
16
comment How can I add drop shadows to the text of non-input/output cells?
Not a direct answer: you could save the notebook as HTML and edit the CSS style sheet to add text-shadow: gray 3px 3px 3px; to the class definitions for .Section and .Subsection. That way you'll get drop shadows in the HTML output. It's not a solution for the presentation of the notebook itself, but it's so easy that I thought it should be pointed out.
Mar
13
comment eigenvector bug?
@xslittlegrass Sadly, the "future version" that was supposed to fix this bug hasn't materialized yet...
Mar
11
comment Functional derivatives in Feynman Path Integral
Probably, this is a duplicate of Can we teach Mathematica about functional differentiation. The package you're looking for may be FeynCalc in Rolf Mertig's answer.
Feb
20
comment Quick Hessian matrix and gradient calculation?
@TheGrapeBeyond It also works in Alpha if you input the one-line command including the function definition: D[x^2 - y)/(x^2 + y^2 + 1), {{x, y}}, {{x, y}}]
Jan
17
comment Calculating electrostatic potential from arbitrary charge density
For arbitrary charge density in 2D, you may also want to have a look at: Poisson solver using Mathematica
Jan
14
comment Possible bug with FourierTransform linearity
Related: FourierTransform and Partial Derivatives?
Jan
13
comment Can Mathematica functions have static variables?
See also the answer by @Leonid to What are the use cases for different scoping constructs
Jan
8
comment How can I define a ⊕ operator?
In the original two-line definition, one can also just switch the order of the lines. The reason why this works is exactly what caya wrote.
Jan
6
comment Series plot will not display properly (Fourier Series)
Thanks @Artes - I hope I didn't miss too much, I almost didn't check in at all during the fall...
Jan
6
comment How do I change a ColorFunction filling to be top-down as opposed to left-right?
Closely related: Can I make a plot with gradient filling?. So in other words, it's not as easy as it should be, unfortunately...
Nov
28
comment How to make traditional output for derivatives
@Kuba The reason I put the Symbol constraint in the definition is that I didn't want this short notation to be used when the chain rule is needed. In that case, I want to retain the clearer formal notation to avoid confusion. So for example TraditionalForm[D[f[g[x], y], x]] will be displayed in the standard way. By the way, the chain rule wouldn't even be use at all if you use the other method, TraditionalForm@Defer[D[f[g[x], y], x]]. But this may be a matter of taste and depends on your needs. You could also use Symbolize on your variables and leave the __Symbol constraint in.
Sep
20
comment ContourPlot shows only part of the contours
@RahulNarain You're right, thanks for finding this.