Giter Club home page Giter Club logo

newton-rfa's Introduction

Root Finding using Newton Raphson Method

This repository contains a C++ program that utilizes Newton's method as a root-finding algorithm to determine the earliest time at which the force acting on a robot becomes zero.

Problem Statement

For the robot to perform its natural task, it needs to counteract a specific force. To achieve this, it is necessary to find the earliest time at which the force acting on the robot becomes null. The Newton's method, a root-finding algorithm, proves to be effective in predicting successive approximations of time for the given time-varying force. To improve the accuracy of these approximations, the convergence criteria can be adjusted.

Features

  • Implements Newton's method as a root-finding algorithm
  • Utilizes a polymorphic function wrapper to enable the passing of different functions and their derivatives as parameters when creating objects of a class
  • Provides a flexible approach to handle various force scenarios

Getting Started

Follow the steps below to get started with this program:

  1. Clone the repository:
git clone https://github.com/ShobhitManiar/Newton-RFA.git
  1. Change into the project directory:
cd Newton-RFA
  1. Compile and run the program:
g++ main.cpp -o main
./main

Usage

To use this program, you can modify the code to provide your specific force scenario. By adjusting the convergence criteria and implementing the appropriate function and its derivative, you can accurately find the earliest time at which the force acting on the robot becomes zero.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or create a pull request in this repository.

License

This project is licensed under the MIT License. You are free to use, modify, and distribute this code as per the terms of this license.

Thank you for your interest in this project. If you have any questions or need further assistance, please feel free to contact us.

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.