File:Riemann Sum6.jpg
Summary
Description |
English: Ilustration of Riemann sum. |
||
Date | |||
Source | Own work | ||
Author | Raniere_Silva | ||
Permission (Reusing this file) |
This file is licensed under the Creative Commons Attribution 3.0 Unported license.
|
||
Other versions |
|
Licensing
I, the copyright holder of this work, hereby publish it under the following licenses:
![]() |
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License. |
This file is licensed under the Creative Commons Attribution 3.0 Unported license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
You may select the license of your choice.
LaTeX source code
\documentclass[]{article}
\usepackage{tikz}
\begin{document}
\thispagestyle{empty}
\begin{center}
\begin{tikzpicture}
\draw[->] (-.2,0) -- (8.2,0) node[below right] {$x$};
\draw[->] (0,-.2) -- (0,4.2) node[above right] {$y$};
\foreach \x in {0,1,...,5} {
\draw[fill=gray!50] (\x + 1,0) -- ++(1,0) -- ++(0,{sin(\x r) ++ 2}) --
++(-1,0) -- ++(0,{-sin(\x r) - 2});
}
\draw[domain=0:6,samples=100] plot(\x + 1,{sin(\x r) + 2})
node[right] {$y = f(x)$};
\foreach \x in {0,1,...,6} {
\draw (\x + 1,0) node[below] {$x_{\x}$};
}
\end{tikzpicture}
\end{center}
\end{document}
How to create image from LaTeX source code
$ pdflatex file_name
$ convert -density 400 -trim file_name.pdf -bordercolor white -border 20 file_name.jpg