Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| lehrkraefte:blc:math-2021hw:doppelspalt [2025/02/23 07:12] – [Mehrere Punktquellen] Ivo Blöchliger | lehrkraefte:blc:math-2021hw:doppelspalt [2025/02/24 07:50] (current) – [Überlagerung zweier Schwingungen gleicher Frequenz] Ivo Blöchliger | ||
|---|---|---|---|
| Line 122: | Line 122: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | |||
| + | <code python> | ||
| + | def ueberlagerung(phi1, | ||
| + | v1x = math.cos(phi1)*a1 | ||
| + | v1y = math.sin(phi1)*a1 | ||
| + | v2x = math.cos(phi2)*a2 | ||
| + | v2y = math.sin(phi2)*a2 | ||
| + | vx = v1x+v2x | ||
| + | vy = v1y+v2y | ||
| + | a = math.sqrt(vx*vx+vy*vy) | ||
| + | phi = math.atan(vy, | ||
| + | return a,phi | ||
| + | </ | ||
| === HSV-Farbmodell === | === HSV-Farbmodell === | ||