59,727 reputation
790261
bio website
location Oregon, USA
age
visits member for 1 year, 4 months
seen 4 hours ago
stats profile views 4,596

(also known as Spartacus)

Project Euler


See those two pins? Well today I'm going to... stick them in you.

Ok, let me come clean: Mr.Wizard is actually an alias of mine... I'm glad I can finally confess. ― Sjoerd C. de Vries

No, I'm Spatac... I mean, Mr.Wizard! ― R.M

I'm Mr.W, and so's my wife! ― acl


@Spartacus, it was not fixable. ― rcollyer

check again; I just fixed it. :-p ― Spartacus


"This is the internet, where the men are men, the women are men and the children are FBI agents..." ― yoda Dec 18 '11 at 6:06


"My main purpose of being here is in collecting the votes. I'd even go further and say that this is my main purpose in life." ― Leonid Shifrin


"I am making some voodoo dance and invoking the rain God while we talk" ― belisarius


Some people are fortunate. Others get married. ― belisarius


It's not that easy to do the untangling even manually though. – Szabolcs

Maybe you could turn it into a puzzle and let other people do the untangling :-) – Heike

I could make a web based game, and feed all my graphs to the visitors.
SE is a big game, isn't it? :D – Szabolcs



2d
comment Variable naming changes everything
@belisarius I don't think that option is present in Version 7, unless undocumented.
2d
revised Is there any way to make this numerical integral evaluate faster?
edited tags
2d
answered Modify this code using Module and While
2d
comment Modify this code using Module and While
user, I am repeating myself: please use proper code formatting and not LaTeX in a quote block. See editing help. While editing you can select the code and press Ctrl+K to format it as such.
2d
comment Tricky selection of elements based on their position
Could you add timings for the method I just posted, please?
2d
answered Tricky selection of elements based on their position
2d
comment Tricky selection of elements based on their position
No need; it does the same thing I believe, only I chose a multiplier of five.
2d
comment Tricky selection of elements based on their position
Thanks. I'm curious, do you personally use TimingAverage over the timeAvg function (originally from Timo) I've posted many times willfully, or was this an ad hoc function?
2d
comment How to generate characters by a function which works like the Esc + a + ESC
I don't know that I can. The thing is I don't really understand when/how the conversion is made. For example, this doesn't work, but it is immediately converted if you start editing the output cell: CellPrint@Cell[RowBox@{StringJoin[{"\[AliasDelimiter]", "a", "\[AliasDelimiter]"}]}, "Input"]; from this I thought the input had to be interactive but as I said NotebookWrite is a nice work-around. I don't know how to use that without actually generating output though, which I see as undesirable.
2d
comment How to generate characters by a function which works like the Esc + a + ESC
Interesting work-around. I wonder if I can improve this...
2d
comment Generating partitions of a set with a specified size of the parts
@user6818 since Rojo's code is doing what you need I'm going to close this question with a link to that one, to keep things organized. I too found Rojo's function hard to understand at first, not the syntax but the underlying algorithm. He explained it here. If you have question about the syntax ask focused questions in the main chat room.. BTW, F1 will bring up help for the token at the location of the cursor, and see mathematica.stackexchange.com/a/3146/121
2d
revised How to generate characters by a function which works like the Esc + a + ESC
edited tags
May
16
comment Unexpected behavior of Unevaluated
Sorry, no chat today. (Maybe in about sixteen hours.)
May
16
comment How to combine SparseArray and If
@Mencia I specifically didn't attempt to implement your program as I am tired, don't feel like it, and would probably make a mistake anyway. I'm hoping someone else responds. If they do not in a day, leave a new comment and I'll take a shot at an "elegant" implementation.
May
16
comment Write a function that returns the logarithmic derivative
@Artes that would only discourage them from Accepting answers at all, which we really don't want. Better (IMHO) are the gentle reminders I've often made to wait a day for best exposure.
May
16
revised How to generate characters by a function which works like the Esc + a + ESC
deleted 59 characters in body
May
16
comment Unexpected behavior of Unevaluated
Jacob, towards and answer to what? I'm still not sure what you're asking. I really wish I could be more help but with several of your questions now I can't quite grasp the idea.
May
16
comment How to combine SparseArray and If
@Mencia you just need to put them in a list: SparseArray[{{i_, j_} /; i == j -> -2, {i_, j_} /; Abs[i - j] == 1 -> 1, {i_, j_} /; i != j && j == 5 :> i + j}, {10, 10}] // MatrixForm
May
16
comment Write a function that returns the logarithmic derivative
If you can predict that ahead of time you understand this site better than I do.
May
16
comment How to generate characters by a function which works like the Esc + a + ESC
@HyperGroups I'm glad this helps you. If you use the bigtable you should probably hit it with Dispatch for best performance.