Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Fortran Assignment, in need of help please!!

Fortran Assignment, in need of help please!!

Fortran Assignment, in need of help please!!


The Newton method is used to determine the value of x that makes |f(x)| < t0≈0. The value of x is determined from the following formula, where x0 is the initial guess:
xn+1 = xn - (f(xn)/f'(xn)) n=0,1,2,...

In this equation, the prime denotes the derivative with respect to x.The value of n is a function of the tolerance, which is a very small value, and the choice of x0. Write a FORTRAN script that obtains the value of x when
f(x)=cos(x) + sin(x)
f'(x)= -sin(x) + cos(x)

and when x0=1.5 and t0<10-8. Have the output of the program displayed to the Console the various quantities as shown below.

At x = 2.35619450,f(x)= 6.0407994966881623E-009 after 4 iterations

RE: Fortran Assignment, in need of help please!!

What have you done so far and what are you stuck at?

RE: Fortran Assignment, in need of help please!!

Honestly, I have not started this one. I really do not know how to implement what was given and such. I do understand that a do while loop is required such as:

do while (abs(x)<0) ... something like that.

RE: Fortran Assignment, in need of help please!!

Here is the Newton's Method with pseudocode.
First you need to understand how the method works, only then you can start with programming.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close