Skip to content

A Python tool for calculating the sum of squares of integers, useful for mathematical computations and analysis.

License

Notifications You must be signed in to change notification settings

Abhrankan-Chakrabarti/sum-of-squares-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Sum of Squares Calculator

This repository contains a simple Python script for calculating the sum of squares of consecutive integers. The script takes an input value n and computes the sum of the squares of the first n natural numbers.

Usage

To use the calculator, clone the repository to your local machine and run the Python script sum_of_squares.py with the desired value of n as an argument.

git clone https://github.com/Abhrankan-Chakrabarti/sum-of-squares-calculator.git
cd sum-of-squares-calculator
python sum_of_squares.py n

Replace n with the desired number of consecutive integers.

Example

For example, to calculate the sum of squares of the first 5 natural numbers, run:

python sum_of_squares.py 5

The script will output:

The sum of the squares of the first 5 natural numbers is: 55

Contributing

If you have ideas for improving the calculator or want to report a bug, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A Python tool for calculating the sum of squares of integers, useful for mathematical computations and analysis.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages