1 / 10

Example of Fortran Use

Example of Fortran Use. Derivative , Integral and others. Andrzej Bartkowski (236584). Sieve of Eratosthenes. First we need to create array of N elements and fill it with zeros ( or false )

doctor
Télécharger la présentation

Example of Fortran Use

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Example of Fortran Use Derivative,Integral and others Andrzej Bartkowski (236584)

  2. Sieveof Eratosthenes First we need to createarray of N elements and fillit with zeros (orfalse) Next we need to do loop from i=2 to i= . In thisLoop We need to createanother one to removemuliplenumbers to changeit to ones. Last We need to printnumberswhere element of arraysarezeros

  3. Sieve of Eratosthenes - Code

  4. Derivative Mathematic formula: Two-Pointednumericalmethod: Three-Pointednumericalmethod

  5. Derivative - code

  6. Derivative - plot Compare 2P and 3P for H=0.001 for polymal

  7. Derivative - conclusion • Three Pointedmethodis much morebetterthanTwopointedmethodIf we use big h. WhenH issmallerthan 0.001 the difrenceissmaller. • Both methodsaredepends of H. Somtemies 2P isenoughtsometimesnote

  8. NumericalIntegrate • Trapezemethod • Rectanglemethod

  9. NumericalIntegrate - Code

  10. THE END

More Related