Reputation
7,861
Next privilege 10,000 Rep.
Access moderator tools
Badges
19 53
Newest
 Outspoken
Impact
~78k people reached

Jan
29
awarded  Outspoken
Jan
19
revised Held keys in associations
KeyMap is useful
Jan
14
awarded  Convention
Dec
15
comment Reading from STDIN, or: how to pipe data into Mathematica
my confusion was more about this use of cat without arguments. But I see now the line in man page of cat (CAT(1)): "If file is a single dash (`-') or absent, cat reads from the standard input". I am still impressed that cat connects to the standard input of the script correctly.
Dec
15
comment Replacing Tan[x] with Sin[x]/Cos[x]
@MichaelE2 One example is: Mathematica Sec and Csc, but J.M. has already given an answer :).
Dec
14
comment Reading from STDIN, or: how to pipe data into Mathematica
ReadString["!cat"] is also useful here. I must say I don't really understand why your answer works, but that makes it more impressive that you found out about it.
Dec
14
comment How can I use Kenneth Moreland's “Diverging Color Maps for Scientific Visualization” in plots?
This documentation page contains the most relevant thing I could find in the docs: "There is a convention that built‐in Wolfram Language objects always have names starting with uppercase (capital) letters. To avoid confusion, you should always choose names for your own variables that start with lowercase letters."
Dec
14
comment How can I use Kenneth Moreland's “Diverging Color Maps for Scientific Visualization” in plots?
At least the C standard tells the user what is not allowed. Here is comment about this. Here is the C-standard for reference, because it is mentioned in that comment. I would personally be in favour of not defining symbols that start with capitals in packages, but I do not have the most extensive experience in writing packages.
Dec
13
comment How can I return a Sequence?
I'm not sure what you are trying to accomplish with Locked := (Message[Locked::nope]; Sequence[]), as as OleksandrR. mentioned, Locked is Locked, but note that in your code Sequence[] occurs inside CompoundExpression, which does not have SequenceHold, so it is immediately removed, which is probably also not what you intended.
Dec
13
revised How can I return a Sequence?
Removed sillyness
Dec
11
comment Numerically evaluating an integral related to Cantor's staircase
Nice answer, I tried "truncating the sum", it is nice to see how this can be improved.
Dec
10
answered Problem with complex conjugation of series data in mathematica 10
Dec
9
comment Problem with complex conjugation of series data in mathematica 10
ComplexExpand is not documented to work with SeriesData, like in your example. Also in ComplexExpand@Conjugate@funky[x, 0, {I}, 0, 5, 1], Conjugate is simply removed, which is the same behaviour as in your example, only I wrote funky instead of SeriesData.
Dec
8
answered A quicker than outer
Dec
8
comment Theorem Proving
Looking at the documentation of Resolve, there appears to be support to work with functions like your f. Another simpler example that does not work: Resolve[Implies[ForAll[c, c \[Element] Integers, f[c] \[Element] Integers], f[1] \[Element] Integers]]
Dec
2
revised Random letters: What is the chance that real words are generated?
Language
Nov
30
revised Behavior of $PreRead in Kernel
Will not edit later, I will leave the partial solution
Nov
30
comment Behavior of $PreRead in Kernel
@bobthechemist yes, you are right. I just tested if $PreRead works on a RPi, but apparently it doesn't. What you see in the answer is really an afterthought, when what I expected didn't work. Maybe I'll try to make something work using pipes.
Nov
30
comment A quicker than outer
Sorry for my poor choice of variable names
Nov
30
comment A quicker than outer
I'm not really used to the term vectorization in this context, but should it really exclude using listable functions? My timings indicate that (res2 = Thread[Unevaluated@Subtract[a, b]]) // AbsoluteTiming // First is 4 times faster than a-b for random reals, which appears to "do arithmetic element by element". Interestingly, the version with Thread seems to parallelise automatically.