ValueError: math domain error
Why does math.log result in ValueError: math domain error? Question: I was just testing an example from Numerical Methods in Engineering with Python. from numpy import zeros, array from math import sin, log from newtonRaphson2 import * def f(x): f = zeros(len(x)) f[0] = sin(x[0]) + x[1]**2 + log(x[2]) – 7.0 f[1] = 3.0*x[0] + …