Code Monkey home page Code Monkey logo

105torus's Introduction

105torus

Epitech Project, MATHS 105

Subject:

Drawing circles, cylinders and cones is a good point for a software generating synthesis images, but one have to admit it is not fully satisfying... This project is the continuation of the previous project, and should allow you to draw more complex forms, such as tores, which do not emerge from 2nd degree equations, but from superior degree equations (4th degree in the tore case).

The objective of this very project is to solve a 4th degree equation : a 4 x 4 + a 3 x 3 + a 2 x 2 + a 1 x + a 0 = 0. A direct resolution method does exist (the Ferrari’s method), but does not generalize. Thus, we will rather compare here 3 iteratives algorithms :

  1. bisection method,
  2. Newton’s method,
  3. secant method.

Usage:

∼/B-MAT-100> ./105torus opt a0 a1 a2 a3 a4 n opt number of the option : 1 for the bisection method, 2 for Newton’s method, 3 for the secant method a0 ,a1 ,a2 ,a3 ,a4 coefficients of the equation n precision (meaning the application of the polynomial to the solution should be smaller than 10 -n )

Example:

alt text

105torus's People

Stargazers

 avatar  avatar

Watchers

 avatar  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.