Skip to content

A Haskell library for performing the Pythagorean Theorem

License

Notifications You must be signed in to change notification settings

Cortlandd/Pythagoras-HS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pythagoras

Pythagoras is a small Haskell library for calculating the lengths of a triangle using the PYthagorean Theorem

If you would like to learn how Pythagoras was built or how to build a small Haskell Library? I made a tutorial. It's at the PythagorasTutorial.md

Usage

Prelude> solveForB 9 15
12.0

Features I hope to add

Prelude> verboseSolveForB 9 15
a^2 + b^2 = c2
9^2 + b^2 = 152
81 + b^2 = 225
b^2 = 144
b = sqrt 144
b = 12

A big thank you to the authors of Haskell Programming From First Principles, Chris Allen & Julie Moronuki. And my good friend Athan Clark. They have been tremendous factors in my learning Haskell. Also, a big shoutout to all the friends on twitter who assist and give feedback.

About

A Haskell library for performing the Pythagorean Theorem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published