Projekt aufgeräumt, gha1 getestet, Runge-Kutta angepasst (gha2_num sollte jetzt deutlich schneller sein)

This commit is contained in:
2026-01-09 17:49:49 +01:00
parent cf756e3d9a
commit 797afdfd6f
23 changed files with 832 additions and 868 deletions

View File

@@ -1,4 +1,5 @@
import winkelumrechnungen as wu
import random
table1 = [
(wu.deg2rad(0), wu.deg2rad(0), wu.deg2rad(0), wu.deg2rad(90), 1.00000000000,
@@ -105,7 +106,22 @@ def get_example(table, example):
def get_tables():
return tables
def get_random_examples(num):
random.seed(42)
examples = []
for i in range(num):
table = random.randint(1, 4)
if table == 4:
example = random.randint(1, 8)
else:
example = random.randint(1, 7)
example = get_example(table, example)
examples.append(example)
return examples
if __name__ == "__main__":
test = get_example(1, 4)
# test = get_example(1, 4)
examples = get_random_examples(5)
pass