Reputation
87,988
Next tag badge:
821/400 score
77/80 answers
Badges
6 232 499
Newest
 Nice Answer
Impact
~1.1m people reached

Feb
4
comment Bilinear interpolation
@foolcool Well, think about what that formula would look like. You said bilinear. Would that be a high order polynomial? No, it's a piecewise linear with many-many pieces. In other words, the formula written out like this is useless. It sounds like you want to know how to implement bilinear interpolation in another language---but that is not a Mathematica-related question.
Feb
4
revised Limit involving DiracDelta gives zero
deleted 18 characters in body
Feb
4
comment Hidden assumption in Mathematica integration
OK, I didn't see your update when I wrote my last comment.
Feb
4
comment Hidden assumption in Mathematica integration
This question was phrased in a very general way, so I think closing it as duplicate was OK. But after reading the information in the link you still don't have a solution you are satisfied with, then you may want to post a separate question where you describe the specific details of your problem. There may be a solution which is not at all general but works well for the specific application you have. It may involve writing manual integration rules, which can be easy for simple cases (and very difficult otherwise).
Feb
4
comment Grid cuts my images
@Kuba The one linked here. I think the WRI QA folks found that very useful because it is able to filter out fixed bugs. It extracts the first "paragraph" (i.e. up to the first empty line) of the markdown and looks for the word "fixed" in it, I think (but I didn't look at the source code). It also generates a nice webpage with links to each topic and the "bug line" included in the summary.
Feb
4
comment Hidden assumption in Mathematica integration
Can you substitute the $\omega$ values before doing the integration? Then the problem would go away.
Feb
4
comment RandomPoint fails with a large enough number of points
@shrx Added. Also reproduced in 10.2 Mac. There's no RandomPoint in 10.1 so the bug can't be present there.
Feb
4
comment Grid cuts my images
Let's keep the bug description on a single line so that Pickett's script can extract it. If you want to display a line break, <br> works without needing to put an empty line in the markdown source.
Feb
4
revised Grid cuts my images
deleted 17 characters in body
Feb
4
revised RandomPoint fails with a large enough number of points
added 101 characters in body; edited tags
Feb
4
comment RandomPoint fails with a large enough number of points
I cannot reproduce it with SeedRandom[1] on Linux. The only difference remaining between our systems seems to be that you have 10.3.0 and I have 10.3.1. Time for an upgrade?
Feb
4
comment Force mathematica to consider variables as real
I don't understand your question. Aren't all variables real by default? Do you want to ask how to make them complex instead of real? Why is it not easy to replace one variable with a+b I? It would seem trivial on first sight.
Feb
4
answered Bilinear interpolation
Feb
4
revised How can I convert a 3D contour plot into a region for use as a custom slice in ListSliceDensityPlot3D?
added 2 characters in body
Feb
4
comment How can I convert a 3D contour plot into a region for use as a custom slice in ListSliceDensityPlot3D?
@JasonB The error message says that GraphicsComplex is not supported. Normal expands the GraphicsComplex (see last entry under Details on its documentation page).
Feb
4
comment Shared variable can not be distributed again after UnsetShared
@Eisbär ... done in serial (not parallel) when something goes wrong with distributing the definitions. Low memory usage indicates that the definitions are not in fact distributed across subkernels.
Feb
4
comment Shared variable can not be distributed again after UnsetShared
@Eisbär I don't fully understand your question, but I think it is related to this phenomenon: let's work with ParallelEvaluate which (unlike ParallelTable) does not automatically distribute definitions. In a newly started kernel set a=1; and try ParallelEvaluate[a+a]. It appears to work, but the calculation wasn't done on the subkernels. Instead each subkernel returned a symbolic a+a to the main kernel, where that expression evaluated further. Compare ParallelEvaluate[Print[a+a]] to ParallelEvaluate[a+a]. Because of this some calculations appear to work but are in fact...
Feb
4
comment Calculating products of given length of two matrices
@Marko c.#& /@ list. Look up Map and Function.
Feb
4
comment Shared variable can not be distributed again after UnsetShared
@Eisbär The problem is simply that the two functions were not used in a pair. The mechanism by which the problem manifests itself is not that UnsetShared clears a from a bookkeeping list. It is that you didn't use SetSharedVariable so a never got cleared from the distributed list! But the solution is not to try to edit the internal state, as that can very easily break things. The solution is to always use SetSharedVariable and UnsetShared in pairs.
Feb
4
comment RandomPoint fails with a large enough number of points
@JasonB I tried this and couldn't reproduce it: Monitor[ Do[Check[RandomPoint[\[ScriptCapitalR], k], Print[k]], {k, 5, 200, 3}], k ] I think that we'll need to use SeedRandom to get a consistently reproducible example.