Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions on the numerical functions of Mathematica, implementing numerical methods and numerical computing with Mathematica.
2
votes
EvenQ not working properly on IntegerPart[real number]
IntegerPart[0.57*100]
(* 56 *)
0.57*100
(* 57. *)
InputForm@%
(* 56.99999999999999 *)
1
vote
SetPrecision and setting precision with a backtick
@LLlAMnYP, the goal is to enter numbers with a certain precision prec. The only problem is that entering all numbers in the format as required by Mathematica is really cumbersome. I want it to be a …
4
votes
How to force precision in region plots containing Erfc
Use the relation Erfc[x] == 1 - Erf[x]. The two argument form of Erf is specifically to tackle these precision issues:
ContourPlot[Erf[x, y] == 0, {x, -12, 0}, {y, -12, 0}]
Erf[z0, z1] gives the …
3
votes
Numerical 3D Integration in Mathematica
The integral over a spherical region is easily performed by Mathematica even analytically. Assuming f=1 and for brevity putting the center of the sphere at the origin:
Timing@Integrate[1, {x, -r, +r} …
3
votes
The algorithm behind InputForm for machine numbers
This section of my answer previously showed that Export[fname, data, "TSV"] is incredibly slow (~500 seconds for exporting 10^5 * 10 reals), but this is easily worked around by WriteString[fname, Exp …