(self)
| 162 | assert_equal(y[0], start) |
| 163 | |
| 164 | def test_nan_interior(self): |
| 165 | with errstate(invalid='ignore'): |
| 166 | y = geomspace(-3, 3, num=4) |
| 167 | |
| 168 | assert_equal(y[0], -3.0) |
| 169 | assert_(isnan(y[1:-1]).all()) |
| 170 | assert_equal(y[3], 3.0) |
| 171 | |
| 172 | with errstate(invalid='ignore'): |
| 173 | y = geomspace(-3, 3, num=4, endpoint=False) |
| 174 | |
| 175 | assert_equal(y[0], -3.0) |
| 176 | assert_(isnan(y[1:]).all()) |
| 177 | |
| 178 | def test_complex(self): |
| 179 | # Purely imaginary |