Here is a problem maybe somebody can help with (reported on sage-support)

A complex number in an arithmetic operation with a numpy float gives a
wrong answer ... i.e. the complex part is dropped.

import numpy as np
1j / np.float64(2)

gives 0.0

1j + np.float64(2)

gives 2.0

It works with float32/float though:

1j + np.float32(2)

(2+1j)

Harald

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to