Git Product home page Git Product logo

fortran-third_exercise's Introduction

Fortran - Exercise 3

Third homework for Fortran university course focusing on Integration and coarrays in Fortran.

Project Structure

├── Rakefile
├── README.md
├── res
├── src
│   ├── interfaces.F90
│   └── main.f90
└── tester.sh

QuickSetup

$ git clone https://github.com/Vetchu/fortran-third_exercise
$ cd fortran-third_exercise
$ rake #to prepare binaries
$ bash tester.sh #to do test

Results

Results given here are of integration in interval [0.10] with 100 equal subintervals.

Rectangular Integration

x^2

333.32500496692955     

e^x

22016.291521461022     

sin(x)

1.8398380598531630     

Trapezoidal Integration###

x^2

 333.35000496730208     

e^x

 22043.817619749912     

sin(x)

1.8375387413629165     

Analytical Integration###

x^2

 1000/3

e^x

 22024

sin(x)

 1.839

Notes

To fully utilize coarrays power please use

$ cafrun -n imgNum ./main Mode ibeg iend subintervals function

Conclusion

Given such starting conditions, we see clear difference between two Integration styles, yet none proves to be better in all cases, yet overall Rectangular one appears to be the winner here (despite the theory).

fortran-third_exercise's People

Contributors

vetchu avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.