2,815 reputation
318
bio website
location
age 19
visits member for 2 years, 2 months
seen Aug 28 at 6:26

NKSSS attendee


Jul
20
accepted Is Mathematica compatible with primusrun?
Jul
2
awarded  Curious
Jul
2
awarded  Popular Question
Jun
29
awarded  Yearling
May
13
comment CleanSlate[] not working?
I cannot replicate this behavior (64 bit Linux). Last line returns x for me.
May
12
reviewed Approve suggested edit on Coloring with Hue for a function on a lattice grid
Apr
12
comment Why does Mathematica list the variables in a double integral backwards?
@RahulNarain The issue that OP has (which I must admit I empathize with) is that Integrate[x+y,{x,0,a},{y,0,f[x]}] refers to an integral $\int_0^a\int_0^{f(x)}(x+y)dydx$. The inversion of the $dydx$ terms with the iterator may seem unnatural to some.
Apr
4
revised Half-delayed evaluation
Reduced replace scope.
Apr
4
answered Half-delayed evaluation
Mar
21
comment Efficient method for Inserting arrays into arrays
This one's really fast (and the cleanest solution, too) - good job!
Mar
21
comment Efficient method for Inserting arrays into arrays
I tried something along these lines, but I found the additional ReleaseHold was too expensive - the whole expression needed to be traversed again for Holds.
Mar
21
answered Efficient method for Inserting arrays into arrays
Mar
21
comment Efficient method for Inserting arrays into arrays
You beat me to the second one. I didn't find it much faster, though. One thing that sped it up slightly is Flatten[..., 1]
Mar
21
comment Efficient method for Inserting arrays into arrays
"Insertion" is not very well defined as shown unless a and b both have the same length. If this is the case, you should tell everyone that constraint.
Mar
3
comment Why is my solution to PE #5 so slow
@rm-rf I see how your method is more educational. Still though, if I was ever given a choice between both pretty and efficient patterns and a built-in, the built-in would still be a clear winner.
Mar
3
comment Why is my solution to PE #5 so slow
@rm-rf I would disagree - I think that's the very purpose of using PE to learn Mathematica. It would be against the spirit of Mathematica to force procedural programming when a built-in function will do.
Mar
3
answered Why is my solution to PE #5 so slow
Feb
16
comment LinearProgramming behavior
The issue was that I missed a sign when inputting the values
Feb
16
accepted LinearProgramming behavior
Feb
16
revised LinearProgramming behavior
added 10 characters in body