Class Notes (839,150)
Canada (511,218)
CSC148H1 (92)

Exercise 1 A answers These are the answers for part A of the first exercise for study purposes. This is the way i did them so i'm sure there are other ways that are possibly better than mine but these are correct. ***Attached in PDF format because stud

1 Page

Computer Science
Course Code
Steve Engels

This preview shows half of the first page. Sign up to view the full page of the document.
def squarerootx eps Returns the approximate square root of the number x to the precision eps Returns 1 if the right amount of precision was not obtained in 10 triescounter0thisguess10nextguess00previousguess10while
More Less
Unlock Document

Only half of the first page are available for preview. Some parts have been intentionally blurred.

Unlock Document
You're Reading a Preview

Unlock to view full version

Unlock Document

Log In


Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.