Live data from Hacker News

Wolfram Alpha: {y = Re(sqrt(abs(x)(1-abs(x)))), y = Re(-sqrt(1-sqrt(abs(x))))}

wolframalpha.com

1–10 of 35 posts

Re: Wolfram Alpha: {y = Re(sqrt(abs(x)(1-abs(x)))), y = Re(-sqrt(1-sqrt(abs(x))))}

#7
I arrived at these equations in 2014 when I plotted a heart using Matplotlib for my girlfriend (now my wife). The code and output is available here: https://github.com/susam/heart/. Some of the Matplotlib defaults have changed since then. With the current version of Matplotlib, the following code would produce good results: https://gist.github.com/susam/2a7e38ba632c4a2780fad421d1ca5f....

Today, I thought of sharing a WolframAlpha link to this plot here on Hacker News. I am glad you all liked it! :-)

By the way, I've explained these equations step-by-step along with graph plots for every step in this 6 year old Reddit thread: https://www.reddit.com/comments/1xwuv3/math/cffeykn/.

Post reply on HN