102,856 reputation
16181432
bio website
location Oregon, USA
age
visits member for 2 years, 6 months
seen 14 mins 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



10m
reviewed Leave Open Why does Fourier give a shifted frequency?
13m
reviewed Close Choose location of axes using plot3D
1h
revised What bug fixes can be implemented in init.m?
added 153 characters in body
1h
revised What bug fixes can be implemented in init.m?
added 277 characters in body
1h
revised BitShiftRight produces incorrect results in Version 10
added 286 characters in body
2h
answered BitShiftRight produces incorrect results in Version 10
2h
revised BitShiftRight produces incorrect results in Version 10
edited tags
2h
comment BitShiftRight produces incorrect results in Version 10
That's a surprising bug. Compact example: v = Range[100001]; a = BitShiftRight[v[[;; 10]]]; b = BitShiftRight[v][[;; 10]]; a == b is False.
5h
comment Restarting Mathematica causes an animation to fail to run
I propose that we close this question as a duplicate of 11705 as I doubt the first question applied to a broad audience. +1 for the answer however.
5h
revised Restarting Mathematica causes an animation to fail to run
deleted 60 characters in body
5h
comment Programming - The linear iterative method problems
I suggest you describe the algorithm you wish to implement rather than posting broken code. I doubt it is worth the trouble to debug it.
5h
revised Programming - The linear iterative method problems
edited tags; edited tags
5h
comment Best practice to group and have your favorite custom functions available at startup
Beyond the basic instruction to put them in a package and loading it at startup I fear this is entirely opinion-based and not appropriate for this site. I therefore intend to close this soon unless someone makes a compelling case to keep this open.
6h
comment Plot groups based on unique tag
@brama Thanks, and you're welcome.
8h
comment Make a text with a transparent background in Graphics
I cannot reproduce this problem. What version of Mathematica and which operating system are you using?
8h
comment Minimum and maximum values under conditions
@Vaggelis_Z If it is the use of Alternatives that you like consider: {Min@#, Max@#} & @ Pick[#6, #5, 1 | 2] & @@ (data\[Transpose])
8h
comment Minimum and maximum values under conditions
@Vaggelis_Z My point is that this is not efficiently written. Select is part of the function that is mapped to {Max,Min} therefor the selection is run twice. Worse, the selection function is not focused on the fifth column: it is checking for a 1 or 2 anywhere in the sublist. While for the given example this does not change the result it is hardly correct.
8h
comment Minimum and maximum values under conditions
@sebhofer It seems the transpose is costly because the data is not packed. Thread is actually faster in this case, but it doesn't match Part. With packed data such as data = RandomReal[{-2, 2}, {1*^6, 6}]; my code is still slightly faster than yours. :^)
9h
comment Minimum and maximum values under conditions
@sebhofer I can confirm that it is faster, and I'm not too surprised. Nevertheless like using Transpose as it lets me address columns with simply #5 or #6 which IMO make things much nicer to read. By the way you already had my vote. :-)
10h
comment Minimum and maximum values under conditions
@Vaggelis_Z I suggest you use a different method. This code performs the same selection redundantly, once for Max and once for Min.