Question
1. Create an application (at Fortran language) according to the principles of object-oriented programming for the bisection method. Gradually build your application, which will include
1. Create an application (at Fortran language) according to the principles of object-oriented programming for the bisection method. Gradually build your application, which will include a module and the main program. Specifically, make: a. A retrospective process for the bisection method. The function whose root we find (use f(X) = x+cos x), should be transferred as a parameter of the definition of the bisection process. B. Then make a class that contains three properties (xa, xb , errmax) corresponding to the bisection limits and the accuracy of finding the root of the equation.The class also contains the following methods:i. The function of which we find the root ii. The process of bifurcation iii. A process with a logical result that checks if there is a root of the function in [xa, xb]. iv. A process of initializing objects in the class. v. Optionally, a process for printing class objects. c. Finally assign operations ii and iii to the .bis operators. and .chk. respectively and use them where needed. In the final form the only public elements should be the class, the operators, the methods that do not correspond to operators and the parameter for determining the accuracy of the data representation.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started