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

2d
comment How to equate coefficient of two polynomials?
Are you looking for SolveAlways?
2d
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.
Feb
9
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.
Feb
9
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.
Feb
9
comment Importing LaTex
You can use it with CreateDocument, or you can pick it to parts and do something with the cells separately.
Feb
9
comment How was Mathematica built?
reference.wolfram.com/language/tutorial/…
Feb
9
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.
Feb
8
revised Random bipartite graphs?
added 152 characters in body
Feb
8
answered Random bipartite graphs?
Feb
8
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.
Feb
8
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.
Feb
8
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.
Feb
8
comment Install hangs for precompiled Cuba integration executable
Have you contacted the package author?
Feb
8
comment How can I get a list of the “coefficients” of Quaternion[1, 2, 3, 4]?
This second question is not a simple one. The difficulty is deciding (i..e precisely defining) why the second term should be 5 and not 5 Sqrt[2] or something else. If we treat Sqrt[2] as special, we can use CoefficientList[7 + 5 Sqrt[2], Sqrt[2]].
Feb
8
comment Hidden assumption in Mathematica integration
@Phyks So you have a solution for your special use case? Would you be willing to post it if the question gets reopened?
Feb
6
awarded  Nice Answer
Feb
6
comment How to generate two group of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
I have voted to close as unclear with the following reasoning: the posted answers all seem to interpret the question differently (i.e. propose different distributions). This is good evidence that before allowing more answers, the question should be put into a clearer form. How to do that is a good and interesting question in itself but as Jim said it is more suitable to Math.SE.
Feb
6
comment How to generate two group of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
@Jim I'll try come back to this later today (I must leave now).
Feb
6
comment How to generate two group of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
@Jim If you look at all the answers here, they all come to different interpretations of the question. See my comment on Per's answer. That shows that the question is unclear, and the OP very likely did not understand the subtleties involved with his three requirements and their interactions, namely: 1. the constraint that $x_i$ sum to $s$ 2. that each $x_i$ is from $U(0,1)$, which supposedly means that they'd have flat histograms and finally most most subtle notion, 3. that they be "random". Now about this I might be wrong (!), but it seems to me that 1. and 2. are contradictory for $n>2$.
Feb
6
comment How to generate two group of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
To answer your comment, and others too: if you carry out this procedure and then look at the histogram of $x_1$, it won't be flat at all. What does the OP then mean by asking that "they be in $U(0,1)$"? We can reverse it too: if we enforce the flat histogram, and also enforce that they sum to $s$, what does it mean that they are "random" (see reference to Bertrand's paradox). It seems to me that the OP did not understand these issues well when asking the question, and thus ended up with an unclear phrasing. That's well demonstrated by all the answers here proposing different distributions.