Commit ae7b046b authored by Robert Bradshaw's avatar Robert Bradshaw

Add test for complex numpy arithmetic #1433.

parent c3f2d977
# tag: numpy
cimport numpy as np
def divide(np.float64_t x, np.complex128_t y):
"""
>>> divide(2, 1+1j)
(1-1j)
"""
return x / y
def pow(np.complex128_t x, np.complex128_t y):
"""
>>> pow(1 + 1j, 2j) # doctest: +ELLIPSIS
(0.1599...+0.1328...j)
"""
return x ** y
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment