Skip to content

romy-dev-hub/fixed-point-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Fixed Point Calculator

๐Ÿ”ข Overview

The Fixed Point Calculator is a mathematical tool that finds the root of a function using the fixed-point iteration method. Given an initial guess and a function g(x), it iteratively applies g(x) to approximate the root.

๐Ÿ› ๏ธ Features

  • User Input for Function: Enter mathematical functions like sin(x), cos(x), ln(x), etc.
  • Initial Guess Selection: Define the starting point for iteration.
  • Tolerance Control: Set the precision for stopping the iteration.
  • Iteration Count: Displays the number of iterations needed to approximate the root.
  • User-Friendly Interface: Simple and interactive UI.

๐Ÿ“ Project Structure

๐Ÿ“ฆ fixed-point-calculator
โ”ฃ ๐Ÿ“œ index.html  # UI structure
โ”ฃ ๐Ÿ“œ style.css   # Styling for the calculator
โ”ฃ ๐Ÿ“œ index.js   # JavaScript logic for fixed-point iteration

๐Ÿš€ How to Use

  1. Enter a Function: Example: cos(x) (for solving x = cos(x)).
  2. Provide an Initial Guess: Choose a starting value for x.
  3. Set a Tolerance: Adjust precision (default is 0.000001).
  4. Click Calculate: Get the approximate root and iteration count.

๐Ÿ”ง Technologies Used

  • HTML5 - Structure of the web page.
  • CSS3 - Styling for a clean UI.
  • JavaScript - Implements the fixed-point iteration method.

๐Ÿ“Œ Future Enhancements

  • Support for more complex mathematical expressions.
  • Graphical representation of the iteration process.
  • Improved error handling for divergence cases.
  • Dark mode option.

๐Ÿ“ž Contact

For any questions or contributions, feel free to reach out! => roumaissa.hadibi.dev@gmail.com


๐Ÿ“Š Solve equations with ease! ๐Ÿงฎ

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published