Reputation
Next tag badge:
570/400 score
73/80 answers
Badges
5 172 393
Newest
 Nice Answer
Impact
~820k people reached

10h
comment Making Mathematica function files like in MATLAB
Why do you want to separate each function out into its own file? This is really just an idiosyncrasy (and limitation) of MATLAB. You don't need to do it when you use other languages.
1d
comment How to send an “end-of-file” marker to a process object's standard input?
@MikeLimaOscar Sounds like an answer!
2d
comment How to force evaluation on the right of an @ operator?
Instead of f @ (g @@ x) you might want to use f @ Apply[g] @ x, which is more verbose, but does save parentheses. Unfortunately when you use pure functions (...& notation), very often it's still necessary to use parens because & has a low precedence and tends to "eat" everything preceding it.
2d
comment How to force evaluation on the right of an @ operator?
No, there isn't, because @ has a very high precedence. The issue is with precedences. Should x OP1 y OP2 z be interpreted as (x OP1 y) OP2 z or x OP1 (y OP2 z)? In Mathematica it's the latter only if OP2 has a higher precedence than OP1.
2d
comment RandomGraph with specific constraints
What I was trying to ask if whether you need all graphs that satisfy the constraints to be sampled with equal probability. I'm assuming yes.
2d
comment RandomGraph with specific constraints
When you say "random graph" do you mean "just give me some graph with these properties" or do you mean true uniform sampling from the set of all graphs satisfying your constraints? The latter is a much harder problem. Also, can you list your constraints concisely and clearly?
2d
comment How can I make Plot show the plot while it's computing it?
What do you need this for? I think it would be easier to re-implement adaptive plotting (not hard for 1D) than to try to coerce Plot to do this for you.
2d
comment How does Mathematica calculate its AdjacencyMatrix[ ] and VertexDegree[ ]
Vertex ordering is completely unrelated to the names of the vertices. Vertices can be any expression, not just numbers. Never assume that numerical vertices are ordered from smallest to greatest. Use VertexIndex and VertexList to relate the index of a vertex to the vertex itself. In practice, Mathematica puts the vertices in the order you first specify them (as they appear in the edge list in your example), but never count on this as there's no guarantee and I won't be surprised if future versions change this.
May
22
comment A bug in Integrate
@Vaclav I noticed that most of your posts here are bug reports. Please do not do this. This site is for questions only. If you wish to report bugs, contact Wolfram directly. Wolfram will not see bugs reported here. If you only report here, they won't get fixed. This site is not affiliated with Wolfram.
May
21
comment Parsing a CSV file using Interpreter
@Taliesin Thank you!!! This is great!
May
21
comment FullSimplify cascades too much/groups variables too eagerly
Take a look at ComplexityFunction to understand why Simplify does this.
May
21
comment Parsing a CSV file using Interpreter
Because of problems like this one (and this) I am actually getting quite a bit of real pressure to use R instead. It's very hard to explain to the decision-makers why I would need to use a very expensive piece of software like Mathematica when R is free and can import data quickly and accurately, especially when I had to correct my results the next day as I discovered that Mathematica imported some data incorrectly. I really hope WRI will give higher priority to practical user needs.
May
21
comment Parsing a CSV file using Interpreter
I was trying to use SemanticImport for this sort of data in 10.1.0, but it is literally unusably slow when specifying column types explicitly. This takes 27 seconds on my computer: SemanticImportString[ExportString[RandomReal[10, {5000, 5}], "Table"], {Real, Real, Real,Real, Real}]; Is there going to be a fix for this?
May
20
comment Encourage SemanticImport to assume numbers?
I ran into this problem too. Unfortunately specifying data types makes import ridiculously slow.
May
20
comment Simple way to concatenate Dataset columns
@Mr.Wizard No, but I will.
May
20
comment Simple way to concatenate Dataset columns
@Mr.Wizard No, keep it.
May
19
comment Simple way to concatenate Dataset columns
So I didn't overlook anything then, and this is really the shortest way. I'll just make a function for it. This problem came up when processing a dataset in two different ways, ending up with two datasets of compatible shapes but different contents (columns). It is often inconvenient and sometimes very cumbersome to redo the calculations in a way that produces a single dataset in one go. It's simpler to just continue using what I have and combine them to a single dataset.
May
19
comment Question about TransitiveReductionGraph
I think it's a bug.
May
19
comment Color edges of a multigraph when there are parallel edges using Graph[] and EdgeStyle
Overall this is a pretty big issue: it doesn't only affect styling. It also affects all properties that can be attached to edges. Due to the special nature of multigraphs, I'd assume that if anyone actually does need multigraphs, they likely also need properties. So this problem is serious enough that it makes the new multigraph functionality near-useless. If you agree that this is a bug, could you please file a bug report?
May
19
comment Color edges of a multigraph when there are parallel edges using Graph[] and EdgeStyle
I would consider this problem a bug. The fact that EdgeStyle simply doesn't support differentiating between the edges could be called bad design (or design without foresight). But there's an alternative notation: Graph[{Style[1->2, Red], Style[1->2, Blue]}]. This notation does support separate styling, yet it's not handled correctly.