PythonQ 240-8XX Bedienungsanleitung Seite 10

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 37
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 9
c
! www.simula.no/˜hpl
Warning: arange is dangerous
arange’s upper limit may or may not be included (due to round-off
errors)
Better to use a safer method: seq(start, stop, increment)
>>> from scitools.numpyutils import seq
>>> x = seq(-5, 5, 1)
>>> print x # upper limit always included
[-5. -4. -3. -2. -1. 0. 1. 2. 3. 4. 5.]
The package scitools is available at
http://code.google.com/p/scitools/
Numerical Python – p. 244/728
Seitenansicht 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 ... 36 37

Kommentare zu diesen Handbüchern

Keine Kommentare