Math Idea – Histogram Of Functions

Had a little bit of fun making histograms of functions and not just random data.

This is what hist(f(x)) looks like where f(x) = sin(x) + sin(2x) and x goes from 0 to 2 pi.

histoffunctions2