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

1h
revised Display line number/stack trace of error in script (i.e. batch mode / command line interface)
added 13 characters in body
1h
revised Display line number/stack trace of error in script (i.e. batch mode / command line interface)
added 242 characters in body
1h
answered Display line number/stack trace of error in script (i.e. batch mode / command line interface)
2h
comment Display line number/stack trace of error in script (i.e. batch mode / command line interface)
Mathematica will report the line number of a syntax error. It cannot report the line number of an arbitrary Message because there's no direct link between the in-memory program and the source file. In most of the cases there is no source file at all. Definitions can be issued from the command line, or created completely programmatically. Looking at the title of the question my first reaction would be to say, "inherently impossible". But you are not asking only for line numbers but also for some sort of stack trace, which should be possible. Therefore I suggest re-titling the question.
3h
comment ListInterpolation to get a vector-valued function
You could use Interpolation instead of ListInterpolation, but settling for three ListInterpolations might be easier actually. Personally I would go for three ListInterpolations.
3h
comment ListInterpolation to get a vector-valued function
Can you note in your question that Interpolation does support interpolating arbitrary dimensional vectors? Just to get this out of the way.
3h
comment read Python-generated data file
How many elements are there approximately? The simplest solutions tend to be the slowest, and often Interpreter is the simplest: Interpreter["ComplexNumber"]["-0.998722569699-0.000124681423362j"] does work for this form.
3h
comment How to equate coefficient of two polynomials?
Are you looking for SolveAlways?
5h
comment read Python-generated data file
If you are exporting the data from Python yourself, the best solution will be to split the complex numbers into real and imaginary parts and export them as distinct units. Parsing special forms in Mathematica is possible but not fast. If your data file is a simple table with only real numbers, there are very fast builtin functions to read it.
16h
comment Is the “Custom Extension of C” that Mathematica is partially written in available for use or review?
In any large software project written in C you will find some standardized patterns in how things are implemented. These are often packaged into macros. There are many examples, take a look e.g. at how igraph allocates and frees resources. I think you are reading way too much into this and that's all there is to it. As you know Mathematica is closed source, so no, there's no public documentation on its source code.
17h
comment Importing LaTex
Have you tried CreateDocument? I do not understand your comment. It will give you the text in a readable, copyable, editable form.
18h
comment Importing LaTex
You can use it with CreateDocument, or you can pick it to parts and do something with the cells separately.
19h
comment How was Mathematica built?
reference.wolfram.com/language/tutorial/…
19h
comment How to make a flowchart?
It's entirely possible with enough VertexShapeFunction and EdgeShapeFunction settings, but it's also a lot of work and very tedious. Why don't you use a dedicated diagramming tool? You could do it in a tenth of the time. No, probably a hundredth of the time.
1d
revised Random bipartite graphs?
added 152 characters in body
1d
answered Random bipartite graphs?
1d
comment Conditionals within For Loops
cond ? a : b is a conditional ternary operator in C, C++ and a few other languages. But not in Mathematica! This is simply invalid Mathematica syntax. Also consider avoiding For completely while you are a beginner. Take a look at Do as a direct equivalent, but try to formulate the program with list-based (Table) or functional programming constructs (Map,etc.) if possible.
2d
comment Image3D does not give the distinctive blurry look, version 10 Linux
I don't think this is antialiasing-related. Even within a single voxel, we should see a smooth gradient. The shading should reflect the thickness of the opaque material we are looking through. Like this. On Linux each voxel looks as if it were empty inside and only its faces ("walls") were semi-transparent. Each voxel should look as if it were a solid semi-transparent volume.
2d
comment Image3D does not give the distinctive blurry look, version 10 Linux
1. I get the same image on Linux (in VirtualBox) 2. This is not what it should look like and it's not what it looks like on OS X. 3. My guess is that it falls back to some approximation due to lack of driver/hardware support.
2d
comment Install hangs for precompiled Cuba integration executable
Have you contacted the package author?