Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
lehrkraefte:blc:notnagel17:start [2017/11/23 13:06] Ivo Blöchliger [Unterlagen] |
lehrkraefte:blc:notnagel17:start [2017/12/05 14:06] (current) Ivo Blöchliger |
||
---|---|---|---|
Line 3: | Line 3: | ||
* Jeweils am 28. November, 5. Dezember und am 12. Dezember. | * Jeweils am 28. November, 5. Dezember und am 12. Dezember. | ||
===== Unterlagen ===== | ===== Unterlagen ===== | ||
- | * {{http:// | + | * Direktlink zum {{https:// |
+ | * {{ : | ||
+ | * {{ : | ||
===== Weitere Resourcen ===== | ===== Weitere Resourcen ===== | ||
=== Vorkurse von Universitäten und den ETH === | === Vorkurse von Universitäten und den ETH === | ||
Line 10: | Line 12: | ||
* | * | ||
+ | ===== Diverses ===== | ||
+ | TigerJython-Code (nur lauffähig auf neueren Versions) zu $e^{i\pi}+1=0$: | ||
+ | <code python eipi.py> | ||
+ | from gpanel import * | ||
+ | |||
+ | import cmath | ||
+ | |||
+ | def cross(a, | ||
+ | line(0, | ||
+ | line(a-e, | ||
+ | line(a, | ||
+ | | ||
+ | |||
+ | def show(n): | ||
+ | enableRepaint(False) | ||
+ | clear() | ||
+ | # Koordinatensystem | ||
+ | line(-2, | ||
+ | line(0, | ||
+ | circle(0, | ||
+ | # Basis | ||
+ | z = complex(1.0, | ||
+ | x = 1 | ||
+ | # Alle Potenzen davon | ||
+ | for i in range(1,n): | ||
+ | x*=z | ||
+ | cross(x.real, | ||
+ | # Anzeigen | ||
+ | repaint() | ||
+ | | ||
+ | @onMouseMoved | ||
+ | def mouseMoved(x, | ||
+ | show(int((x+2)*(x+2)*20+2)); | ||
+ | |||
+ | makeGPanel(-2, | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | Komplexe Funktionen visualisieren: | ||
+ | <code python complexfuncs.py> | ||
+ | from gpanel import * | ||
+ | |||
+ | import cmath | ||
+ | |||
+ | def cross(z, | ||
+ | a = z.real | ||
+ | b = z.imag | ||
+ | line(a-e, | ||
+ | line(a, | ||
+ | | ||
+ | @onMouseClicked | ||
+ | def init(x,y): | ||
+ | clear() | ||
+ | # Koordinatensystem | ||
+ | setColor(" | ||
+ | line(-4, | ||
+ | line(0, | ||
+ | circle(0, | ||
+ | |||
+ | def myfunc(z): | ||
+ | return z*z*z | ||
+ | |||
+ | def show(z): | ||
+ | setColor(" | ||
+ | cross(z) | ||
+ | setColor(" | ||
+ | cross(myfunc(z)) | ||
+ | | ||
+ | @onMouseMoved | ||
+ | def mouseMoved(x, | ||
+ | show(complex(x, | ||
+ | |||
+ | makeGPanel(-4, | ||
+ | init(0,0) | ||
+ | |||
+ | </ | ||
+ | |||
+ | Kurven abbilden: | ||
+ | <code python shapeimage.py> | ||
+ | from gpanel import * | ||
+ | |||
+ | import cmath | ||
+ | |||
+ | def cross(z, | ||
+ | a = z.real | ||
+ | b = z.imag | ||
+ | line(a-e, | ||
+ | line(a, | ||
+ | | ||
+ | @onMouseClicked | ||
+ | def init(x,y): | ||
+ | clear() | ||
+ | # Koordinatensystem | ||
+ | setColor(" | ||
+ | line(-4, | ||
+ | line(0, | ||
+ | circle(0, | ||
+ | |||
+ | def myfunc(z): | ||
+ | return z*z | ||
+ | def mycircle(c, | ||
+ | for i in range(0, | ||
+ | a = i/ | ||
+ | z = c+complex(math.cos(a), | ||
+ | # | ||
+ | # b = (i % 90 - 45)/ | ||
+ | setColor(" | ||
+ | cross(z) | ||
+ | setColor(" | ||
+ | cross(f(z)) | ||
+ | | ||
+ | |||
+ | def show(z): | ||
+ | init(0,0) | ||
+ | setColor(" | ||
+ | cross(z) | ||
+ | setColor(" | ||
+ | cross(myfunc(z)) | ||
+ | mycircle(z, | ||
+ | | ||
+ | @onMouseMoved | ||
+ | def mouseMoved(x, | ||
+ | show(complex(x, | ||
+ | |||
+ | makeGPanel(-6, | ||
+ | init(0,0) | ||
+ | |||
+ | </ |