Languages
[Edit]
EN

Python - math.sqrt() method example

0 points
Created by:
Dale-K1
417

math.sqrt is a method that returns a number which is the square root of input value. The method works only on positive real numbers.


1. Documentation

Edit
Syntax
Parametersx - number to find the square of. Value in the range 0 to infinity.
Result

Square root number value in range 0 to infinity.

If the operation can not be executed ValueError is returned.

Descriptionsqrt is a method that returns a number which is square root of input value. The method works only on positive real numbers.

2. Square root with math.pow method examples

Edit

In this example, the way how to calculate square root using power function is presented. 

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Python - math module

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join