Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 25 Online
OpenStudy (anonymous):

So can someone please explain a simplified version of the Newton/Raphson code.? Thanks in advance. Take care.

OpenStudy (primeralph):

What Lang?

OpenStudy (primeralph):

@siddhantk3m8

OpenStudy (anonymous):

it is used to find roots of a continuous function (y = 0) - pick a value for x - and find the value of the function at that x (y = f(x)) - if f(x) is close enuf, stop and return x - if not - find the slope at that point (x, f(x)) - find where the line that is tangent to the point crosses the x axis (y = 0) - repeat the previous with this new x there is a pretty good animation in the wikipedia article https://en.wikipedia.org/wiki/File:NewtonIteration_Ani.gif

OpenStudy (e.mccormick):

@primeralph Since they are in 6.00, you can generally assume Python. If wrong, they should not have posted in a Python based class' area. =)

OpenStudy (anonymous):

yes people, it is PYTHON. What else language is specified in 6.00

OpenStudy (anonymous):

Thanks @bwCA. looks pretty simple there.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!