2,778 reputation
216
bio website
location
age 19
visits member for 1 year, 10 months
seen 2 hours ago

NKSSS attendee


2d
comment Non-Linear Graph
You're not allowing the fit to scale horizontally, forcing MMA to find an optimal fit with a forced period of $2\pi$. Consider adding another scaling parameter.
Apr
15
comment PDF files generated by Mathematica on Windows cannot be viewed on Ubuntu
Using the "Save as..." button from the menu, I am able to both save a document as a PDF and then open it with Document Viewer, which is the native pdf viewer on my distribution. Equal[{"Version", "OperatingSystemVersion"} /. SystemInformation["FrontEnd"], {"9.0 for Linux x86 (64-bit) (February 7, 2013)", "Ubuntu 12.04 \ (3.5.0-48-generic)"}].
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
Feb
15
asked LinearProgramming behavior
Feb
15
comment Make Sinc'[0] return 0 instead of Indeterminate
@pdmclean does the latter part not directly answer your question?
Feb
12
revised Make Sinc'[0] return 0 instead of Indeterminate
corrected values to what they actually were
Feb
11
answered Make Sinc'[0] return 0 instead of Indeterminate