Squareroot

1) squareroot_check

squareroot example

If the number passes all the parameter then it can be a perfect square.

Implementation:

import vedicpy as vedic

a= vedic.squareroot.squareroot_check(144)
print(a)
print(type(a))
>>> True
>>> <class 'bool'>

This function returns a boolean value.

2) perfect_sqrt_under_sqof100

squareroot example squareroot example

Implementation:

import vedicpy as vedic

a= vedic.squareroot.perfect_sqrt_under_sqof100(144)
print(a)
>>> 12

Vedic Mathematics doesn’t provide a way to square root accurately. So, if it says that the number is a perfect square there is still some chance that it is not.