Reputation
70,630
Next tag badge:
565/400 score
73/80 answers
Badges
5 170 391
Impact
~816k people reached

Apr
26
comment Why the flat f[x] is treated as ghostHead_[f[x]]?
It is not possible to associate an assignment with a pattern object. It must always be associated with a symbol. Here that symbol is G. The example you show creates an up-value of G. So how come G[2,e] evaluates at all? Since the definition is an up-value one, G[2,e] should only evaluate if it is wrapped by some head. Here it appears it isn't. What really happens is that as part of formatting, the FrontEnd does wrap G[2,e] in another head, which then triggers the UpValue evaluation. Running this example in a terminal, with no Front End, does nothing: G[2,e] doesn't evaluate.
Apr
25
comment How to use an expression for the argument to a function
It can be done, but it doesn't look like a good idea. With[{list = {a_, b_, c_}}, f[list] := a + b + c]. Try not to do this. Also, this won't work in every situation. I really can't understand why you can't just inline list. Why don't you explain in more detail what you are trying to achieve? There's very likely a much better solution.
Apr
25
comment White Edges Around Graphics Elements
Possibly related: mathematica.stackexchange.com/questions/1400/… Please mention your OS.
Apr
25
awarded  Popular Question
Apr
24
awarded  Nice Answer
Apr
23
comment Shorthand to write repetitive test in mathematica
Table is the simplest if you're a beginner.
Apr
22
comment Mathematica 10.1.0.0 (OS X) high CPU usage even for empty notebook
Please do not use the bugs tag when posting new questions.
Apr
22
revised Mathematica 10.1.0.0 (OS X) high CPU usage even for empty notebook
edited tags
Apr
22
comment Is there a way to profile Mathematica code in batch mode?
Maybe a better question would be: how to profile Mathematica code (using the WW profiler or other) when running in command line mode?
Apr
22
comment How to reverse irreversible function in Mathematica?
"Invert" is a better term than "reverse" here.
Apr
22
comment Something like MATLAB Cody for Mathematica? (Learning through exercises.)
@Kuba Wolfram Programming Lab might be something similar, I'm not actually sure what it is. I found it by digging around on the paclet server, try PacletFindRemote["WPL*"]. You can download the paclets, but most of them are unfinished. It looks like a so far unreleased product.
Apr
22
comment Something like MATLAB Cody for Mathematica? (Learning through exercises.)
@Kuba As far as I can tell, this is a collection of programming exercises, ranging from trivial to advanced, with automated solution checking. This sort of thing can indeed be very useful when learning any subject (that's why we do it a lot for maths classes). It's not like Mathematica.SE as people solve the exercises with the aim of learning, and many of the exercises are geared towards beginners (and would instantly get closed here).
Apr
22
revised Something like MATLAB Cody for Mathematica? (Learning through exercises.)
edited title
Apr
22
revised Something like MATLAB Cody for Mathematica? (Learning through exercises.)
added 2 characters in body
Apr
22
awarded  import
Apr
21
comment How can I rename the local kernel without causing issues?
I don't know. To be honest, I don't really see the point of doing this. If it breaks Mathematica, don't do it.
Apr
21
comment How to force Return[] to return from an arbitrary point (like in C++)?
See the doc page of Return under Possible Issues. Due to how expressions are evaluated, "function call boundaries" are not as clear as in C++.
Apr
21
comment How can I rename the local kernel without causing issues?
Probably because "Local" is the default for new notebooks.
Apr
21
revised Mathematica doesn't italicise a function's argument in the function's body if it appears in the denominator and the denominator is edited. A bug?
added 10 characters in body
Apr
21
comment Mathematica doesn't italicise a function's argument in the function's body if it appears in the denominator and the denominator is edited. A bug?
Yes, bug, report it. I've reported this at least twice already and it's been there since 10.0.0.