Reputation
1,377
Next privilege 2,000 Rep.
Edit questions and answers
Badges
6 21
Newest
 Yearling
Impact
~14k people reached

21h
comment How well does Mathematica code exported to C compare to code directly written for C?
The function name looks like invalid C. Modern Mathematica versions don't seem to produce such invalid code.
Jan
31
comment How to plot points in 2D without restricting their apparent positions to pixel grid?
@Nasser see updated question, I've included a magnified animation to better see what's wrong.
Jan
31
revised How to plot points in 2D without restricting their apparent positions to pixel grid?
added 131 characters in body
Jan
31
comment How to plot points in 2D without restricting their apparent positions to pixel grid?
@Nasser of course you don't see any difference if you enlarge the points — see my parenthesized part of the first sentence. I wasn't talking about logical positions — my question is about rasterization, which does yield different results. To see the difference, use a screen magnifier (e.g. Qt's pixeltool) on my animation. As for function definition, why should it be a delayed assignment (I guess you mean := not =:)? It doesn't make any real difference here, and in general it isn't useful to completely reevaluate an expression for each argument unless the expression is not idempotent.
Jan
31
asked How to plot points in 2D without restricting their apparent positions to pixel grid?
Dec
29
awarded  Yearling
Dec
11
accepted Why does Mathematica simplify $x/x\to1$?
Nov
29
revised How to improve performance of BesselJ to the level of GSL?
C source vanished from Mozilla's pastebin, removing the broken link
Nov
20
comment FullSimplify does not distribute Abs over multiplication
FWIW, FullSimplify[FunctionExpand[Abs[x y]^2], {x, y} ∈ Reals] does yield x^2y^2.
Nov
19
awarded  Good Question
Aug
30
awarded  Nice Question
Aug
29
comment Why is an Identity function needed?
What does this @* construct do? My Mathematica 9 doesn't understand it.
Aug
13
comment How to properly generate messages from LibraryLink function?
Does this only work with version 10? I get a compilation error RETURNPKT undeclared. Could you give a working executable code for Mathematica to make the usage clear?
Jul
4
comment Plot is discontinuous (it shouldn't be)
@grdgfgr it doesn't have to evaluate to purely real to appear plotted. The ratio of imaginary to real part just has to be below some threshold. See e.g. Plot[Sin[x]+10^-15I,{x,-3,3}], it'll be plotted where the real part is greater than about 0.1.
Jun
18
comment Why do Mathematica list indices start at 1?
In lower level languages like C indexing arrays from 0 is more natural because there the indices work as offsets, i.e. if you have a pointer p, then p[0] is the same as *(p+0) and the same as *p and the same as 0[p].
Jun
9
revised Weird plot with SphericalPlot3D
Convert letters to unicode, remove extra newlines from the code
Jun
9
comment Weird plot with SphericalPlot3D
You can avoid pasting these \[Theta]-like sequences by converting them to their Unicode counterparts using this web app.
Jun
9
suggested approved edit on Weird plot with SphericalPlot3D
Jun
7
comment How to properly generate messages from LibraryLink function?
How does this extend to messages with arguments, like e.g. NIntegrate::inumr, which looks like The integrand `1` has evaluated to...? I.e. how do I pass these arguments from the function?
Jun
7
revised How to properly generate messages from LibraryLink function?
edited title