10000 linspace floats · Issue #7289 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
linspace floats #7289
Closed
Closed
@emilienkofman

Description

@emilienkofman

I'm not sure if it's a bug or intended behavior, but may it make sense to obtain the same result in the two following linspace examples?

Python 2.7.9 (default, Mar  1 2015, 12:57:24) 
[GCC 4.9.2] on linux2
>>> import numpy
>>> numpy.version.version
'1.12.0.dev0+bd905a8'
>>> numpy.linspace(2.0, 3.0, num=5)
array([ 2.  ,  2.25,  2.5 ,  2.75,  3.  ])
>>> numpy.linspace(2.0, 3.0, 0.25)
array([], dtype=float64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0