CS 380 Clojure Programming Assignment 3

Assignment date: 13 November 2017

Due date: 29 November 2017

Implement the following function:

(sqrt n epsilon guess)
Compute the square root of the positive number n using Newton's method. That is, with guess as your initial approximation, keep computing new approximations by computing the average of your approximation and n/approximation. Continue until the difference between the two most recent approximations is less than epsilon. I want your solution to use iterate and partial as discussed in class.

You should hand in a printout of a single well-documented file containing all of the code required to run the system. You should also upload your Lisp file. When I receive your printout, I will find your uploaded file and grade your assignment. By default the "ontime-ness" of an assignment is defined by the timestamp on the uploaded file.

Recall that as part of the writing-enhanced nature of this course, I will be carefully evaluating both the functionality of your code as well as its clarity, organization, presentation and style.