45,541 reputation
572180
bio website
location
age
visits member for 2 years, 8 months
seen 50 mins ago

Nov
15
comment How can I Integrate large trigonometric expressions more efficiently?
No, please don't delete your original. I think it's good to keep it as it shows how you would approach similar problems in cases where the integrals aren't trivial.
Nov
15
revised How can I Integrate large trigonometric expressions more efficiently?
Total re-write to remove irrelevant background and include important details from comments
Nov
15
comment How can I Integrate large trigonometric expressions more efficiently?
+1 Same approach I took, though since n is an integer I didn't bother with Integrate at all. Just Expand[2 Pi expr]/.{(Cos|Sin)[_]^2 -> 1/2, (Cos|Sin)[_] -> 0}
Nov
15
comment How can I Integrate large trigonometric expressions more efficiently?
What we need is an example of the original Integrate expression, not the result. And please add additional information to the question, not as comments. There is an "edit" button under the question for that purpose.
Nov
15
comment How to programmatically extract mathematical formulas from Word with Mathematica 9?
This answer includes some C# code for converting OMML to MathML. It might be some help.
Nov
15
comment How can I Integrate large trigonometric expressions more efficiently?
You need to supply a couple of examples of the integrations, otherwise we don't know why it's so slow.
Nov
11
comment Distribution of block maxima of gaussian random variables
You need to use ExtremeValueDistribution for maxima, GumbelDistribution is for minima. This is explained in the documentation for GumbelDistribution
Nov
11
comment Glitch in Filling?
Bug report now sent
Nov
10
comment Opacity function applied to Graphics Objects
Looks right to me.
Nov
10
comment Opacity function applied to Graphics Objects
I think Texture is the way to go, but for an opacity gradient the gaussian should be in the alpha channel.
Nov
9
comment Hermite method in Mathematica
A misunderstanding here, I think. The Hermite method is what the InterpolatingFunction is using (see here), not the method used by NDSolve.
Nov
9
answered Opacity renders lines incorrect in certain viewing angles
Nov
9
comment Opacity renders lines incorrect in certain viewing angles
Looks like an issue with hardware rendering then, I suggest you submit a bug report to Wolfram.
Nov
9
comment Opacity renders lines incorrect in certain viewing angles
I suspect a problem with the hardware rendering engine. Does this help? Style[%, "RenderingOptions" -> {"Graphics3DRenderingEngine" -> "BSPTree"}]
Nov
9
answered Exclude data from a list
Nov
8
awarded  Nice Answer
Nov
8
comment TrigExpand Idiosyncracies
I assume that somewhere inside TrigExpand the pattern Sin[_]^2 f_[_] leads to different transformation rules according to whether f is a trig function or not. You have simply found a case where one of those transformations gives a result which a human mathematician would discard as inelegant.
Nov
7
answered How do I understand ListCorrelate(contains $\{k_L,k_R\}$) when it works for 2-dimentional data?
Nov
7
comment Matrix multiplication
Yes I figured the question was more about the memory usage than the specific example, that's why I posted a comment instead of an answer. All I can really say about the speed is that I know that Dot is super-optimised for packed arrays, far far quicker than the equivalent number of arithmetic operations. I expect @ybeltukov or @Szabolcs could give a more knowledgeable explanation.
Nov
7
comment draw part of parabola using graphics
@user2485710, Fit does least-squares fitting. There will be plenty of curve fitting libraries for C if you google it. For this specific case it's overkill in fact, because there is an exact solution for the quadratic passing through 3 points. I just used Fit because it's quick and easy to do it that way in Mathematica.