GithubHelp home page GithubHelp logo

oakati / secant-and-bisection-methods Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 823 KB

This project implements secant and bisection algorithms in order to solve f(x)=0 for any given polynomial f. This project was a part of EE 242 (Numerical Methods for EE) course.

License: GNU General Public License v3.0

C++ 100.00%

secant-and-bisection-methods's Introduction

EE-242-Project-3-Secant-and-Bisection-Methods

//Author: Ömer Alperen Katı //Date: 19/06/2020

This project implements secant and bisection algorithms in order to solve f(x)=0 for any given polynomial f.

HOW TO RUN THE PROGRAM USING CMD

-Firstly, press windows key on your keybord, write cmd and press enter to open command window. Then adjust the directory of cmd as where source.cpp is located.

-Secondly, if you are in the correct directory, write "g++ source.cpp -o source.exe" to generate .exe file, and press enter.

Example: C:\Users(!!username here!!)\Desktop\EE242_Project3>g++ source.cpp -o source.exe

-After that, write "source.exe c_n c_n-1 ... c_1 c_0 a b tol", and press enter to run the program. where c_ns are the line inputs of the coefficients of the polynomial, a and b are initial guesses for the interval of the root, tol is the tolerance value.

Example: C:\Users(!!username here!!)\Desktop\EE242_Project3>source.exe 2 2 -7 1 -7 1.5 1.8 0.001

for the polynomial of 2x^4 + 2x^3 - 7*x^2 + x - 7, the interval of [1.5,1.8], and the tolerance of 0.001

//Author: Ömer Alperen Katı //Date: 19/06/2020

secant-and-bisection-methods's People

Contributors

oakati avatar

Watchers

 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.