Skip to main content

sqrt(2)

Project description

SquareRoot2Py

https://www.youtube.com/watch?v=ktRwfBMV4S8

The SquareRoot2Py package aims to remove the hassle of computing the square root of 2.

Features

  • computing the square root of 2
  • up to 16 decimal places of precision
  • cross-platform support
  • O(1) algorithm
  • clear and concise naming

Installation

pip install SquareRoot2Py

Examples

To compute the square root of 2 easily:

import SquareRoot2Py
print(SquareRoot2Py.compute_square_root_of_2())

If you would like to round the result:

import SquareRoot2Py.RoundedSquareRoot2Py
print(RoundedSquareRoot2Py.compute_rounded_square_root_of_2())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

squareroot2py-2.0.1.tar.gz (38.3 kB view hashes)

Uploaded Source

Built Distribution

SquareRoot2Py-2.0.1-py3-none-any.whl (27.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page