lehrkraefte:blc:math-2021hw:doppelspalt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
lehrkraefte:blc:math-2021hw:doppelspalt [2025/02/23 07:12] – [Mehrere Punktquellen] Ivo Blöchligerlehrkraefte:blc:math-2021hw:doppelspalt [2025/02/24 07:50] (current) – [Überlagerung zweier Schwingungen gleicher Frequenz] Ivo Blöchliger
Line 122: Line 122:
 </code> </code>
 </hidden> </hidden>
 +
 +
 +<code python>
 +def ueberlagerung(phi1, phi2, a1=1, a2=1):
 +  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)   # Amplitude
 +  phi = math.atan(vy, vx)  # Nullphase
 +  return a,phi
 +</code>
  
 === HSV-Farbmodell === === HSV-Farbmodell ===
  • lehrkraefte/blc/math-2021hw/doppelspalt.1740294757.txt.gz
  • Last modified: 2025/02/23 07:12
  • by Ivo Blöchliger