initial commit with 2024 materials
This commit is contained in:
commit
6fdfdbb8b7
66 changed files with 102457 additions and 0 deletions
16
testing_project/test_logistic.py
Normal file
16
testing_project/test_logistic.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
from numpy.testing import assert_allclose
|
||||
|
||||
from logistic import f
|
||||
|
||||
# Add here your test for the logistic map
|
||||
|
||||
|
||||
def test_f_corner_cases():
|
||||
# Test cases are (x, r, expected)
|
||||
cases = [
|
||||
(0, 1.1, 0),
|
||||
(1, 3.7, 0),
|
||||
]
|
||||
for x, r, expected in cases:
|
||||
result = f(x, r)
|
||||
assert_allclose(result, expected)
|
Loading…
Add table
Add a link
Reference in a new issue