Skip to content

Instantly share code, notes, and snippets.

#include <iomanip>
#include<cmath>
using namespace std;
/***************
収束数列による計算
****************/
//許容誤差
const double EPS = pow(10,-6);
#include<iostream>
#include <iomanip>
#include<cmath>
using namespace std;
/***************
テイラー展開によるeの算出
****************/
//許容誤差
@thelly7344
thelly7344 / mojiyose.tex
Created December 31, 2013 13:22
文字寄せ
%右寄せ
\begin{flushright}
\end{flushright}
%左寄せ
\begin{flushleft}
\end{flushleft}
%中央揃え
\begin{center}
@thelly7344
thelly7344 / hyou.tex
Last active January 1, 2016 20:19
表の記述
\begin{table}[htb]
\begin{tabular}{|c|l||r|} \hline
中揃え & 左揃え & 右揃え \\ \hline
1 & 2 & 3 \\ \hline
\end{tabular}
\end{table}
@thelly7344
thelly7344 / various_suushiki.tex
Created December 31, 2013 10:56
いろんな数式
\begin{align}
%累乗
y = x^n %xのn乗
%自然対数eを使う数の表示
%eのx乗
\exp(x)
%e単体の表示
\mathrm{e}
@thelly7344
thelly7344 / suushiki.tex
Created December 31, 2013 10:27
数式の記法
% 文章中に記述する場合
数式は$x+y=0$のように書きます。
% 1行の数式を作るばあい
\begin{equation}
x+y=0
\end{equation}
% 複数行の数式を作る場合
\begin{align}
@thelly7344
thelly7344 / hinagata.tex
Created December 31, 2013 08:33
TeXのひな形です。
\documentclass[a4paper,10pt]{jsarticle}
% プリアンブル
\begin{document}
% 本文
Happy \TeX{}ing !!
\end{document}