ValueError: math domain error

Hi all, Why do I get a math domain error if I import scipy

    > before pylab in cdiff.py (see attachment) ?

Hi Nils,

It helps to try and reduce your error to a minimal example that
exposes the bug. That will save my time and help you find the real
cause of the bug. If you had done this, you would have seen that the
problem is in the Numeric call to sqrt of a negative number, and does
not involve matplotlib or scipy

    from Numeric import sqrt, sin, cos
    z = 2.5
    print 'arg is negative', sin(z)**3+cos(z)**3
    print 'this will fail', sqrt(sin(z)**3+cos(z)**3)

numarray would return nan.

JDH