91,236 reputation
15157392
bio website
location Oregon, USA
age
visits member for 2 years, 3 months
seen 1 hour ago

Happy New Year!


(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


"ListContourPlot crush on simple 5-points data" (Question title)

"Yes, this must be love at first sight."ruebenko


... but I am working with a large body of code written by an incompetent fool (i.e. myself, several years ago...) – Simon Woods


I was tempted to edit your title: "Do rules rule?" But my nose is still bleeding as a result of a limerick. – belisarius



Mar
18
comment Iterate until condition is met
By the way, what does the "s" stand for? Slothful? :^)
Mar
18
revised Iterate until condition is met
added 27 characters in body
Mar
18
comment Functional style using lazy lists?
I hadn't seen this post until today. I haven't tested it yet but I commend the effort!
Mar
18
comment Iterate until condition is met
Shiny. I need to make better use of those constructs. +1
Mar
18
revised Iterate until condition is met
added 6 characters in body
Mar
18
revised Iterate until condition is met
added 4 characters in body
Mar
18
comment Iterate until condition is met
@gpap Linked lists are faster than AppendTo, yet provide the option of viewing intermediate results (unlike Sow). See the bottom of this page for a reference. Faster is Sow/Reap. The ultimate solution is Internal`Bag and friends, which is slightly faster than Sow/Reap and yet makes it possible to view results, but I didn't think that level of optimization was needed here.
Mar
18
answered Iterate until condition is met
Mar
18
comment Iterate until condition is met
@IstvánZachar Fast? I just spent 45 minutes writing what is really a very simple answer.
Mar
18
answered Iterate until condition is met
Mar
18
comment Iterate until condition is met
Please don't be so hasty to Accept answers. I am working on one now and it is a discouragement to see an Accept given before I even have a chance to finish.
Mar
18
comment How to only work on sublists with non-zero (or positive) values
@geordie as a simple patch for this method you could use 100 x Clip[t^(1 - 2 Sign@t), {0, \[Infinity]}] but that's not too elegant. I'm still thinking about the best way to handle/filter negative values in general.
Mar
18
comment How to only work on sublists with non-zero (or positive) values
@geordie okay, let me think about that
Mar
18
comment How to only work on sublists with non-zero (or positive) values
@geordie hm... I had invalid code in my answer; sorry!
Mar
18
revised How to only work on sublists with non-zero (or positive) values
deleted 6 characters in body
Mar
18
comment How to only work on sublists with non-zero (or positive) values
@geordie Negative numbers in the totals you mean?
Mar
18
comment Remove elements at certain positions from all sub-lists?
@Leonid True, however I thought clarity might be better for this answer, and f2 is the higher performance method anyway.
Mar
18
comment Remove elements at certain positions from all sub-lists?
While you're using Transpose how about Delete[list\[Transpose], {elementNo}\[Transpose]]\[Transpose]? Looks great in the Notebook. :-)
Mar
18
comment How can I imitate the style of a certain 3D bar chart?
That was a bit of work! +1
Mar
18
revised How can I imitate the style of a certain 3D bar chart?
added 86 characters in body