106,572 reputation
16190447
bio website
location Oregon, USA
age
visits member for 2 years, 7 months
seen 3 hours ago

Version 10 empowered!


(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



3h
comment Account for powers of 0 and 1 when defining function
Your method looks fine. I was taking a different approach but I don't think it would be useful to the OP as there were unresolved issues, which your choice of literal x and p better addressed.
5h
comment Account for powers of 0 and 1 when defining function
Also I note that you are using literal x and p in your function whereas by my interpretation of the question these are arbitrary symbols or expressions.
5h
comment Account for powers of 0 and 1 when defining function
I was about to post an answer using Optional. You win this time. However, you do not need to use e.g. (m_: 1) as m_. will do since 1 is the default value for Power. This significantly streamlines your code. See: (51585)
5h
comment How to sort the functions in a Package?
Actually I think my first solution is so inferior that if/when you confirm that the second solution works for you I shall remove the first, as my answer is unnecessarily long.
5h
comment How to write plain Greek in a text cell
Related for version 10: (54721)
5h
comment How to sort the functions in a Package?
Thanks for the Accept. Please see my updated answer for what I feel is a much better solution than the first one I posted.
10h
comment Proving the hairy ball theorem using xAct
Note: someone flagged the comment above as rude. It is not. It is a humorous reply to a comment of my own which I later deleted. I'll delete both this and it soon but I don't want anyone thinking that Daniel was being rude.
10h
comment Why does this integral have a complex component?
Related: (57377)
10h
comment Shortcut for result before previous result?
Be aware that $HistoryLength with determine how long the Out values persist; many users including me use a limited $HistoryLength to conserve memory.
11h
comment Plot range of a 2-dimensional function as a function depending on one variable
@Santi This is pretty much what I did but using alternative functions. I chose If because it's terse and as just about everyone here knows I like that. IntervalMemberQ takes the place of Cos[#] <= x <= 0 || 0 <= x <= Cos[#] in mine.
11h
comment Plot range of a 2-dimensional function as a function depending on one variable
@Santi You're welcome. kguler already posted the calculated bounds method in his answer so I won't duplicate that.
11h
comment How do I speed up a plotting of NIntegrate when repeated multiple times inside Plot?
Nice. I was struggling with the second term when you posted this.
12h
comment Mapping data on Archimedes' spiral
Somewhat related: (655857)
12h
comment Density plot of city data
Is ListDensityPlot really what you mean to use? It sounds nothing like the description "I want define line (or vector) between some geographical points with weights." Have you looked at Graph? Is this something like what you want?: (6440)
14h
comment Converting a string into a nested list of strings
Finally I see what you were getting at. +1 However this isn't apparently what the OP wants (see comments).
14h
comment Converting a string into a nested list of strings
@hieron I'm trying to understand how that is applicable to the problem at hand; are you suggesting using that as part of StringReplace or something else?
14h
comment Converting a string into a nested list of strings
@hieron What are you proposing?
15h
comment Converting a string into a nested list of strings
Regarding the note I'm afraid "valid Wolfram Language" is the expectation, but I'm going to keep calling it Mathematica for the time being.
15h
comment “Indexing” a vector
Thanks for the Accept! You should revisit this in a future release as I expect ArrayComponents will eventually be upgraded to be superior (or at least I hope so).
15h
comment “Indexing” a vector
Unfortunately this scales very poorly due to the clustering overhead: BenchmarkPlot[{ArrayComponents, ClusteringComponents[#, Length@# + 1] &}, RandomInteger[#, 5 #] &, 2^Range[3, 20], "IncludeFits" -> True, ImageSize -> 600] yields i.stack.imgur.com/u5SOg.png