Unanswered arange

  • 26. října 2011 13:15
     
     

    is there an arange() function equivalent in sho, that is, a range() function that excepts not only int but float as inputs?

Všechny reakce

  • 8. listopadu 2011 0:04
     
      Obsahuje kód
    >>> y = DoubleArray.From(drange(2, 3, 0.2))
    >>> y
    [ 2.0000  2.2000  2.4000  2.6000  2.8000  3.0000]

    Make sure you check the Book of Sho also.