Lec 6 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
45,150
Loading...
Alert icon
Sign in or sign up now!
Alert icon
There is no Interactive Transcript.

Uploaded by on Aug 19, 2009

Lecture 6: Bisection methods, Newton/Raphson, introduction to lists

Instructors: Prof. Eric Grimson, Prof. John Guttag

View the complete course at: http://ocw.mit.edu/6-00F08

License: Creative Commons BY-NC-SA
More information at http://ocw.mit.edu/terms
More courses at http://ocw.mit.edu

  • likes, 3 dislikes

Link to this comment:

Share to:

Top Comments

  • Python

  • The 'incorrect' square root wasn't a precision error, it was a typo. The program printed out that it taking the square root of 123456789 for both of them, but it was actually taking the square root of 1234567890 for the first one.

see all

All Comments (41)

Sign In or Sign Up now to post a comment!
  • well it apears asthough youtube thinks im trying to hack so i cant post the code

  • @MIT i am using 2.7.2 and (as far as i can tell) i copied this exact equation but if i typed in sqrtbi(9, 0.0001) my result was 2.25, then i typed in sqrtbi(25, 0.0001) my result 6.25... can some one examine my copied program and tell me what mistake i have maid?

  • Correction: the babylonians devised the method ascribed here to Newton-Rhapson, although it was only for the particular case of finding square-roots

  • @prithudak1 thank you for trying to explain although honestly I didn't quite understand the use of n. However, as you recommended, Wikipedia did help me solve it! so thanks again :)

  • Using Newtonian equation

    a slope of tangent can be shown as dy/dx

    dy is equal to f[x(n] - 0

    dx can be represent as [x(n+1) - x(n)]

    now use the algebra to get the value of x(n+1)

    for more explanation search newton's tangent method in Wikipedia

  • Does any one know how we get guessi+1 = (guessi-F(guessi))/2*guessi ? Thanks

  • I'll be a genius in programming after I finish watching his lectures.

  • Thumbs up for the Macbook bashing at 26:10.

  • @a00225186 It's a class designed for total beginners at programming, it gets more interesting when you get to more advanced topics.

  • dunno. cuz u want candy?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more