3 ms·
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
by walrus 14y ago
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
- walrus 14y agoBy the way, here are the first 2263 diagrams: http://jumpshare.com/v/R7nRxZ?b=27itKy 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.
- jrockway 14y agoI 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.