mirror of
https://github.com/davrot/pytutorial.git
synced 2025-04-16 12:16:42 +02:00
Create README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
124c1ad677
commit
d74df5d3f0
1 changed files with 36 additions and 0 deletions
36
numpy/numerical_ranges/README.md
Normal file
36
numpy/numerical_ranges/README.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Making a matrix from numerical ranges
|
||||
{:.no_toc}
|
||||
|
||||
<nav markdown="1" class="toc-class">
|
||||
* TOC
|
||||
{:toc}
|
||||
</nav>
|
||||
|
||||
## The goal
|
||||
|
||||
Making a matrix from numerical ranges...
|
||||
|
||||
Questions to [David Rotermund](mailto:davrot@uni-bremen.de)
|
||||
|
||||
## [numpy.arange](https://numpy.org/doc/stable/reference/generated/numpy.arange.html)
|
||||
|
||||
|
||||
```python
|
||||
numpy.arange([start, ]stop, [step, ]dtype=None, *, like=None)
|
||||
```
|
||||
|
||||
> Return evenly spaced values within a given interval.
|
||||
>
|
||||
> arange can be called with a varying number of positional arguments:
|
||||
>
|
||||
> **arange(stop)** : Values are generated within the half-open interval [0, stop) (in other words, the interval including start but excluding stop).
|
||||
>
|
||||
> **arange(start, stop)** : Values are generated within the half-open interval [start, stop).
|
||||
>
|
||||
> **arange(start, stop, step)** Values are generated within the half-open interval [start, stop), with spacing between values given by step.
|
||||
>
|
||||
> For integer arguments the function is roughly equivalent to the Python built-in range, but returns an ndarray rather than a range instance.
|
||||
>
|
||||
> **When using a non-integer step, such as 0.1, it is often better to use numpy.linspace.**
|
||||
>
|
||||
>
|
Loading…
Add table
Reference in a new issue