421 reputation
38
bio website barrywardell.net
location Dublin, Ireland
age 32
visits member for 2 years, 10 months
seen Sep 18 at 14:25

I am a postdoctoral researcher studying General Relativity at University College Dublin, Ireland.


May
28
awarded  Yearling
Aug
29
comment Correct way to handle mysterious NaN` result from MathLink function
The difference you see between 9.0.1 and 8.0.4 is actually a result of a change from 64-bit to 32-bit. Note that the numbers are not totally arbitrary - they are the smallest possible two's complement signed 64-bit and 32-bit integers. I agree that this is very much a hack which relies on the machine-dependent internal representation of numbers. It shouldn't be used if it can be avoided in any way. However, if you can't modify the MathLink source code and are stuck with NaNs in Mathematica, it may still be useful as a way to get rid of them.
Aug
27
comment Correct way to handle mysterious NaN` result from MathLink function
I'm not sure if it's totally robust (for example, something different has to be done for 32-bit and 64-bit), but my suggestion does work as intended. I checked with Mathematica 9.0.1 on Mac OS X and ReplaceNaNs[NaN] returns Indeterminate while ReplaceNaNs[-Inf] returns -Inf`.
Jan
30
awarded  Yearling
Jul
19
answered Correct way to handle mysterious NaN` result from MathLink function
Feb
21
awarded  Scholar
Feb
21
accepted Automated testing for compatibility with older Mathematica versions
Feb
21
awarded  Enlightened
Feb
20
awarded  Mortarboard
Feb
20
awarded  Nice Question
Feb
20
awarded  Nice Answer
Feb
20
comment Kernel Management
Depending on the operating system, it might not be straightforward to start a separate front end. For example, OSX actively discourages multiple running instances of an application. The only way I know around this is to manually run the executable inside the application bundle.
Feb
20
awarded  Supporter
Feb
20
awarded  Teacher
Feb
20
answered Kernel Management
Feb
20
awarded  Student
Feb
20
asked Automated testing for compatibility with older Mathematica versions
Jan
30
awarded  Autobiographer