<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-697344570467959391</id><updated>2011-12-22T19:13:22.777-05:00</updated><category term='environnement'/><category term='physique'/><category term='informatique'/><category term='photographie'/><category term='biologie'/><category term='recherche opérationnelle'/><category term='philosophie'/><category term='ineptie'/><category term='python'/><category term='blogue'/><category term='maths'/><title type='text'>Les folles aventures d'un terrien</title><subtitle type='html'>Sciences dans la vie d'un terrien</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>26</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-5497419488076993914</id><published>2011-12-21T22:32:00.001-05:00</published><updated>2011-12-22T18:45:04.435-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='informatique'/><title type='text'>Dictionnaire français pour Vim</title><content type='html'>Vim possède un correcteur d'orthographe. On peut l'activer avec&lt;br /&gt;&lt;pre class="prettyprint"&gt;:set spell&lt;/pre&gt;&lt;div&gt;puis on passe à l'erreur suivante avec &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;]s&lt;/span&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Par défaut, seuls des dictionnaires anglais sont fournis avec MacVim. Installer un dictionnaire français se fait automatiquement si on définit la variable &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;spelllang&lt;/span&gt; pour le français :&lt;/div&gt;&lt;pre class="prettyprint"&gt;:set spelllang=fr&lt;/pre&gt;&lt;div&gt;Ensuite, il ne reste plus qu'à activer la correction automatique et à regarder MacVim se connecter à un serveur ftp pour y télécharger les fichiers nécessaires.&lt;br /&gt;&lt;br /&gt;Information trouvée dans les archives de comp.editors sur usenet (&lt;a href="http://newsgroups.derkeiler.com/Archive/Comp/comp.editors/2006-04/msg00241.html"&gt;http://newsgroups.derkeiler.com/Archive/Comp/comp.editors/2006-04/msg00241.html&lt;/a&gt;).&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-5497419488076993914?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/5497419488076993914/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2011/12/vim-possede-un-correcteur-dorthographe.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/5497419488076993914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/5497419488076993914'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2011/12/vim-possede-un-correcteur-dorthographe.html' title='Dictionnaire français pour Vim'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-3449403071328005967</id><published>2010-06-13T23:52:00.003-04:00</published><updated>2011-12-21T22:42:40.899-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='informatique'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>64 bits Python installation on MacOS X Snow Leopard</title><content type='html'>&lt;div&gt;&lt;i&gt;N.B. : Pour une raison mystérieuse, j'ai rédigé cet article en anglais. Désolé pour ceux qui ne lisent pas l'anglais. J'essaierai de ne pas recommencer.&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here is how I installed Python 2.6.5 on my machine. Here is what I get at the end:&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Python 2.6.5 with both 32 bits and 64 bits executables&lt;/li&gt;&lt;li&gt;Virtual environments with virtualenv&lt;/li&gt;&lt;li&gt;64 bits NumPy, SciPy and Matplotlib&lt;/li&gt;&lt;li&gt;A bunch of other useful packages&lt;/li&gt;&lt;li&gt;The power of Python&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;I based myself mostly on &lt;a href="http://jessenoller.com/2009/03/16/so-you-want-to-use-python-on-the-mac/"&gt;this post&lt;/a&gt; by Jesse Noller and &lt;a href="http://blog.hyperjeff.net/?p=160"&gt;this one&lt;/a&gt; by HyperJeff. Unfortunately, the instructions in these posts were not completely sufficient for me and I had to fiddle around a lot to get the complete setup I was looking for.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;Python&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Download the latest Python source code and unpack it&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ curl -O http://www.python.org/ftp/python/2.6.5/Python-2.6.5.tar.bz2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ tar jxvf Python-2.6.5.tar.bz2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To build an installer for Snow Leopard, we need to tweak one line of the&lt;/div&gt;&lt;div&gt;script.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ cd Python-2.6.5/Mac/BuildScript/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ mvim build-installer.py&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here, I used MacVIM to edit the file. Use whatever editor you like. At&lt;/div&gt;&lt;div&gt;line 78, replace&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    SDKPATH = "/Developer/SDKs/MacOSX10.4u.sdk"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;by&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    SDKPATH = "/Developer/SDKs/MacOSX10.6.sdk"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;And around line 139 replace&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    if DEPTARGET &amp;lt; '10.5':&lt;/span&gt;&lt;/div&gt;&lt;div&gt;by&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    if DEPTARGET &amp;lt; '10.7':&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Before running the script, I had to create the directory where&lt;/div&gt;&lt;div&gt;third-party sources would be downloaded.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ mkdir ~/Universal/other-sources&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;All you have to do, is to run the script:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ ./build-installer.py --dep-target=10.6 --universal-archs=intel&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This will build an installer for 64 bits Python 2.6.5 with support for&lt;/div&gt;&lt;div&gt;readline. The disk image containing the installer is located in&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;/tmp/_py/diskimage/&lt;/span&gt;. Just mount the dmg file and install Python by double clicking on the pkg file.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;By default, &lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;python&lt;/span&gt; is a symlink to the 32-bit version, and so is &lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;pythonw&lt;/span&gt;.&lt;/div&gt;&lt;div&gt;To change that, simply modify the symlinks in&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;/Library/Frameworks/Python.framework/Versions/2.6/bin/&lt;/span&gt; as follow:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ cd /Library/Frameworks/Python.framework/Versions/2.6/bin/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ sudo rm python python2.6 pythonw pythonw2.6&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ sudo ln -s python2.6-64 python&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ sudo ln -s python2.6-64 python2.6&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ sudo ln -s pythonw2.6-64 pythonw&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ sudo ln -s pythonw2.6-64 pythonw2.6&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Virtualenv&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This nice utility allows one to have many different python environment&lt;/div&gt;&lt;div&gt;each of which is independent. You can then install a bunch of packages&lt;/div&gt;&lt;div&gt;in an environment. If you need a fresh environment, you then just create&lt;/div&gt;&lt;div&gt;a new virtualenv. You are free to switch from one virtualenv to another.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Start by installing easy_install and pip.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ curl -O http://peak.telecommunity.com/dist/ez_setup.py&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ sudo python ez_setup.py&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ curl -O http://pypi.python.org/packages/source/p/pip/pip-0.7.2.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ tar zxvf pip-0.7.2.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ cd pip-0.7.2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ sudo python setup.py install&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Then, move on to install virtualenv and a wrapper script.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ sudo pip install virtualenv&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ sudo pip install virtualenvwrapper&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Create a directory for you virtual environments.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ mkdir -p ~/local/virtualenvs&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Add the following to your &lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;~/.bash_profile&lt;/span&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    export WORKON_HOME=$HOME/local/virtualenvs&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    source /Library/Frameworks/Python.framework/Versions/2.6/bin/virtualenvwrapper.sh&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    workon default&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Source the &lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;.bash_profile&lt;/span&gt; file.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ . ~/.bash_profile&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Finally, just create the default virtual environment.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ mkvirtualenv default&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Numpy and SciPy&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;These two are by far the most annoying (but also the most useful). They depend on a few libraries which are either required or enhance efficiency a lot.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Download and install gfortran.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ curl -O http://r.research.att.com/gfortran-4.2.3.dmg&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Download and install FFTW.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ curl -O http://www.fftw.org/fftw-3.2.2.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ tar zxvf fftw-3.2.2.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ cd fftw-3.2.2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ ./configure CC="gcc -arch i386 -arch x86_64" CXX="g++ -arch i386 -arch x86_64" CPP="gcc -E" CXXCPP="g++ -E"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ make&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ sudo make install&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Download and install UMFPACK.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ curl -O http://www.cise.ufl.edu/research/sparse/umfpack/UMFPACK-5.5.0.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ tar zxvf http://www.cise.ufl.edu/research/sparse/umfpack/UMFPACK-5.5.0.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ curl -O http://www.cise.ufl.edu/research/sparse/UFconfig/UFconfig-3.5.0.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ tar zxvf http://www.cise.ufl.edu/research/sparse/UFconfig/UFconfig-3.5.0.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ curl -O http://www.cise.ufl.edu/research/sparse/amd/AMD-2.2.1.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ tar zxvf http://www.cise.ufl.edu/research/sparse/amd/AMD-2.2.1.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the file &lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;UFconfig/UFconfig.mk&lt;/span&gt;, uncommment lines 284 through 287 and add&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;-DNCHOLMOD&lt;/span&gt; to the &lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;UMFPACK_CONFIG&lt;/span&gt; variable on line 154.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    F77 = gfortran&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    CFLAGS = -O3 -fno-common -no-cpp-precomp -fexceptions&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    BLAS = -framework Accelerate&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    LAPACK = -framework Accelerate&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The Makefile for UFconfig needs to be changed at line 28 in the install&lt;/div&gt;&lt;div&gt;target. There is a mistake on the location of the library. The line should&lt;/div&gt;&lt;div&gt;read&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $(CP) libufconfig.a $(INSTALL_LIB)/libufconfig.$(VERSION).a&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Then, build and install the various parts.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ cd UMFPACK&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ make library&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ sudo make install&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ cd ../AMD&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ sudo make install&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ cd ../UFconfig&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ make&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ sudo make install&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This will build UFMPACK, AMD and UFconfig and install the headers and&lt;/div&gt;&lt;div&gt;libraries in &lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;/usr/local&lt;/span&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Download NumPy from the SourceForge download page&lt;/div&gt;&lt;div&gt;http://sourceforge.net/projects/numpy/files/NumPy/1.4.1/numpy-1.4.1.tar.gz/download and then install it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ tar zxvf numpy-1.4.1.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ cd numpy-1.4.1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ python setup.py build&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ python setup.py install&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Download SciPy from the SourceForge download page&lt;/div&gt;&lt;div&gt;http://sourceforge.net/projects/scipy/files/scipy/0.8.0b1/scipy-0.8.0b1.tar.gz/download and then install it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ tar zxvf scipy-0.8.0b1.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ cd scipy-0.8.0b1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ python setup.py build&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ python setup.py install&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;Matplotlib&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Download from http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.3/matplotlib-0.99.3.tar.gz/download and untar.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ tar zxvf matplotlib-0.99.3.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ cd matplotlib-0.99.3&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The file &lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;make.osx&lt;/span&gt; is what is used now. However, as of this writing, using this file as is does not work. First, apply this patch &lt;/div&gt;&lt;div&gt;http://sourceforge.net/tracker/download.php?group_id=80706&amp;amp;atid=560722&amp;amp;file_id=369204&amp;amp;aid=2981126&lt;/div&gt;&lt;div&gt;and then change the zlib version in &lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;make.osx&lt;/span&gt; to 1.2.5. Then, run&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ PREFIX=~/local/virtualenvs/default make -f make.osx fetch deps mpl_build mpl_install&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Other useful packages&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ pip install mercurial&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ pip install ipython&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ pip install networkx&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ pip install nose&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ pip install sphinx&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    $ pip install sympy&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;References&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;http://matplotlib.sourceforge.net/users/installing.html&lt;/div&gt;&lt;div&gt;http://blog.hyperjeff.net/?p=160&lt;/div&gt;&lt;div&gt;http://docs.python.org/install/index.html&lt;/div&gt;&lt;div&gt;http://cran.r-project.org/bin/macosx/tools/&lt;/div&gt;&lt;div&gt;http://mail.python.org/pipermail/pythonmac-sig/2009-May/021289.html&lt;/div&gt;&lt;div&gt;http://jessenoller.com/2009/03/16/so-you-want-to-use-python-on-the-mac/&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-3449403071328005967?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/3449403071328005967/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2010/06/64-bits-python-installation-on-macos-x.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/3449403071328005967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/3449403071328005967'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2010/06/64-bits-python-installation-on-macos-x.html' title='64 bits Python installation on MacOS X Snow Leopard'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-6825491479768388188</id><published>2010-06-07T22:39:00.004-04:00</published><updated>2010-06-07T23:09:22.461-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='environnement'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>Consommation d'énergie et émission de gaz à effet de serre au Canada</title><content type='html'>&lt;div style="text-align: left;"&gt;En faisant quelques recherches sur Internet, je suis tombé sur des données relatives à la consommation d'énergie et à l'émission de GES par les foyers canadiens pour la période de 1990 à 2007. Ces données sont rendues publiques par l'&lt;a href="http://oee.nrcan.gc.ca/"&gt;Office de l'efficacité énergétique&lt;/a&gt; de &lt;a href="http://www.nrcan-rncan.gc.ca/com/"&gt;Ressources naturelles Canada&lt;/a&gt;. Elles proviennent principalement de &lt;a href="http://www.statcan.gc.ca/"&gt;Statistique Canada&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Les données sont disponible sous la forme d'un document Excel (&lt;a href="http://oee.nrcan.gc.ca/corporate/statistics/neud/dpa/tablestrends2/res_ca_1_e.xls"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;res_ca_1_e.xls&lt;/span&gt;&lt;/a&gt;). J'ai utilisé Python, Matplotlib et un module nommé xlrd pour visualiser les données. Python et Matplotlib n'ont probablement pas besoin de présentation. &lt;a href="http://www.lexicon.net/sjmachin/xlrd.htm"&gt;xlrd&lt;/a&gt; est un module qui permet d'extraire les information d'un fichier Excel à partir de Python. Une introduction à l'utilisation de xlrd est disponible sur &lt;a href="http://scienceoss.com/read-excel-files-from-python/"&gt;scienceoss.com&lt;/a&gt;. Mon script Python est disponible &lt;a href="http://devio.us/~loicseguin/econcan.py"&gt;ici&lt;/a&gt;.&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://2.bp.blogspot.com/_HyYHulp_e30/TA2x4fN5FJI/AAAAAAAACAI/959Bj3crY-Y/s400/Secondary+Energy+Use+by+Energy+Source.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5480231905590318226" /&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://3.bp.blogspot.com/_HyYHulp_e30/TA2yKDyXtlI/AAAAAAAACAQ/DLja2Y6F03I/s400/Green+House+Gas+Emissions+by+Energy+Source.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5480232207464773202" /&gt;&lt;/div&gt;&lt;div&gt;Je dois avoué avoir été assez surpris du faible taux d'augmentation de la consommation d'électricité et des émissions de GES. Bien sûr, il est navrant qu'on parle d'augmentation alors que les objectifs du protocole de Kyoto étaient de réduire les émissions de GES par rapport à celles de 1990. Néanmoins, si l'on en croit ces données, la situation n'est pas si terrible au Canada.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-6825491479768388188?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/6825491479768388188/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2010/06/consommation-denergie-et-emission-de.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/6825491479768388188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/6825491479768388188'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2010/06/consommation-denergie-et-emission-de.html' title='Consommation d&apos;énergie et émission de gaz à effet de serre au Canada'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_HyYHulp_e30/TA2x4fN5FJI/AAAAAAAACAI/959Bj3crY-Y/s72-c/Secondary+Energy+Use+by+Energy+Source.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-5493108597676032679</id><published>2010-03-01T22:05:00.002-05:00</published><updated>2010-03-01T22:30:46.874-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='informatique'/><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='physique'/><title type='text'>Spinify 2.2</title><content type='html'>Je viens tout juste de lancer la nouvelle version du logiciel de simulation numérique du modèle d'Ising Spinify. La version 2.2 comporte plusieurs corrections de bogues de même qu'une réécriture complète de l'interface en ligne de commande (CLI). Vous pouvez télécharger le programme sur bitbucket: &lt;a href="http://bitbucket.org/loicseguin/spinify/downloads/spinify-2.2.tar.gz"&gt;spinify-2.2.tar.gz&lt;/a&gt;.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;L'usager peut maintenant configurer tous les paramètres utilisés dans la simulation de même que dans la génération des graphes. Ces paramètres peuvent être spécifiés à la ligne de commande ou dans un fichier de configuration qui sera lu par le programme. Tous les détails sont disponibles dans la page de manuel de &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;spinify(1)&lt;/span&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;De plus, cette version introduit de nouvelles quantités mesurables lors de la simulation. L'usager peut maintenant choisir parmi l'énergie interne par site, la magnétisation et la susceptibilité magnétique. Autant d'outils pour analyser le comportement du modèle aux abords de la température critique (de même que pour trouver cette température critique).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Enfin, j'utilise maintenant GNU Autotools pour compiler le logiciel. En théorie, Spinify devrait compiler sans problème sur n'importe quel système Unix ou Linux.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Si vous utilisez ce logiciel et que vous avez des commentaires ou que vous avez des questions à son propos, n'hésitez pas à me contacter par l'entremise de la liste d'envoi &lt;a href="mailto:spinify-discuss@googlegroups.com"&gt;spinify-discuss@googlegroups.com&lt;/a&gt;.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-5493108597676032679?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/5493108597676032679/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2010/03/spinify-22.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/5493108597676032679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/5493108597676032679'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2010/03/spinify-22.html' title='Spinify 2.2'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-966365997574776046</id><published>2010-02-15T20:56:00.003-05:00</published><updated>2010-02-15T21:00:12.112-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='informatique'/><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='physique'/><title type='text'>Spinify 2.1</title><content type='html'>La première version vraiment fonctionnelle du logiciel de simulation du modèle d'Ising en deux dimensions sur la sphère est maintenant disponible ici : &lt;a href="http://bitbucket.org/loicseguin/spinify/downloads/spinify-2.1.tar.bz2"&gt;spinify-2.1.tar.bz2&lt;/a&gt;. Le programme s'installe sur Mac OS X et Ubuntu 9.10 (et probablement tous les autres Unix et Linux). Pour plus de détails concernant l'installation, voir le &lt;a href="http://bitbucket.org/loicseguin/spinify/wiki/Home"&gt;wiki&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-966365997574776046?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/966365997574776046/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2010/02/spinify-21.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/966365997574776046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/966365997574776046'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2010/02/spinify-21.html' title='Spinify 2.1'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-7860750195897093739</id><published>2010-01-25T10:07:00.002-05:00</published><updated>2010-01-25T11:41:56.884-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='informatique'/><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='physique'/><title type='text'>Spinify</title><content type='html'>Il y a quelques années, j'ai travaillé sur un projet qui consistait à développer un programme de simulation du modèle d'Ising sur des surfaces ayant un tenseur métrique non trivial. Ce projet n'a jamais été complété. Or, je m'y suis récemment remis, et j'avance à bon train.&lt;br /&gt;&lt;br /&gt;J'ai réécrit le code en C++ et j'ai implémenté un algorithme pour générer un réseau aléatoire sur la sphère. Actuellement, j'utilise &lt;a href="http://www.qhull.org/"&gt;Qhull&lt;/a&gt; pour essayer de trianguler le réseau ainsi obtenu, mais le code est mal écrit et le programme plante souvent. Je travaille régulièrement sur le projet, et si le coeur vous en dit, j'apprécierais avoir un peu d'aide. Le code source pour le programme est disponible sur bitbucket à l'adresse &lt;a href="http://bitbucket.org/loicseguin/spinify/"&gt;http://bitbucket.org/loicseguin/spinify/&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Si ce qui précède est du pur charabia, ne vous en faites pas : avant longtemps, j'écrirai un message détaillant ce qu'est le modèle d'Ising, ce que j'entends par métrique non triviale et comment le programme Spinify essaie de gérer tout cela.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-7860750195897093739?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/7860750195897093739/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2010/01/spinify.html#comment-form' title='1 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/7860750195897093739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/7860750195897093739'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2010/01/spinify.html' title='Spinify'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-2265869368720871559</id><published>2009-04-07T12:28:00.002-04:00</published><updated>2009-04-07T12:33:15.078-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='philosophie'/><title type='text'>Protégeons-nous avec les maths</title><content type='html'>Une citation toute à l'honneur des mathématiques :&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;It is insufficient to protect ourselves with laws; we need to protect ourselves with mathematics.&lt;/blockquote&gt;&lt;br /&gt;Tirée de &lt;a href="http://www.worldcat.org/isbn/9780471117094"&gt;Applied Cryptography&lt;/a&gt; par Bruce Schneier.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-2265869368720871559?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/2265869368720871559/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2009/04/protegeons-nous-avec-les-maths.html#comment-form' title='2 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/2265869368720871559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/2265869368720871559'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2009/04/protegeons-nous-avec-les-maths.html' title='Protégeons-nous avec les maths'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-99765279715647048</id><published>2009-03-15T21:33:00.005-04:00</published><updated>2009-08-04T11:33:51.313-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='informatique'/><category scheme='http://www.blogger.com/atom/ns#' term='ineptie'/><title type='text'>HiR Information Report</title><content type='html'>Pour les amateurs de Unix qui veulent en apprendre un peu plus sur la sécurité de leur système ou sur l'administration de systèmes, le blogue &lt;a href="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/a&gt; est une source d'informations vraiment intéressante.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-99765279715647048?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/99765279715647048/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2009/03/pour-les-amateurs-de-unix-qui-veulent.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/99765279715647048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/99765279715647048'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2009/03/pour-les-amateurs-de-unix-qui-veulent.html' title='HiR Information Report'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-3877704818423686673</id><published>2009-03-11T23:50:00.011-04:00</published><updated>2009-03-12T23:06:24.182-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='informatique'/><title type='text'>Copies de sauvegarde</title><content type='html'>J'ai finalement trouvé une solution convenable pour faire des copies de sauvegarde de mes documents importants : un &lt;span style="font-style: italic;"&gt;shell script&lt;/span&gt; maison assez simple qui utilise le logiciel &lt;span style="font-family:courier new;"&gt;rsync&lt;/span&gt; (&lt;a href="http://samba.anu.edu.au/rsync/"&gt;informations sur ce site&lt;/a&gt;). &lt;span style="font-family:courier new;"&gt;rsync&lt;/span&gt; est un logiciel libre distribué sous licence GPL et disponible sur la plupart des plateformes Unix de même que sur MS Windows.&lt;br /&gt;&lt;br /&gt;Si vous utilisez Mac OS X, &lt;span style="font-family:courier new;"&gt;rsync&lt;/span&gt; fait déjà partie de l'installation par défaut. Il en est probablement de même pour les distributions de Linux les plus populaires. Sur OpenBSD, vous pouvez l'installer avec la commande :&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;sudo pkg_add rsync&lt;br /&gt;&lt;/span&gt;&lt;/blockquote&gt;en supposant que vous avez déjà configuré &lt;span style="font-family:courier new;"&gt;sudo&lt;/span&gt; et que la variable d'environnement &lt;span style="font-family:courier new;"&gt;PKG_PATH&lt;/span&gt; est définie.&lt;br /&gt;&lt;br /&gt;Alors voici, j'ai un Macbook qui fonctionnne sous Mac OS X et il est relié à deux disques durs externes : Hercule et Astro. Il y a plusieurs dossiers et quelques fichiers de configuration (les dotfiles) que je veux copier. Le script ressemble à ceci. &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Mis à jour le 12 mars 2009:&lt;br /&gt;&lt;/span&gt;&lt;pre&gt;&lt;code&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;# This script makes a backup of important files in&lt;br /&gt;# my home directory to two external hard drives,&lt;br /&gt;# Hercule and Astro, using rsync.&lt;br /&gt;&lt;br /&gt;OPTS="-avuzC --delete --exclude-from=$HOME/.rsync/excludes"&lt;br /&gt;FOLDERS="Desktop Documents Music Movies Programmes Sites \&lt;br /&gt;  Applescripts Pictures Jeux Library/Colorsync \&lt;br /&gt;  Library/Thunderbird .rsync"&lt;br /&gt;FOLDER1="Library/Application Support"&lt;br /&gt;BACKUPDIR="Macbook backup"&lt;br /&gt;DOTFILES="$BACKUPDIR/dotfiles"&lt;br /&gt;FILES=".emacs .vimrc .profile"&lt;br /&gt;VOLUMES="/Volumes/Astro /Volumes/Hercule"&lt;br /&gt;&lt;br /&gt;for v in $VOLUMES; do&lt;br /&gt;  if [ -d "$v" ]; then&lt;br /&gt;  &lt;br /&gt;    if [ ! -d "$v/$BACKUPDIR/Library" ]; then&lt;br /&gt;      mkdir -p "$v/$BACKUPDIR/Library"&lt;br /&gt;      echo "created directory" "$v/$BACKUPDIR/Library"&lt;br /&gt;    fi&lt;br /&gt; &lt;br /&gt;    for d in $FOLDERS "$FOLDER1"; do&lt;br /&gt;      rsync $OPTS "$HOME/$d/" "$v/$BACKUPDIR/$d/"&lt;br /&gt;    done&lt;br /&gt;&lt;br /&gt;    if [ ! -d "$v/$DOTFILES" ]; then&lt;br /&gt;      mkdir "$v/$DOTFILES"&lt;br /&gt;      echo "created directory" "$v/$DOTFILES"&lt;br /&gt;    fi&lt;br /&gt;&lt;br /&gt;    for f in $FILES; do&lt;br /&gt;      rsync $OPTS "$HOME/$f" "$v/$DOTFILES/$f"&lt;br /&gt;    done&lt;br /&gt;&lt;br /&gt;  else&lt;br /&gt;    echo "ERROR:" "$v" "not mounted"&lt;br /&gt;  fi&lt;br /&gt;done&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;Et le fichier &lt;span style="font-family:courier new;"&gt;.rsync/excludes&lt;/span&gt; contient&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;.DS_Store&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;.depend&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;*.aplibrary&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;.localized&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;Tout d'abord, on définit les options pour rsync :&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;a&lt;/span&gt; : le mode archivage (c'est ce qui convient le mieux pour les copies de sauvegarde)&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;v&lt;/span&gt; : afficher les opérations effectuées à l'écran&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;u&lt;/span&gt; : update, i.e. : si un fichier sur dans la copie de sauvegarde est plus récent que celui sur le Macbook, on ne le recopie pas&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;z&lt;/span&gt; : compresser les données&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;C&lt;/span&gt; : exclure tous les fichiers normalement exclus par CVS (e.g. : *.o, *~, *.a)&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;--delete&lt;/span&gt; : si un fichier a été effacé du Macbook, l'effacer du dossier de sauvegarde&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;--exclude-from&lt;/span&gt; : précise le nom du fichier contenant la liste des exclusions&lt;/li&gt;&lt;/ul&gt;Ensuite on définit les variables qui précise les fichiers et dossiers à copier. On a une boucle pour effectuer les opérations sur les deux disques durs externes puis une autre pour effectuer les copies de tous les dossiers voulus.&lt;br /&gt;&lt;br /&gt;Le dossier &lt;span style="font-family:courier new;"&gt;Library/Application Support&lt;/span&gt; a sa propre variable car j'obtiens des erreurs si je l'inclus dans la liste &lt;span style="font-family:courier new;"&gt;FOLDERS&lt;/span&gt;. J'ai essayé de l'inclure avec des guillemets, en échappant l'espace (&lt;span style="font-family:courier new;"&gt;Library/Application\ Support&lt;/span&gt;) mais rien ne fonctionnait. Si quelqu'un sait comment faire en sorte que je puisse include ce dossier dans la liste avec les autres, faites-moi le savoir.&lt;br /&gt;&lt;br /&gt;Je mets les fichiers de configuration dans un dossier nommé &lt;span style="font-family:courier new;"&gt;dotfiles&lt;/span&gt; que je crée s'il n'existe pas déjà.&lt;br /&gt;&lt;br /&gt;J'ai copié le script dans un dossier qui fait partie de mon &lt;span style="font-family:courier new;"&gt;$PATH&lt;/span&gt;. Voilà ! C'est fait ! Des copies de sauvegarde facile en tapant &lt;span style="font-family:courier new;"&gt;backup&lt;/span&gt; dans un terminal. La magie de &lt;span style="font-family:courier new;"&gt;rsync&lt;/span&gt;, c'est que le logiciel ne recopie que les fragments de fichiers qui ont été modifiés depuis la dernière sauvegarde. Donc le processus est très rapide en général (sauf la première fois que le script fonctionne puisqu'il doit alors copier l'ensemble des fichiers).&lt;br /&gt;&lt;br /&gt;Prochaine étape : synchroniser mon Macbook et mon ordinateur de bureau roulant sous OpenBSD avec &lt;a href="http://www.cis.upenn.edu/%7Ebcpierce/unison/"&gt;Unison&lt;/a&gt;...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-3877704818423686673?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/3877704818423686673/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2009/03/copies-de-sauvegarde.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/3877704818423686673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/3877704818423686673'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2009/03/copies-de-sauvegarde.html' title='Copies de sauvegarde'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-5611916287854529107</id><published>2009-02-12T09:31:00.006-05:00</published><updated>2009-02-12T10:02:35.121-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='philosophie'/><category scheme='http://www.blogger.com/atom/ns#' term='biologie'/><title type='text'>Bonne fête Darwin !</title><content type='html'>Il y a 200 ans, le 12 février 1809, naît un homme qui va révolutionner notre compréhension de la nature : Charles Darwin. Darwin fût un naturaliste de grand renom qui a étudié, entre autre, la botanique et l'entomologie. Mais sa plus grande contribution à la science moderne est sans conteste la théorie de l'évolution par la sélection naturelle.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Deux cents ans plus tard, l'Union Internationale des Sciences Biologiques commémore la mémoire de ce grand homme en désignant l'année 2009, année Darwin.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Malheureusement, deux siècles de science et de découvertes qui confirment cette théorie scientifique n'ont pas suffit à établir la théorie de l'évolution comme un des fondements de l'éducation scientifique. Encore aujourd'hui, des personnes de mauvaise foi qui n'ont pas compris la différence entre la science et la religion essaient de discréditer cette théorie. Le créationnisme et le dessin intelligent ne sont pas des sciences et n'ont, par conséquent, aucune aptitude pour s'opposer au Darwinisme.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Profitons donc de cette année Darwin pour rappeler au monde que la science et la religion ne jouent pas sur le même terrain, et que la théorie de l'évolution par sélection naturelle est une théorie scientifique fondée sur un très grand nombre d'observations qui ont toutes été faites dans le cadre de la démarche scientifique. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;La théorie dont Darwin est le père a apporté une compréhension profonde de la biologie et de l'émergence et l'évolution des espèces. Pour cette contribution extraordinaire au savoir, je salue Darwin et lui souhaite un très bon anniversaire !&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Quelques liens intéressants :&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://darwin-year-2009.org/index.html"&gt;Darwin Year 2009&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.darwinday.org/index.html"&gt;Darwin Day Celebration&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://en.wikipedia.org/wiki/Charles_Darwin"&gt;Charles Darwin sur Wikipedia (en)&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://darwin-online.org.uk/"&gt;The Complete Work of Charles Darwin Online&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-5611916287854529107?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/5611916287854529107/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2009/02/bonne-fete-darwin.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/5611916287854529107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/5611916287854529107'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2009/02/bonne-fete-darwin.html' title='Bonne fête Darwin !'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-2654339259258573274</id><published>2009-02-06T15:54:00.009-05:00</published><updated>2009-02-17T20:52:17.782-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='philosophie'/><title type='text'>Des axiomes mathématiques</title><content type='html'>En lisant &lt;a href="http://www.worldcat.org/isbn/9782266079907"&gt;Le moine et le philosophe&lt;/a&gt;, je suis tombé sur cette citation de Alan B. Wallace (tirée de &lt;a href="http://www.worldcat.org/isbn/9782702128206"&gt;Science et Bouddhisme, à chacun sa réalité&lt;/a&gt;) :&lt;div&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Les axiomes mathématiques étaient considérés jusqu'à récemment comme des évidences qu'il n'était pas nécessaire de prouver. Or au siècle dernier des mathématiciens ont suggéré que les postulats d'Euclide, par exemple, ne sont ni vrais ni faux, ce sont simplement les "règles du jeu." [...] Il est maintenant devenu clair que les axiomes mathématiques sont directement ou indirectement dérivés de notre expérience, et qu'on ne peut donc dire que les mathématiques embrassent des lois d'une réalité totalement indépendante de l'expérience.&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/div&gt;Cette citation exprime très bien l'approche mathématique moderne. Il est courant de rencontrer des gens qui pensent que les mathématiciens sont à la recherche de vérités ultimes et que leurs travaux sont totalement objectifs. Or, seul le processus mathématique est objectif, les bases sur lesquelles on construit les théorèmes, les axiomes, sont purement subjectives.&lt;br /&gt;&lt;br /&gt;On se donne des règles de façon arbitraire, puis, en procédant selon les seules lois de la logique, on développe une théorie complexe et cohérente. Cependant, cette théorie n'est jamais plus "réelle" ou "vraie" que les axiomes qui la supportent et comme ces derniers ne sont pas plus objectifs que des dogmes religieux, on peut développer une théorie mathématique qui n'est pas plus "vraie" que ceux-ci.&lt;br /&gt;&lt;br /&gt;Nombre de mathématiciens étudient des objets abstraits qui n'ont aucune ressemblance avec les objets que l'expérience quotidienne nous amène à rencontrer. Toutefois, la majorité des mathématiciens (dont moi-même) étudions des théories mathématiques qui reposent sur des axiomes qui ont été formulé de telle sorte qu'ils représentent le plus fidèlement possible le monde qui nous entoure.&lt;br /&gt;&lt;br /&gt;Lorsqu'on fait des mathématiques, ce qui nous intéresse c'est le processus mental, le cheminement logique qui nous mène des axiomes aux théorèmes les plus complexes. Quiconque prétend que ces théorèmes s'appliquent au réel fait un acte de foi qui n'est pas plus valable et qui l'est tout autant que l'acte de foi que fait celui qui choisit de suivre une religion.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-2654339259258573274?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/2654339259258573274/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2009/02/des-axiomes-mathematiques.html#comment-form' title='7 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/2654339259258573274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/2654339259258573274'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2009/02/des-axiomes-mathematiques.html' title='Des axiomes mathématiques'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-8629460951480994628</id><published>2008-11-14T19:24:00.013-05:00</published><updated>2009-03-09T13:54:52.492-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='photographie'/><category scheme='http://www.blogger.com/atom/ns#' term='physique'/><title type='text'>Optique 101 (partie 1)</title><content type='html'>&lt;div style="text-align: left;"&gt;Pour comprendre comment fonctionne la vue et comment fonctionne un appareil photographique, on doit d'abord connaître quelques principes fondamentaux d'optique géométrique. Nous verrons la propagation de la lumière en ligne droite, la loi de Snell-Descartes et les propriétés des lentilles minces.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;La lumière visible est une &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;onde électromagnétique&lt;/span&gt;, c'est-à-dire un champ magnétique et un champ magnétique qui se propagent dans l'espace en oscillant. Pour bien comprendre les phénomènes impliquant la lumière, on doit utiliser les équations de l'électromagnétisme découvertes par James Clerk Maxwell au XIXe siècle et la mécanique quantique du XXe siècle. Heureusement, on peut comprendre le fonctionnement des lentilles et miroirs en faisant plusieurs simplifications qui nous permettent d'ignorer ces théories physiques complexes.&lt;br /&gt;&lt;br /&gt;D'abord, on suppose que la &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;lumière se déplace en ligne droite&lt;/span&gt;. Cette ligne droite correspond à la direction de propagation du champ électromagnétique. Pour notre analyse, il est souvent utile de considérer  des rayons de lumière. Un rayon de lumière peut, par exemple, correspondre à la trajectoire d'un faisceau laser, ou à la lumière qui provient du sommet de la tour Eiffel et qui parvient à votre oeil.&lt;br /&gt;&lt;br /&gt;Deux lois fondamentales de l'optique ont d'abord été trouvées empiriquement, puis expliquées théoriquement par les équations de Maxwell. D'abord, &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;la loi de la réflexion&lt;/span&gt;, découverte environ 1000 ans après Jésus Christ par un arabe du nom d'Alhazen, stipule que lorsqu'un rayon de lumière atteint une surface, l'angle d'incidence &lt;em&gt;θ&lt;sub&gt;i&lt;/sub&gt;&lt;/em&gt; et l'angle de réflexion &lt;em&gt;θ&lt;sub&gt;r&lt;/sub&gt;&lt;/em&gt; (mesurés par rapport à une droite perpendiculaire à la surface, la &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;normale&lt;/span&gt;) sont égaux:&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;em&gt;          θ&lt;sub&gt;i&lt;/sub&gt;&lt;/em&gt; = &lt;em&gt;θ&lt;sub&gt;r&lt;/sub&gt;&lt;/em&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_HyYHulp_e30/SR4adIhjfXI/AAAAAAAABmw/_CTRYJxATfQ/s1600-h/reflexion.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://4.bp.blogspot.com/_HyYHulp_e30/SR4adIhjfXI/AAAAAAAABmw/_CTRYJxATfQ/s400/reflexion.png" alt="" id="BLOGGER_PHOTO_ID_5268677701876809074" border="0" /&gt;&lt;/a&gt;De plus, le rayon incident, le rayon réfléchi et la normale à la surface sont dans le même plan, qu'on appelle plan d'incidence. La lumière se comporte donc comme une boule de billard qui frappe la bande : les angles d'incidence et de réflexion sont égaux, et la boule demeure sur la table.&lt;br /&gt;&lt;br /&gt;Beaucoup plus tard, en 1621, Willebrord Snell découvre la &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;loi de la réfraction&lt;/span&gt;. Cette loi, connu sous le nom de loi de Snell, a été publiée pour la première fois dans une notation mathématique moderne par René Descartes quelques années plus tard. Pour cette raison, on l'appelle parfois la loi de Snell-Descartes. Lorsque la lumière passe d'un milieu transparent à un autre (par exemple, de l'air au verre) sa vitesse change et ce changement de vitesse, jumelé avec le principe de moindre action (qui veut dire, grosso modo, que la lumière emprunte le chemin le plus court possible entre deux points), entraîne un changement de direction du rayon lumineux.&lt;br /&gt;&lt;br /&gt;Chaque milieu transparent est caractérisé par un i&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;ndice de réfraction&lt;/span&gt;, noté &lt;em&gt;n&lt;/em&gt;. Cet indice est le rapport entre la vitesse de la lumière dans le vide et la vitesse de la lumière dans le milieu considéré. Par exemple, la lumière se propage un quart de fois moins vite dans l'eau que dans le vide ce qui donne pour l'eau :&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;em&gt;          n&lt;sub&gt;eau&lt;/sub&gt;&lt;/em&gt; = &lt;em&gt;v&lt;sub&gt;vide&lt;/sub&gt;&lt;/em&gt; / &lt;em&gt;v&lt;sub&gt;eau&lt;/sub&gt;&lt;/em&gt;&lt;br /&gt;&lt;/div&gt;&lt;em&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;&lt;em&gt;          n&lt;sub&gt;eau&lt;/sub&gt;&lt;/em&gt; = &lt;em&gt;v&lt;sub&gt;vide&lt;/sub&gt;&lt;/em&gt; / ((1 - 1/4)*&lt;em&gt;v&lt;sub&gt;vide&lt;/sub&gt;&lt;/em&gt;)&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/em&gt;&lt;em&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;&lt;em&gt;          n&lt;sub&gt;eau&lt;/sub&gt;&lt;/em&gt; = 1,33&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/em&gt;&lt;br /&gt;La loi de Snell-Descartes fait le lien entre les indices de réfraction et les angles d'incidence et de réfraction. Si un rayon de lumière passe du milieu 1 au milieu 2, d'indices de réfraction &lt;em&gt;n&lt;sub&gt;1&lt;/sub&gt;&lt;/em&gt; et &lt;em&gt;n&lt;sub&gt;2&lt;/sub&gt;&lt;/em&gt; respectivement, a un angle d'incidence &lt;em&gt;θ&lt;sub&gt;i&lt;/sub&gt;&lt;/em&gt;, alors l'angle du rayon transmis &lt;em&gt;θ&lt;sub&gt;t&lt;/sub&gt;&lt;/em&gt; respectera la relation :&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;em&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;          n&lt;/span&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/em&gt; sin&lt;em&gt;θ&lt;sub&gt;i&lt;/sub&gt;&lt;/em&gt; = &lt;em&gt;n&lt;sub&gt;2&lt;/sub&gt;&lt;/em&gt; sin&lt;em&gt;θ&lt;sub&gt;t&lt;/sub&gt;&lt;/em&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_HyYHulp_e30/SR4adZz-6II/AAAAAAAABm4/dQsj1m_xJcM/s1600-h/refraction.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://4.bp.blogspot.com/_HyYHulp_e30/SR4adZz-6II/AAAAAAAABm4/dQsj1m_xJcM/s400/refraction.png" alt="" id="BLOGGER_PHOTO_ID_5268677706517506178" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;De plus, le rayon incident, le rayon transmis et la normale sont dans le même plan, comme pour la réflection.&lt;br /&gt;&lt;br /&gt;Le milieu le plus réfringent est celui avec l'indice de réfraction le plus élevé. Si le rayon lumineux passe du milieu le moins réfringent au milieu le plus réfringent, il se &lt;/div&gt;&lt;div&gt;rapprochera de la normale. S'il passe du milieu le plus réfringent au milieu le moins réfringent, il s'éloignera de la normale.&lt;br /&gt;&lt;br /&gt;La loi de Snell-Descartes est fondamentale pour comprendre le fonctionnement d'une partie cruciale d'un appareil photo : la lentille. Nous verrons dans le prochain article comment fonctionne une lentille.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-8629460951480994628?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/8629460951480994628/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2008/11/optique-101-partie-1.html#comment-form' title='4 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/8629460951480994628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/8629460951480994628'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2008/11/optique-101-partie-1.html' title='Optique 101 (partie 1)'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_HyYHulp_e30/SR4adIhjfXI/AAAAAAAABmw/_CTRYJxATfQ/s72-c/reflexion.png' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-2392805814189679331</id><published>2008-11-13T17:40:00.001-05:00</published><updated>2008-11-13T17:42:01.457-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='photographie'/><category scheme='http://www.blogger.com/atom/ns#' term='physique'/><title type='text'>La physique et les maths de la photo</title><content type='html'>Ceci est le premier d'une série d'article sur la physique et les mathématiques de la photographie. La photographie est une activité que beaucoup de gens pratiquent sans savoir à quel point l'appareil qu'ils ont entre les mains est une petite merveille de science et d'ingénierie. Étant moi-même un scientifique, ces articles couvriront davantage la science que le génie.&lt;br /&gt;&lt;br /&gt;J'ai en tête des articles sur les aberrations optiques (chromatique, sphérique, etc.), le nombre-f, le lien entre l'ouverture du diaphragme et la profondeur de champ, la polarisation,  et la compression JPEG. Probablement qu'en cours de route j'ajouterai d'autres sujets qui me passeront par la tête. S'il y a un aspect de la photographie qui vous intéresse particulièrement, laissez-moi un commentaire et je verrai ce que je peux faire.&lt;br /&gt;&lt;br /&gt;Les deux premiers articles seront des introductions en douceur aux concepts de base d'optique géométrique et au fonctionnement d'un appareil photographique. J'ai choisi les titres inspirés &lt;em&gt;Optique 101&lt;/em&gt; et &lt;em&gt;Appareil Photographique 101&lt;/em&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-2392805814189679331?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/2392805814189679331/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2008/11/la-physique-et-les-maths-de-la-photo.html#comment-form' title='1 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/2392805814189679331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/2392805814189679331'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2008/11/la-physique-et-les-maths-de-la-photo.html' title='La physique et les maths de la photo'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-4984607396283200774</id><published>2008-09-30T18:24:00.003-04:00</published><updated>2008-09-30T19:37:29.602-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ineptie'/><title type='text'>L'antre de la bête</title><content type='html'>Dans un élan d'exhibitionnisme, je vous montre ici mon milieu de travail. On constate la grande organisation qui règne sur mon bureau...&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_HyYHulp_e30/SOKnqSchJBI/AAAAAAAABf0/4IUUibpNjvY/s1600-h/IMG_1143.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_HyYHulp_e30/SOKnqSchJBI/AAAAAAAABf0/4IUUibpNjvY/s400/IMG_1143.jpg" alt="" id="BLOGGER_PHOTO_ID_5251944460415214610" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Et voici les instruments essentiels à la tâche du mathématicien :&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_HyYHulp_e30/SOKnqTgxthI/AAAAAAAABf8/jO9PyF3ESG8/s1600-h/IMG_1146.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_HyYHulp_e30/SOKnqTgxthI/AAAAAAAABf8/jO9PyF3ESG8/s400/IMG_1146.jpg" alt="" id="BLOGGER_PHOTO_ID_5251944460701513234" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-4984607396283200774?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/4984607396283200774/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2008/09/lantre-de-la-bte.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/4984607396283200774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/4984607396283200774'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2008/09/lantre-de-la-bte.html' title='L&apos;antre de la bête'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_HyYHulp_e30/SOKnqSchJBI/AAAAAAAABf0/4IUUibpNjvY/s72-c/IMG_1143.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-4715021335335756182</id><published>2008-09-23T18:47:00.002-04:00</published><updated>2008-09-23T19:15:13.001-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Manipuler des symboles</title><content type='html'>Les mathématiques sont percues par beaucoup de gens, dont plusieurs mathématiciens, comme étant un ensemble de règles qui dictent comment manipuler des symboles. En manipulant ces symboles, on arrive à formuler les "phrases" mathématiques que sont les théorèmes. Bien sûr, la plupart du temps, des significations sont données à ces symboles et les théorèmes peuvent être exprimés en langage courant.&lt;br /&gt;&lt;br /&gt;Par exemple, "+" est universellement reconnu comme le symbole de l'addition. Cette opération, qui consiste à mettre ensemble deux "paquets" d'objets similaire, signifie quelque chose de très concret.&lt;br /&gt;&lt;br /&gt;Or, il arrive que dans une preuve la manipulation de symboles prenne le dessus sur la signification des calculs effectués. Pour moi, la preuve perd alors toute élégance et le théorème qu'elle démontre perd de son intérêt. Un résultat qu'on ne peut expliquer en mots n'est pas un résultat qui est devenu suffisamment mature pour mériter une grande attention.&lt;br /&gt;&lt;br /&gt;Ce qui fait la beauté de certains résultats (le théorème de Pythagore, pour citer un exemple connu), c'est le fait que leur formulation en langage courant est "facile", et que la preuve s'appuie sur des idées que l'on peut décrire avec des mots, sans avoir recours à des formules.&lt;br /&gt;&lt;br /&gt;Les symboles et les calculs ont évidemment une utilité. Ils servent à simplifier certaines étapes du raisonnement et à obtenir des résultats précis. Néanmoins, ils ne doivent jamais prendre le dessus sur le sens de la preuve.&lt;br /&gt;&lt;br /&gt;Les idées sont plus importantes que les calculs. Et, étrangement, il est beaucoup plus difficile de formuler des idées que d'effectuer des calculs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-4715021335335756182?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/4715021335335756182/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2008/09/manipuler-des-symboles.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/4715021335335756182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/4715021335335756182'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2008/09/manipuler-des-symboles.html' title='Manipuler des symboles'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-5005068235951720029</id><published>2008-09-12T11:50:00.010-04:00</published><updated>2008-09-12T12:30:46.616-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Triangulations créatives</title><content type='html'>On peut représenter les objets tridimensionnels par des triangles collés les uns aux autres de telle sorte qu'ils épousent les formes de l'objet. On appelle une telle construction une triangulation. Une fois qu'on a obtenu une triangulation, on peut la raffiner en divisant les triangles en triangles plus petits. Cet article présentera des méthodes de raffinement qui, lorsqu'on représente graphiquement les triangles qu'elles produisent, génèrent des dessins dont la beauté surprend.&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Raffiner une triangulation&lt;/h4&gt;De l'animation par ordinateur au design d'aéronefs en passant par l'imagerie médicale, les applications de l'imagerie tridimensionnelle sont multiples. Les logiciels utilisés dans ces applications nécessitent une représentation d'objets tridimensionnels dans un langage compréhensible pour un ordinateur. On se heurte alors au problème de trouver un compromis entre une représentation fidèle de l'objet initial et une utilisation raisonnable des ressources matérielles de l'ordinateur : processeur, mémoire vive, espace de stockage sur disque dur, etc. Une méthode fréquemment utilisée consiste à trianguler la surface de l'objet, c'est-à-dire à recouvrir le mieux possible la surface de l'objet par des triangles, puis à raffiner cette triangulation initiale pour obtenir une meilleure représentation &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://gts.sourceforge.net/gallery/heads.png"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 320px;" src="http://gts.sourceforge.net/gallery/heads.png" alt="" border="0" /&gt;&lt;/a&gt;des courbes de cette surface. On arrête de raffiner lorsque les calculs impliqués deviennent trop exigeant pour l'ordinateur.&lt;br /&gt;&lt;br /&gt;L'image ci-contre montre un exemple d'un objet tridimensionnel, une tête, et de trois triangulations de celle-ci. Les deux triangulations de droite sont des raffinements de celle de gauche. Les raffinements comptent beaucoup plus de triangles et semblent épouser les contours du visage beaucoup mieux.&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Raffinement par division de triangles&lt;/h4&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_HyYHulp_e30/SMqSR_7xQxI/AAAAAAAABes/C4nix5PDPes/s1600-h/divisetriangle.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://1.bp.blogspot.com/_HyYHulp_e30/SMqSR_7xQxI/AAAAAAAABes/C4nix5PDPes/s320/divisetriangle.png" alt="" id="BLOGGER_PHOTO_ID_5245165553943921426" border="0" /&gt;&lt;/a&gt;Une idée qu'on peut exploiter pour raffiner une triangulation consiste à diviser chacun des triangles existants en plusieurs triangles. En choisissant un point à l'intérieur d'un triangle et en faisant passer des droites par ce point et par chacun des sommets, le triangle initial est divisé en six triangles plus petits. En appliquant cet algorithme simple, qui est illustré ci-dessous, à une triangu lation, on obtient un raffinement. Chaque fois qu'on répète cette division, le nombre de triangle est multiplié par six. Donc après &lt;em&gt;k&lt;/em&gt; itérations (i.e. : répétitions), le nombre de triangles initial est multiplié par 6&lt;sup&gt;k&lt;/sup&gt;.&lt;br /&gt;&lt;br /&gt;Il existe une infinité de choix pour le point à l'intérieur du triangle. Chacun de ces choix engendrera des triangles différents. En général, les triangles longs et étroits sont moins utiles pour représenter des courbes. On leur préfère des triangles plus semblables à un triangle équilatéral. Il faut donc à trouver un point spécifique à l'intérieur du triangle qui servira à le diviser et qui engendrera le plus possible des triangles "presque" équilatéraux.&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Une représentation abstraite de tous les triangles par un triangle&lt;/h4&gt; Un résultat élémentaire de géométrie euclidienne dit que tous les triangles qui ont les mêmes angles sont semblables ; c'est-à-dire que si deux triangles ont les mêmes trois angles, un de ces triangles est un agrandissement de l'autre. On appelle une homothétie l'agrandissement ou le rapetissement qui permet de passer d'un triangle à l'autre. Puisque l'objectif de nos raffinement est de trouver des triangles qui sont proches d'un triangle équilatéral, on n'a pas à se soucier de la taille de ces triangles, tout ce qui compte, ce sont les trois angles.&lt;br /&gt;&lt;br /&gt;En somme, à une homothétie près, tous les triangles sont spécifiés uniquement par leurs trois angles. La somme des angles d'un triangle est 180° et chaque angle est compris entre 0° et 180° exclusivement. Si on nomme les angles &lt;em&gt;x&lt;/em&gt;, &lt;em&gt;y&lt;/em&gt; et &lt;em&gt;z&lt;/em&gt;, on aura donc :&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_HyYHulp_e30/SMqTX2kOHAI/AAAAAAAABe0/HxV1VTHq9J4/s1600-h/plantriangle.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: right; cursor: pointer; width: 298px; height: 298px;" src="http://2.bp.blogspot.com/_HyYHulp_e30/SMqTX2kOHAI/AAAAAAAABe0/HxV1VTHq9J4/s320/plantriangle.jpg" alt="" id="BLOGGER_PHOTO_ID_5245166754020072450" border="0" /&gt;&lt;/a&gt;  &lt;ul&gt;&lt;li&gt;0 &amp;#60; &lt;em&gt;x&lt;/em&gt; &amp;#60; 180&lt;/li&gt;&lt;li&gt;0 &amp;#60; &lt;em&gt;y&lt;/em&gt; &amp;#60; 180&lt;/li&gt;&lt;li&gt;0 &amp;#60; &lt;em&gt;z&lt;/em&gt; &amp;#60; 180&lt;/li&gt;&lt;li&gt;&lt;em&gt;x&lt;/em&gt; + &lt;em&gt;y&lt;/em&gt; + &lt;em&gt;z&lt;/em&gt; = 180 &lt;/li&gt;&lt;/ul&gt; On peut interpréter les angles comme trois coordonnées dans l'espace cartésien en trois dimensions. Les points de l'espace cartésien qui correspondent aux quatre contraintes ci-haut forment une section de plan de forme triangulaire que nous appellerons &lt;em&gt;T&lt;/em&gt; (voir figure ci-contre).&lt;br /&gt;&lt;br /&gt;Ce sous ensemble de l'espace cartésien est donc une représentation abstraite de tous les triangles imaginables. Le point central de &lt;em&gt;T&lt;/em&gt; est le triangle équilatéral. Les points proches des côtés de &lt;em&gt;T&lt;/em&gt; sont des triangles dont au moins un angle est très petit et qui sont donc très allongés.&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Histogrammes de raffinement&lt;/h4&gt;On peut choisir un triangle et un point donné à l'intérieur des triangles pour faire un raffinement. On raffine notre triangle initial un grand nombre de fois pour obtenir plusieurs petits triangles. Chacun de ces petits triangles peut être représenté par un point noir dans &lt;em&gt;T&lt;/em&gt;. Selon le nombre de triangles présents dans chaque région de &lt;em&gt;T&lt;/em&gt;, il y aura plus ou moins de points noirs et on obtiendra une région plus ou moins sombre. L'image qu'on obtient est un histogramme de densité de points.&lt;br /&gt;&lt;br /&gt;Ci-dessous se trouvent des histogrammes obtenus à partir de différents points à l'intérieur des triangles. On retrouve, dans l'ordre, la méthode de la bissectrice, la méthode du point de Gergonne et la méthode du point de Lemoine. (Ces images ont été obtenue grâce à la courtoisie de Steve Butler.)&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_HyYHulp_e30/SMqUjftUt_I/AAAAAAAABe8/nP0mYxG1li8/s1600-h/Bisector_Histogram.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_HyYHulp_e30/SMqUjftUt_I/AAAAAAAABe8/nP0mYxG1li8/s400/Bisector_Histogram.jpg" alt="" id="BLOGGER_PHOTO_ID_5245168053554296818" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_HyYHulp_e30/SMqUjmEtpoI/AAAAAAAABfE/IUiNwlbNr3M/s1600-h/Gergonne_Histogram.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_HyYHulp_e30/SMqUjmEtpoI/AAAAAAAABfE/IUiNwlbNr3M/s400/Gergonne_Histogram.jpg" alt="" id="BLOGGER_PHOTO_ID_5245168055263012482" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_HyYHulp_e30/SMqUjgnQodI/AAAAAAAABfM/dQhH3Lb6le8/s1600-h/Lemoine_Histogram.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_HyYHulp_e30/SMqUjgnQodI/AAAAAAAABfM/dQhH3Lb6le8/s400/Lemoine_Histogram.jpg" alt="" id="BLOGGER_PHOTO_ID_5245168053797298642" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;En plus d'avoir une certaine qualité esthétique, ces images donnent de l'information sur l'utilité des points intérieurs utilisés. On constate que pour la méthode de la bissectrice, le centre de &lt;em&gt;T&lt;/em&gt; est assez sombre donc beaucoup de triangles presque équilatéraux sont produits ce qui est excellent.&lt;br /&gt;&lt;br /&gt;Le point de Gergonne donne un histogramme qui ressemble à un neurone. Les points sont concentrés dans une toute petite région ce qui signifie que les triangles obtenus ont tous une forme bien particulière.&lt;br /&gt;&lt;br /&gt;Même si le point de Lemoine est le moins utile pour faire des raffinements en raison du grand nombre de triangles étroits qu'il produit (en effet, on constate que les côtés de &lt;em&gt;T&lt;/em&gt; sont sombres), c'est celui qui génère, à mon avis, le plus bel histogramme.&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;La transformation de &lt;em&gt;T&lt;/em&gt;&lt;/h4&gt;À la section précédente on s'est intéressé à l'effet d'un choix de point intérieur sur un triangle donné après un grand nombre d'itération. On peut aussi examiner l'effet de ce choix sur l'ensemble de &lt;em&gt;T&lt;/em&gt; après une itération. L'algorithme prend des triangles de &lt;em&gt;T&lt;/em&gt; et les envoie vers d'autres triangles de &lt;em&gt;T&lt;/em&gt; : il modifie donc complètement l'ensemble des triangles.&lt;br /&gt;&lt;br /&gt;On peut visualiser ce qui se passe en divisant &lt;em&gt;T&lt;/em&gt; en plusieurs régions (qu'on prend triangulaire parce qu'il est plus facile de diviser un triangle en triangles plutôt qu'en dodécagones) qu'on colore en noir et blanc. Puis, on applique l'algorithme à tous les triangles et on observe où les triangles fils obtenus se retrouvent dans &lt;em&gt;T&lt;/em&gt;. En gardant les mêmes divisions et les mêmes colorations, on obtient une carte de la disposition des triangles fils.&lt;br /&gt;&lt;br /&gt;Ci-dessous, dans l'ordre, &lt;span style="font-style: italic;"&gt;T&lt;/span&gt; divisé en régions, la méthode du point de Gergonne, la méthode du point de Lemoine et la méthode de la médiane. (Images courtoisie de Steve Butler.)&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_HyYHulp_e30/SMqVYhFMJhI/AAAAAAAABfU/17EEA3nKt2w/s1600-h/unmapped.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_HyYHulp_e30/SMqVYhFMJhI/AAAAAAAABfU/17EEA3nKt2w/s400/unmapped.jpg" alt="" id="BLOGGER_PHOTO_ID_5245168964455900690" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_HyYHulp_e30/SMqVYy73NMI/AAAAAAAABfc/CX8YHsSOxt4/s1600-h/Gergonne_map.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_HyYHulp_e30/SMqVYy73NMI/AAAAAAAABfc/CX8YHsSOxt4/s400/Gergonne_map.jpg" alt="" id="BLOGGER_PHOTO_ID_5245168969248617666" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_HyYHulp_e30/SMqVY5sxIjI/AAAAAAAABfk/d-bXSuNzzNc/s1600-h/Lemoine_map.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_HyYHulp_e30/SMqVY5sxIjI/AAAAAAAABfk/d-bXSuNzzNc/s400/Lemoine_map.jpg" alt="" id="BLOGGER_PHOTO_ID_5245168971064353330" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_HyYHulp_e30/SMqVZN8LmVI/AAAAAAAABfs/TxG37nzgN7o/s1600-h/median_map.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_HyYHulp_e30/SMqVZN8LmVI/AAAAAAAABfs/TxG37nzgN7o/s400/median_map.jpg" alt="" id="BLOGGER_PHOTO_ID_5245168976497711442" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Conclusion&lt;/h4&gt;Les histogrammes obtenus par le raffinement de triangulations ressemblent à des dessins au fusain. On y retrouve une symétrie évidente, des dégradés surprenant et des formes étrangement organiques. Les diagrammes des transformations de &lt;em&gt;T&lt;/em&gt; font penser à certaines gravures d'Escher.&lt;br /&gt;&lt;br /&gt;L'étude des raffinements avait pour but de faciliter la modélisation tridimensionnelle, et, comme sous-produit de cette étude, des images très belles sont apparues. Place à la créativité triangulaire !&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Remerciements&lt;/em&gt; : je tiens à remercier Steve Butler pour m'avoir fourni ses images et m'avoir permis de les utiliser sur ce site. Je remercie également &lt;a href="http://www.math.ucsd.edu/%7Efan/ron/"&gt;Ron Graham&lt;/a&gt; et &lt;a href="http://www.math.ucsd.edu/%7Esbutler/"&gt;Steve Butler&lt;/a&gt; pour m'avoir initié aux raffinements de triangulations lors de CCCG 2008.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-5005068235951720029?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/5005068235951720029/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2008/09/triangulations-cratives.html#comment-form' title='2 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/5005068235951720029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/5005068235951720029'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2008/09/triangulations-cratives.html' title='Triangulations créatives'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_HyYHulp_e30/SMqSR_7xQxI/AAAAAAAABes/C4nix5PDPes/s72-c/divisetriangle.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-5339006400174228413</id><published>2008-09-10T10:34:00.003-04:00</published><updated>2008-09-10T13:21:57.776-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='physique'/><title type='text'>Le LHC démarre !</title><content type='html'>Une grande nouvelle pour les physiciens et les curieux qui s'interrogent sur la nature de l'univers. Le Large Hadron Collider (LHC, grand collisioneur de proton en français), le plus grand accélérateur de particule construit par l'homme, a été mis en route aujourd'hui. Sa mise en marche a été retardée à quelques reprises, mais finalement, nous y sommes.&lt;br /&gt;&lt;br /&gt;Le LHC est un immense complexe dont la composante principale est un tube de 27km de circonférence dans lequel voyageront deux faisceaux de protons. Pour l'instant, un seul faisceau a été injecté dans l'accélérateur, le deuxième le sera dans quelques semaines. Ces faisceaux entreront en collision à quatre endroits prédéterminés autour du tube où des détecteurs gigantesques recueilleront des données sur les résultats des collisions. Par exemple, ATLAS, un des détecteurs, pèse 7000 tonnes, mesure 25 mètres de haut et 45 mètres de long.&lt;br /&gt;&lt;br /&gt;L'étude de ces collisions à haute énergie (14 TeV) permettra de rechercher des preuves expérimentales de l'existence du boson de Higgs (la particule qui est sensé donner une masse à toutes les autres), de dimensions supplémentaires (qui sont requises par la théorie des supercordes, par exemple) et de la supersymétrie. De plus, LHC permettra de mieux comprendre les différences entre la matière et l'antimatière (entre autre, pourquoi y a-t-il plus de matière que d'antimatière) et peut-être même d'élucider le mystère de la matière sombre.&lt;br /&gt;&lt;br /&gt;Le LHC est une des plus grandes réalisations technique de l'être humain. Les protons voyageront à une vitesse proche de celle de la lumière grâce à un système complexe d'aimants refroidi à des températures proche du zéro absolu (1,9K). La quantité de données générées par les quatre détecteurs atteindra 15 millions de gigaoctets qui devront être analysés, filtrés et stockés, ce qui nécessitera des ordinateurs parmi les plus puissants du monde.&lt;br /&gt;&lt;br /&gt;Plus de détails sur&lt;br /&gt;&lt;ul&gt;&lt;li&gt;la nouvelle : &lt;a href="http://www.radio-canada.ca/nouvelles/Science-Sante/2008/09/09/002-collisionneur-reeves-Hawking.shtml"&gt;Radio-Canada.ca&lt;/a&gt;, &lt;a href="http://www.cyberpresse.ca/article/20080910/CPSCIENCES/80910007/1020/CPSCIENCES"&gt;Cyberpresse&lt;/a&gt;&lt;/li&gt;&lt;li&gt;le LHC : &lt;a href="http://public.web.cern.ch/Public/fr/LHC/LHC-fr.html"&gt;CERN&lt;/a&gt;, &lt;a href="http://www.youtube.com/watch?v=j50ZssEojtM"&gt;the LHC rap&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-5339006400174228413?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/5339006400174228413/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2008/09/le-lhc-dmarre.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/5339006400174228413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/5339006400174228413'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2008/09/le-lhc-dmarre.html' title='Le LHC démarre !'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-8978153164611934777</id><published>2008-09-07T11:04:00.004-04:00</published><updated>2008-09-11T02:22:27.923-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Le dilemme du prisonnier</title><content type='html'>Le "jeu", au sens de la théorie des jeux, le plus connu est sans conteste le dilemme du prisonnier. Deux suspects sont arrêtés relativement à un crime donné. Ils sont interrogés séparément et ne peuvent communiquer d'aucune façon que ce soit. Ils connaissent tous deux les règles : lors de son interrogatoire, le suspect peut accuser l'autre suspect et bénéficier d'une peine moindre pour avoir collaboré avec la police, ou prétendre qu'ils sont tous les deux innocents. Si les deux suspects s'accusent mutuellement, ils purgeront tous les deux une peine de 9 ans. Si un des suspects accuse son collègue et l'autre affirme son innocence, le premier n'ira pas en prison et le second purgera 10 ans. Enfin, si les deux affirment leur innocence, ils purgeront tous deux 1 ans pour infraction mineure.&lt;br /&gt;&lt;br /&gt;Quelle est la stratégie gagnante pour chaque prisonnier ? Le prisonnier 1 doit choisir entre accuser (A) et innocenter (I). Supposons que le prisonnier 2 choisisse I, alors, 1 a le choix entre purger 1 an s'il choisi I, ou rien du tout s'il choisi A. Donc sa stratégie gagnante dans ce cas est A. Si le prisonnier 2 a choisi A, 1 a le choix entre purger 10 ans s'il choisi I ou 9 ans s'il choisi A. Encore une fois, la stratégie gagnante est A.&lt;br /&gt;&lt;br /&gt;Puisque 1 n'a aucune façon de savoir la réponse de 2, et que dans tous les cas il s'en sort avec une peine moindre s'il choisi A, c'est définitivement sa meilleure option. Le raisonnement est identique pour le prisonnier 2. Alors, il semble que le seul résultat sensé pour ce jeu soit que les deux prisonniers s'accusent mutuellement et purgent chacun 9 ans. Cette solution est appelée un point d'équilibre de Nash pour ce jeu.&lt;br /&gt;&lt;br /&gt;Un point d'équilibre de Nash est un choix de stratégie pour chaque joueur tel que si un joueur décide de changer sa stratégie, il aura une peine plus grande. Le nom viens du mathématicien John Forbes Nash, prix Nobel d'économie 1994, dont l'histoire romancée est décrite dans le film "A beautiful mind".&lt;br /&gt;&lt;br /&gt;Revenons au dilemme des prisonniers. L'équilibre de Nash pour ce jeu fait en sorte que chaque prisonnier purge un grand nombre d'années en prison. Il existe pourtant une solution à ce jeu qui est beaucoup plus avantageuse "socialement". Si les deux innocentent leur collègue, ils ne purgeront qu'un an chacun. La collaboration, dans ce contexte, est une bien meilleure option que l'avarice.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-8978153164611934777?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/8978153164611934777/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2008/09/le-dilemme-du-prisonnier.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/8978153164611934777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/8978153164611934777'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2008/09/le-dilemme-du-prisonnier.html' title='Le dilemme du prisonnier'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-7132978502733800917</id><published>2008-05-14T17:30:00.001-04:00</published><updated>2008-09-10T13:23:28.392-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='ineptie'/><title type='text'>La complexité de l'enseignement</title><content type='html'>&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;Concernant le problème TEACH défini ci-dessous, j'ai obtenu un résultat intéressant de complexité.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Problème :&lt;/span&gt; TEACH&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Exemple :&lt;/span&gt; Un groupe d'étudiants &lt;span class="Apple-style-span" style="font-style: italic;"&gt;E = &lt;/span&gt;{&lt;span class="Apple-style-span" style="font-style: italic;"&gt;e_&lt;/span&gt;1, ..., &lt;span class="Apple-style-span" style="font-style: italic;"&gt;e_n&lt;/span&gt;}, un sujet &lt;span class="Apple-style-span" style="font-style: italic;"&gt;S &lt;/span&gt;et un cours &lt;span class="Apple-style-span" style="font-style: italic;"&gt;C&lt;/span&gt;.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Question : &lt;/span&gt;Est-ce qu'au moins &lt;span class="Apple-style-span" style="font-style: italic;"&gt;k&lt;/span&gt; étudiants vont passer le cours ?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Le problème est difficile.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Proposition :&lt;/span&gt; &lt;span class="Apple-style-span" style="font-style: italic;"&gt;Le problème TEACH est NP-difficile.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;Preuve&lt;/span&gt; : La preuve repose sur une réduction à partir du problème de couplage en 3 dimensions (3D-MATCHING). Détails à venir.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Des inspirations transcendantales me font croire que le problème est aussi NP-complet, quoique je n'ai aucune idée de preuve pour appuyer ma conjecture. Toute contribution est la bienvenue.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Conjecture : &lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;Le problème TEACH est NP-complet.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-7132978502733800917?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/7132978502733800917/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2008/05/la-complexit-de-lenseignement.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/7132978502733800917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/7132978502733800917'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2008/05/la-complexit-de-lenseignement.html' title='La complexité de l&apos;enseignement'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-287194438019545662</id><published>2008-05-11T10:50:00.001-04:00</published><updated>2008-09-10T13:24:09.255-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Pourquoi les nombres entiers sont parfois essentiels ?</title><content type='html'>On a tendance à sous-estimer l'utilité et la signification des nombres entiers. Dans cet &lt;a href="http://www.theglobeandmail.com/servlet/story/RTGAM.20080510.wobama0510/BNStory/International/?page=rss&amp;amp;id=RTGAM.20080510.wobama0510"&gt;article&lt;/a&gt; du &lt;span class="Apple-style-span" style="font-style: italic;"&gt;Globe and Mail&lt;/span&gt; du 10 mai, on peut lire cette charmante phrase :&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;Nearly 800 superdelegates will attend the convention. Mr. Obama has endorsements from 275, according to the latest tally by The Associated Press. Ms. Clinton has 271.5.&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Hum, j'ignore ce qu'est un demi-superdélégué. Pourquoi madame Clinton a-t-elle l'appui de 271.5 superdélégués ? D'où vient ce demi frauduleux ? On s'imagine qu'il s'agit d'une approximation statistique basée sur un modèle quelconque. Mais, dans ce contexte, l'utilisation de résultats fractionnaires n'a aucun sens.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Parfois, on peut interpréter un résultat fractionnaire comme une  proportion. Or, ici, il est question d'un nombre de personnes, pas d'une proportion. Il est donc tout à fait déraisonnable de dire que madame Clinton a l'appui d'un demi-délégué.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-287194438019545662?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/287194438019545662/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2008/05/pourquoi-les-nombres-entiers-sont.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/287194438019545662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/287194438019545662'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2008/05/pourquoi-les-nombres-entiers-sont.html' title='Pourquoi les nombres entiers sont parfois essentiels ?'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-7721458293170359638</id><published>2008-03-21T11:39:00.002-04:00</published><updated>2008-09-11T02:23:22.450-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='recherche opérationnelle'/><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>La programmation en nombres entiers.</title><content type='html'>Qu'est-ce qui fait de la programmation en nombres entiers un sujet intéressant ? Pourquoi une poignée de mathématiciens dépensent-ils quelques milliers de dollars pour se réunir et en discuter ? Sans doute en saurais-je un peu plus à mon retour de la session de travail sur la programmation en nombres entiers qui se tient dans une semaine à la Barbade.&lt;br /&gt;&lt;br /&gt;D'ici là, voici ce que j'en sais pour vous mettre l'eau à la bouche. Tout d'abord, la programmation en nombres entiers (PNE) est une sous-catégorie de problèmes de la programmation linéaire (PL). En PL, on veut résoudre des problèmes d'optimisation du genre :&lt;br /&gt;&lt;br /&gt;minimiser f(x)&lt;br /&gt;sous les contraintes c_i (x) = 0  pour i dans E&lt;br /&gt;                                   c_i (x) &lt;= 0 pour i dans I où E et I sont des ensembles d'indices, les c_i et f sont des fonctions linéaires. En PNE, on rajoute la contrainte que la solution doit être entière. Parfois, on parle de programmation mixte (PM) où certaines variables seulement doivent être entières.  Une des applications les plus importantes de la PNE est l'utilisation d'énoncés de type "si ... alors" en PL. Par exemple, si on a un problème qui dit "si x_1 &gt; 10, alors x_2 + x_3 &lt; 5", on peut utiliser une nouvelle variable entière pour écrire cette implication sous forme d'une contrainte linéaire.&lt;br /&gt;&lt;br /&gt;La PNE peut aussi servir à résoudre des types de problèmes de transport où on ne peut pas accepter des solutions fractionnaires. Par exemple, si on achemine un produit en petites quantités sur une courte période de temps.&lt;br /&gt;&lt;br /&gt;Plus de détails à venir éventuellement !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-7721458293170359638?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/7721458293170359638/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2008/03/la-programmation-en-nombres-entiers.html#comment-form' title='1 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/7721458293170359638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/7721458293170359638'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2008/03/la-programmation-en-nombres-entiers.html' title='La programmation en nombres entiers.'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-3716971522912019646</id><published>2007-10-28T16:31:00.002-04:00</published><updated>2008-09-10T13:21:29.692-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Une citation mémorable du film Proof</title><content type='html'>Avant que quiconque ne m'envoie des messages haineux, je tiens à dire que je n'ai pas aimé ce film. La performances des acteurs est mauvaise, l'histoire, peu enivrante. Certaines personnes ont comparé ce film à &lt;i&gt;A Beautiful Mind&lt;/i&gt;, ce que je n'arrive pas à comprendre. Outre le fait que les deux films parlent de mathématiciens un peu cinglés, il n'y a rien en commun entre eux : un est un chef-d'oeuvre, l'autre est un film dont on aurait pu se passer.&lt;br /&gt;&lt;br /&gt;Les seuls points positifs de &lt;i&gt;Proof&lt;/i&gt; sont la présence, toujours réjouissante, de Anthony Hopkins (ou devrais-je dire Sir Anthony Hopkins) dont la performance est merveilleuse, et cette citation du mathématicien fou :&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Let X equal the quantity of all quantities of X. Let X equal the cold. It is cold in December. The months of cold equal November through February. There are four months of cold, and four of heat, leaving four months of indeterminate temperature. In February it snows. In March the Lake is a lake of ice. In September the students come back and the bookstores are full. Let X equal the month of full bookstores. The number of books approaches infinity as the number of months of cold approaches four. I will never be as cold now as I will in the future. The future of cold is infinite. The future of heat is the future of cold. The bookstores are infinite and so are never full except in September...&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-3716971522912019646?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/3716971522912019646/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2007/10/une-citation-mmorable-du-film-proof.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/3716971522912019646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/3716971522912019646'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2007/10/une-citation-mmorable-du-film-proof.html' title='Une citation mémorable du film &lt;i&gt;Proof&lt;/i&gt;'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-6114646407919444594</id><published>2007-10-22T21:12:00.001-04:00</published><updated>2008-09-10T13:21:06.358-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='recherche opérationnelle'/><title type='text'>Le problème du contrôle de groupes d'ascenseurs</title><content type='html'>Ceux qui ont déjà eu à prendre un ascenseur pour se rendre sur leur lieu de travail quotidiennement savent à quel point il peut y avoir de l'achalandage pour monter dans ces machines. Aux heures de pointe, il peut y avoir des gens qui veulent monter du rez-de-chaussée à presque tous les étages et des gens déjà à des étages supérieurs qui veulent changer d'étage.&lt;br /&gt;&lt;br /&gt;Lorsqu'il n'y a qu'un ascenseur, il est assez facile de gérer ses déplacements. Une façon de faire assez répandue est de donner la priorité au demandes faites dans la cabine (c'est-à-dire par les personnes qui sont déjà dans l'ascenseur) et de s'arrêter aux étages où une demande de service dans la même direction (monter ou descendre) a été faite. Si personne n'est dans l'ascenseur, on répond en priorité à la première demande faite.&lt;br /&gt;&lt;br /&gt;S'il y a plusieurs ascenseurs, comme c'est le cas dans les grandes tours à bureaux, la situation est différente. On peut gérer chaque ascenseur indépendamment, mais cela est loin d'être optimal. Une personne qui veut monter fera une demande de service à chaque ascenseur et monopolisera ainsi tous les ascenseurs. Pour éviter cela, on doit contrôler le groupe d'ascenseur comme un seul et unique système. Cependant, ce système est très complexe et il est difficile à optimiser.&lt;br /&gt;&lt;br /&gt;Entre autres difficultés, l'arrivée des demandes est aléatoire de même que les destinations. Il faut minimiser le temps de transit de chaque passager de même que le temps d'attente. On peut aussi demander à minimiser certains paramètres reliés à l'usure ou aux coûts d'opération.&lt;br /&gt;&lt;br /&gt;Plusieurs approches algorithmiques différentes ont été prises pour aborder le problème. Une simple recherche sur Google donne de nombreux liens vers des articles qui proposent des approches évolutives, neuronales, et autres. Je vous tiendrez au courant de mes lectures...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-6114646407919444594?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/6114646407919444594/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2007/10/le-problme-du-contrle-de-groupes.html#comment-form' title='1 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/6114646407919444594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/6114646407919444594'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2007/10/le-problme-du-contrle-de-groupes.html' title='Le problème du contrôle de groupes d&apos;ascenseurs'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-7401976097231206775</id><published>2007-08-24T13:52:00.002-04:00</published><updated>2008-09-11T02:24:02.035-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Résolution du problème des ponts de Königsberg</title><content type='html'>D'abord, on doit définir ce qu'est un graphe (en fait, ce qu'on va définir ici est appelé par certains un multigraphe). Un graphe &lt;span style="font-style: italic;"&gt;G&lt;/span&gt; est simplement un ensemble de &lt;span style="font-style: italic;"&gt;n&lt;/span&gt; points qu'on appelle des sommets &lt;span style="font-style: italic;"&gt;S&lt;/span&gt; = {&lt;span style="font-style: italic;"&gt;x_&lt;/span&gt;1,&lt;span style="font-style: italic;"&gt; x_&lt;/span&gt;2, ..., &lt;span style="font-style: italic;"&gt;x_n&lt;/span&gt;} reliés par des arrêtes &lt;span style="font-style: italic;"&gt;A&lt;/span&gt; = {(&lt;span style="font-style: italic;"&gt;x_i x_j&lt;/span&gt;, 1), (&lt;span style="font-style: italic;"&gt;x_i x_j&lt;/span&gt;, 2), (&lt;span style="font-style: italic;"&gt;x_k x_l&lt;/span&gt;, 1), ..., (&lt;span style="font-style: italic;"&gt;x_n x_m&lt;/span&gt;, 3)}. On remarque que chaque arrête est spécifiée par deux points (les points qui forment les extrémités de l'arrête) et un entier qui identifie uniquement l'arrête dans les cas où il y a plus d'une arrête entre deux même points. En somme, pour produire un graphe, il suffit de tracer des points sur une feuille et de les relier par autant de ligne qu'on veut.&lt;br /&gt;&lt;br /&gt;Maintenant, on peut facilement s'imaginer que le graphe constitue un ensemble de routes entre différents villages. Alors, on peut marcher le long de ces routes pour aller d'un village &lt;span style="font-style: italic;"&gt;x_&lt;/span&gt;1 à un village &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;_11. On peut spécifier le chemin qu'on a pris en donnant la liste des routes qu'on a suivit. Par exemple on peut décrire le chemin comme étant la suite d'arrêtes (&lt;span style="font-style: italic;"&gt;x&lt;/span&gt;_1 &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;_4, 2), (&lt;span style="font-style: italic;"&gt;x&lt;/span&gt;_4 &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;_8, 1), (&lt;span style="font-style: italic;"&gt;x&lt;/span&gt;_8 &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;_5, 1), (&lt;span style="font-style: italic;"&gt;x&lt;/span&gt;_5 &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;_11, 3). Si on fait un trajet qui nous ramène au village d'où nous étions partis, on dit que ce chemin est un tour. Un tour est eulérien (oui, vous avez deviné, en l'honneur de Euler) s'il passe par toutes les arrêtes une et une seule fois.&lt;br /&gt;&lt;br /&gt;Le problème des ponts de Königsberg peut donc être reformulé en terme d'un graphe et de la possibilité de trouver un tour eulérien sur ce graphe. Chaque lopin de terre devient un sommet de notre graphe et chaque pont devient une arrête. Des sommets sont adjacents (i.e. : ont un lien entre eux) si les lopins de terre sont reliés par un pont. On a donc un graphe constitué de quatre sommets et de sept arrêtes. Alors, est-il possible de trouver un tour eulérien sur un tel graphe ?&lt;br /&gt;&lt;br /&gt;Le degré d'un sommet est simplement le nombre d'arrêtes qui sont attachées à ce sommet. Si un graphe admet un tour eulérien, que peut-on dire du degré de ses sommets ? Le tour eulérien passe par toutes les arrêtes donc aussi par tous les sommets. Puisque chaque arrête est utilisée une seule fois, quand le tour "arrive" à un sommet, il doit en "repartir" par une autre arrête. Donc chaque sommet a un nombre pair d'arrêtes (une pour l'arrivée et une pour le départ) et donc un degré pair.&lt;br /&gt;&lt;br /&gt;Par conséquent, si un graphe a des sommets qui n'ont pas un degré pair, il est impossible de trouver un tour eulérien sur ce graphe. Un petit coup d'oeil à l'image de Königsberg et on trouve tout de suite des sommets de degré impair. Donc il est impossible de trouver un tour eulérien et la solution au problème des ponts de Königsberg est que c'est impossible.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-7401976097231206775?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/7401976097231206775/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2007/08/rsolution-du-problme-des-ponts-de.html#comment-form' title='3 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/7401976097231206775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/7401976097231206775'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2007/08/rsolution-du-problme-des-ponts-de.html' title='Résolution du problème des ponts de Königsberg'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-1434302599909355612</id><published>2007-08-22T23:03:00.002-04:00</published><updated>2008-09-11T02:24:27.342-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Les ponts de Königsberg</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_HyYHulp_e30/Rsz7-V5PDZI/AAAAAAAAAAM/6QH_HwlYm20/s1600-h/Konigsberg.jpeg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://3.bp.blogspot.com/_HyYHulp_e30/Rsz7-V5PDZI/AAAAAAAAAAM/6QH_HwlYm20/s320/Konigsberg.jpeg" alt="" id="BLOGGER_PHOTO_ID_5101729526351596946" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Maintenant que j'ai un blogue, voyons ce que je peux en faire.&lt;br /&gt;&lt;br /&gt;Un des problèmes qui est à l'origine de la théorie des graphes est celui des ponts de Königsberg. Cette ville de Prusse (au temps où la Prusse existait) est aujourd'hui Kaliningrad en Russie. Elle est composée de quatre lopins de terre reliés par sept ponts. La question qui intriguait les gens à l'époque (on est en 1736) était de savoir s'il était possible de partir d'un des lopins de terre et de traverser chaque pont une seule fois pour revenir au même lopin. En essayant un peu, on peut se convaincre assez facilement que c'est impossible. Néanmoins, il est un peu plus compliqué de le démontrer (rigoureusement, on s'entend).&lt;br /&gt;&lt;br /&gt;C'est ce qu'à réussi Leonhard Euler, un des plus grands mathématiciens de tous les temps. La preuve est assez simple mais nécessite quelques notions élémentaires de théorie des graphes. Maintenant que je vous ai mis l'eau à la bouche et que vous mourrez tous d'envie de connaître la preuve, je vais aller me coucher. La preuve viendra dans un futur rapproché.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-1434302599909355612?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/1434302599909355612/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2007/08/les-ponts-de-knigsberg.html#comment-form' title='1 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/1434302599909355612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/1434302599909355612'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2007/08/les-ponts-de-knigsberg.html' title='Les ponts de Königsberg'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_HyYHulp_e30/Rsz7-V5PDZI/AAAAAAAAAAM/6QH_HwlYm20/s72-c/Konigsberg.jpeg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697344570467959391.post-1699311445225773829</id><published>2007-08-20T21:52:00.002-04:00</published><updated>2008-09-10T13:25:35.446-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='blogue'/><category scheme='http://www.blogger.com/atom/ns#' term='ineptie'/><title type='text'>Mais qu'est-ce qu'un blogue?</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s1600-h/lseguin.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg" alt="" id="BLOGGER_PHOTO_ID_5124351831231497394" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Il semble qu'il y ait un engouement énorme pour les blogues à travers le monde. Étant moi-même un inapte technologique, je n'arrive toujours pas à bien comprendre ce qu'est un blogue. Pour tenter de me réconforter dans mon ignorance, je tente une définition.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Définition : &lt;/span&gt;Un blogue est une paire &lt;span style="font-style: italic;"&gt;(U, C)&lt;/span&gt; constituée d'une adresse internet &lt;span style="font-style: italic;"&gt;U&lt;/span&gt; et d'un ensemble de commentaires &lt;span style="font-style: italic;"&gt;C&lt;/span&gt;. Ici, un commentaire &lt;span style="font-style: italic;"&gt;c&lt;/span&gt; est une suite de caractères d'un alphabet &lt;span style="font-style: italic;"&gt;A&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Ah! Voilà que je me sens mieux.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/697344570467959391-1699311445225773829?l=mathfou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathfou.blogspot.com/feeds/1699311445225773829/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://mathfou.blogspot.com/2007/08/mais-quest-ce-quun-blogue.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/1699311445225773829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/697344570467959391/posts/default/1699311445225773829'/><link rel='alternate' type='text/html' href='http://mathfou.blogspot.com/2007/08/mais-quest-ce-quun-blogue.html' title='Mais qu&apos;est-ce qu&apos;un blogue?'/><author><name>L.S.C.</name><uri>http://www.blogger.com/profile/12093160365864375949</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s320/lseguin.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_HyYHulp_e30/Rx1a1yytBLI/AAAAAAAAAAU/RerGABREfz4/s72-c/lseguin.jpg' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
