Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
|
phaseportrait [2021/09/26 18:19] Djalil Chafaï |
— (Version actuelle) | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | <code Julia> | ||
| - | # Julia Code © Djalil ChafaÏ 2021 License GPL v3 | ||
| - | |||
| - | using LinearAlgebra, | ||
| - | |||
| - | function spectrum(n, | ||
| - | m = floor(Int, | ||
| - | M = (randn(n, | ||
| - | S = eigvals(M) | ||
| - | | ||
| - | | ||
| - | | ||
| - | end # function | ||
| - | |||
| - | function phaseportrait(points, | ||
| - | r = 1000 | ||
| - | c = max.(abs.(points)) | ||
| - | c = c + c/2 | ||
| - | M = zeros(r,r) | ||
| - | for i in 1:r | ||
| - | for j in 1:r | ||
| - | z = (-c+i*2*c/ | ||
| - | | ||
| - | end | ||
| - | end | ||
| - | | ||
| - | | ||
| - | end # function | ||
| - | |||
| - | specpoints = spectrum(250, | ||
| - | phaseportrait(specpoints, | ||
| - | </ | ||