News for hackers. Stuff that matters.
Re:Factorization diagrams in Haskell by walrus on Saturday October 06, 2012 @06:32AM (#4620233)
Install dependencies:

  cabal install arithmoi
  cabal install diagrams
Copy all the code from the blog post into a file (let's call it factor.hs). At the end of that file, add:

  main = defaultMain $ factorDiagram YOUR_NUMBER
Then run:

  runhaskell factor.hs -o image.png -w 400
Re:Factorization diagrams in Haskell by walrus on Saturday October 06, 2012 @06:47AM (#4620249)
By the way, here are the first 2263 diagrams: http://jumpshare.com/v/R7nRxZ?b=27itKy. It's a renamed bzipped tar. Extract with:

  tar xjf factors.mp3
It extracts to a directory named 'factors' to about 30 mb total.
Re:Factorization diagrams in Haskell by jrockway on Sunday October 07, 2012 @12:12AM (#4622572)
I like how you have to pretend you're sharing music when you just want to show the Internet the output of your mathematical computations. What a world.