Skip to content

Instantly share code, notes, and snippets.

@baruchel
baruchel / gist:9546517
Last active August 29, 2015 13:57
Settings for various languages for my Vim REPL plugin

Put the four relevant lines in your ~/.vimrc file. The plugin has to be installed separately from here.

GNU APL

let g:repl_cmd = '/home/pi/APL/svn/trunk/src/apl --noSV --rawCIN --noColor'
let g:repl_stop = ')OFF'
let g:repl_send = "'REPL-VIM'"
let g:repl_detect = 'REPL-VIM'

Maxima

@baruchel
baruchel / TD_simulnum.md
Last active August 29, 2015 13:57
T.D. Informatique / simulation numérique

Code en Python3 pour les T.D. d'informatique de mars 2014

On trouvera :

  • TD_simulnum_gauss.py : méthode du pivot de Gauss
  • TD_simulnum_riemann.py : méthodes d'intégration
  • TD_simulnum_solve.py : recherche du zéro d'une fonction
@baruchel
baruchel / gist:9416637
Last active August 29, 2015 13:57
Pivot de Gauss
pivot = (
lambda m:
(lambda f: (lambda x: x(x))(lambda y: f(lambda *args: y(y)(*args))))
(lambda g:
(lambda h,n:
g(
(lambda i:
[
[ z - y[n]*i[n][k]/i[n][n] for k,z in enumerate(y) ]
if x!=n else