This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from numpy import * | |
# chargez une image stockée dans un tableau (image monocolore) | |
im = genfromtxt('image.csv') | |
# Décomposition en valeurs singulières | |
U, s, Vs = linalg.svd(im, full_matrices=True) | |
# Dimension des matrices | |
U.shape |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
## Méthode de la puissance pour le calcul de valeurs propres | |
# In[1]: | |
from numpy import * | |
import matplotlib as plt | |
import pylab as pl |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [c,f,s] = turing(x,t,u,DuDx) | |
% TURING PDE components for the Turing equations | |
% | |
% Examples | |
% x = -20:0.1:20; | |
% t = 0:20; | |
% sol = pdepe(0,@turing,@turingic,@turingbc,x,t); | |
% u = sol(:,:,1); | |
% v = sol(:,:,2); | |
% imagesc(x,t,u); axis xy; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sol = kuramoto | |
% KURAMOTO Systeme d'oscillateurs de phase couples | |
% sol = kuramoto resoud un systeme de N d'oscillateurs de phase couples | |
% intervalle d'integration | |
t0 = 0; | |
tfinal = 500; | |
% nombre d'oscillateurs | |
N = 400; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer