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 <iomanip> | |
#include<cmath> | |
using namespace std; | |
/*************** | |
収束数列による計算 | |
****************/ | |
//許容誤差 | |
const double EPS = pow(10,-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
#include<iostream> | |
#include <iomanip> | |
#include<cmath> | |
using namespace std; | |
/*************** | |
テイラー展開によるeの算出 | |
****************/ | |
//許容誤差 |
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
%右寄せ | |
\begin{flushright} | |
\end{flushright} | |
%左寄せ | |
\begin{flushleft} | |
\end{flushleft} | |
%中央揃え | |
\begin{center} |
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
\begin{table}[htb] | |
\begin{tabular}{|c|l||r|} \hline | |
中揃え & 左揃え & 右揃え \\ \hline | |
1 & 2 & 3 \\ \hline | |
\end{tabular} | |
\end{table} |
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
\begin{align} | |
%累乗 | |
y = x^n %xのn乗 | |
%自然対数eを使う数の表示 | |
%eのx乗 | |
\exp(x) | |
%e単体の表示 | |
\mathrm{e} | |
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
% 文章中に記述する場合 | |
数式は$x+y=0$のように書きます。 | |
% 1行の数式を作るばあい | |
\begin{equation} | |
x+y=0 | |
\end{equation} | |
% 複数行の数式を作る場合 | |
\begin{align} |
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[a4paper,10pt]{jsarticle} | |
% プリアンブル | |
\begin{document} | |
% 本文 | |
Happy \TeX{}ing !! | |
\end{document} |