Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  Square root algorithm (mike h)


----------------------------------------------------------------------

Message: 1
Date: Sun, 3 Sep 2017 09:22:59 +0100
From: mike h <mike_k_hough...@yahoo.co.uk>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <beginners@haskell.org>
Subject: [Haskell-beginners] Square root algorithm
Message-ID: <79f5b2ad-59ed-47ad-a531-90cc3ce83...@yahoo.co.uk>
Content-Type: text/plain; charset="utf-8"

Hi,

To help me in learning Haskell I started blogging about some of the things I’ve 
looked at. 
One such topic was calculating square roots ‘by hand’ and then deriving a 
Haskell algorithm. 
I wrote about the well known  technique here
http://gitcommit.co.uk/2017/08/25/the-root-of-the-problem-part-1/ 
<http://gitcommit.co.uk/2017/08/25/the-root-of-the-problem-part-1/>

and it it is really quite a simple method. 

The second part of the post will be an implementation in Haskell. 

I then tried implementing it  and got something that works but really its not 
very pleasant to look at! And its something I don’t want to post! Some parts 
are fine but I think I locked myself into the notion that it had to be using 
State and  really the end result is pretty poor. 

I know this i perhaps a ‘big ask’ but I’d really appreciate any suggestions, 
solutions, hints etc. I will of course give full attribution. 

I’ve created a gist of the code here
https://gist.github.com/banditpig <https://gist.github.com/banditpig>

Many Thanks

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20170903/d2b15dd6/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 111, Issue 3
*****************************************

Reply via email to