Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

math domain error python

The ValueError: math domain error 
is raised when you perform a mathematical function on a negative 
or zero number which cannot be computed.

To solve this error, make sure you are using a valid number 
for the mathematical function you are using.

Most common from using the sqrt() method and the log() method.
Use a if else or try except to circumvent it
Source by careerkarma.com #
 
PREVIOUS NEXT
Tagged: #math #domain #error #python
ADD COMMENT
Topic
Name
9+6 =