This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cmath> | |
using namespace std; | |
double pXy(double x, double y, int N); | |
double pxy(double x, double y, int N); | |
int main(void) { | |
double pAb,paB,pab,a,b; | |
int N; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
#include <string> | |
#include <cstring> | |
#include <string.h> | |
#include <vector> | |
#include <stdio.h> | |
#include <stdlib.h> | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@online{Gnu13, | |
author = {Richard Stallman}, | |
title = {{Free Software and Education}}, | |
date = {2013-11-06}, | |
url = {http://www.gnu.org/education/education.html} | |
} | |
@article{kaplan2010users, | |
title={{Users of the world, unite! The challenges and opportunities | |
of social media}}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[tikz]{standalone} | |
\begin{document} | |
\begin{tikzpicture} | |
\draw [fill] (0,0) circle [radius = 0.025]; | |
\node [below] at (0,0) {$x$}; | |
\draw (0,0) circle (1); | |
\draw (0,0) -- (120:1) node[pos=0.5,above] {$r$}; | |
\draw [fill] (2,2) circle [radius = 0.025]; | |
\node [below] at (2,2) {$y$}; | |
\draw (2,2) circle (0.7); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[tikz]{standalone} | |
\usetikzlibrary{calc,through} | |
\begin{document} | |
\begin{tikzpicture}[scale = 2] | |
\coordinate [label=left:$O$] (O) at (0,0); | |
\coordinate [label=left:$L$] (L) at (0.7,1.1); | |
\coordinate [label=below:$S_n$] (Sn) at (0.6,0.7); | |
\coordinate (SqCorn1) at (0.2,0.6); | |
\coordinate (SqCorn2) at (1.2,1.6); | |
\coordinate (SqCorn3) at (1.2,0.6); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
source $VIMRUNTIME/vimrc_example.vim | |
"source $VIMRUNTIME/mswin.vim | |
"behave mswin | |
set diffexpr=MyDiff() | |
function! MyDiff() | |
let opt = '-a --binary ' | |
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif | |
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype off | |
let iCanHazVundle=1 | |
let vundle_readme=expand("~/.vim/bundle/vundle/README.md") | |
if !filereadable(vundle_readme) | |
echo "Installing Vundle.." | |
echo "" | |
silent !mkdir -p ~/.vim/bundle | |
silent !git clone https://github.com/gmarik/vundle ~/.vim/bundle/vundle | |
let iCanHazVundle=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Valeur de timbre (€) | Quantité | |
---------------------+--------- | |
0.71 | 0 | |
0.73 | 0 | |
1.46 | 1 | |
2.92 | 6 | |
0.85 | 0 | |
1.70 | 0 | |
3.40 | 7 | |
1.30 | 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
float myfct(int i) { | |
return i == 1? 1 : (366.0-i)/365.0*myfct(i - 1); | |
} | |
int main() { | |
int i; | |
double ans; | |
printf("Enter a value: "); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Show simplex tableau | |
# Prereq: matrix A, vectors b,c, basis | |
printf("Current basis:"); printf(" %2i", basis); disp(""); | |
B = A(:,basis); cB = c(basis); | |
Bm1A = B\A; x_B = B\b; zrow = cB'*Bm1A-c'; zval = cB'*x_B; | |
nv = find(zrow==min(zrow(zrow<=0)))(1); | |
r = x_B./Bm1A(:,nv); | |
T = [0:size(A)(2) 0 0; basis' Bm1A x_B r; 0 zrow zval 0] | |
if length(r(r>=0)) >= 1 | |
ovp = find(r==min(r(r>=0)))(1); |