MCPcopy Create free account
hub / github.com/numpy/numpy / test_complex

Method test_complex

numpy/core/tests/test_function_base.py:343–349  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

341 assert_equal(t5, t2.T)
342
343 def test_complex(self):
344 lim1 = linspace(1 + 2j, 3 + 4j, 5)
345 t1 = array([1.0+2.j, 1.5+2.5j, 2.0+3j, 2.5+3.5j, 3.0+4j])
346 lim2 = linspace(1j, 10, 5)
347 t2 = array([0.0+1.j, 2.5+0.75j, 5.0+0.5j, 7.5+0.25j, 10.0+0j])
348 assert_equal(lim1, t1)
349 assert_equal(lim2, t2)
350
351 def test_physical_quantities(self):
352 a = PhysicalQuantity(0.0)

Callers

nothing calls this directly

Calls 3

linspaceFunction · 0.90
arrayFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected