Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

K-th Root Calculator

This C program calculates the k-th root of a number ( x ) with specified precision ( e ). Developed during my programming course, the program implements the Newton-Raphson method to find the root.

Features

  • Input the number ( x ) for which you want to find the root.
  • Specify the index ( k ) of the root (e.g., 2 for square root, 3 for cube root).
  • Set the desired precision ( e ).
  • Validate inputs to ensure valid calculations.

Technologies Used

  • C programming language

Getting Started

To compile and run the program, follow these steps:

  1. Clone the ropository:
git clone https://github.com/NVDIV/RootCalculator.git
  1. Navigate to the project directory:
cd RootCalculator
  1. Compile the program:
gcc -o root root.c
  1. Run the program:
./root

How to Use

Enter the value of x (the number to find the root of). Enter the value of k (the index of the root). Enter the precision e (in the format of 0.001). The program will calculate and display the k-th root of the number.

Contact

If you’d like to reach out, feel free to connect with me:

Thanks for visiting!

About

This repository contains a C program that calculates the k-th root of a number using the Newton-Raphson method. The program allows users to input a number, the index of the root, and the desired precision for the calculation.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages