61,316 reputation
5151351
bio website nd.edu/~szhorvat/pelican/…
location ND
age
visits member for 2 years, 10 months
seen 36 mins ago

contact details

Please do not write me with Q/A related questions. Post them on the site instead!

Visit Mathematica.SE


Sep
24
awarded  Nice Answer
Sep
24
comment Use URLFetch in init.m
@halirutan It seems Needs["JLink`"]; JLink`InstallJava[] does work in init.m, but it doesn't fix URLFetch.
Sep
24
comment Use URLFetch in init.m
You could consider putting the update in $Epilog instead. (I haven't tried it and it should be noted that it's invoked when returning from a Dialog as well, which may not be a good thing in this case.) Be careful about using things like MessageDialog, they're not command line friendly.
Sep
23
answered Can I compile a function containing ArcTanh?
Sep
23
comment Can I compile a function containing ArcTanh?
The values of $\tanh x$ are between -1 and 1 for real arguments. If you wish to work with complex numbers, use the appropriate type annotation in Compile[{{x, _Complex}}, ...].
Sep
22
revised Very different results from evaluating same expression with different precisions
added 118 characters in body
Sep
22
revised Very different results from evaluating same expression with different precisions
added 118 characters in body
Sep
22
revised Very different results from evaluating same expression with different precisions
added 676 characters in body
Sep
22
answered Very different results from evaluating same expression with different precisions
Sep
22
comment Very different results from evaluating same expression with different precisions
Note that $MachinePrecision is a number (15.95) while MachinePrecision is a symbol.
Sep
22
comment Very different results from evaluating same expression with different precisions
As Stephen said, N[expr] is equivalent to N[expr, MachinePrecision], but not to N[expr, $MachinePrecision]. The former will use the CPU's built-in floating point operations, it is very fast, but it doesn't have precision tracking and it's more prone to numerical errors. N[expr, someNumber] will use Mathematica's implementation of arbitrary precision arithmetic and it has precision tracking, so the system has an estimate about how many digits are correct. This makes it possible to obtain more reliable results, at the cost of performance.
Sep
22
revised Example program for calling Mathematica from C
added 993 characters in body
Sep
22
revised Example program for calling Mathematica from C
added 2 characters in body; edited title
Sep
22
revised Example program for calling Mathematica from C
added 993 characters in body
Sep
22
answered Example program for calling Mathematica from C
Sep
22
comment Example program for calling Mathematica from C
Take a look here and here. The first link has a full example program.
Sep
21
comment Combine 2D images perpendicular to each other
Take a look at the documentation page of Texture and look under Applications -> Volume rendering. Does the example shown there help? It starts with images and gives the kind of plot you are looking for.
Sep
21
comment How can I run .exe file in Mathematica
Have you tried unchecking the "Always ask before opening" checkbox in that dialog that came up?
Sep
20
comment Avoiding zero (empty set) solution with NDSolve
Thanks for the edit (and welcome to Mathematica.SE). Can you explain why you think that this equation will have a non-zero solution if at some time t x[t]==0? It looks like it would reach 1 and 0 at -Infinity and Infinity. Notice that the equation does not contain the time at all, only x. This means that the solutions you get for different initial conditions have exactly the same shape and are only translated in time relative to each other. The shape of the solution doesn't depend on x[0] at all.
Sep
20
comment Avoiding zero (empty set) solution with NDSolve
(I'm not sure this approach will work. I can construct a first order diff eq where it would work with difficulties. It'll be easier if you give an actual numerical example and show us that it does have a non-zero solution.)