kangwonlee / kangwonlee/nmisp

10/10 `x_array` or `i in range()` ?

Open
#196 0 comments 0 reactions 0 assignees View on GitHub
pedagogy
Dominant language
Jupyter Notebook
Stars
12
Forks
76
PR merge metrics
No merged PRs in 30d

Description

* [6ed408e](https://github.com/kangwonlee/nmisp/commit/6ed408ea521479370dbc2645352aafe02b90e544)
* sequential method do not have to store all available `x_i` values in the array
``` python
n = int((x_final - x_init)//x_interval)
x_i = x_init
for i in range(n):
x_i += x_interval
```
* should work & be memory efficient
* however not consistency with script cells and advantage of python `numpy` not as clear

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.