Informatics1-2017/HW5

A MathWikiből
(Változatok közti eltérés)
(Új oldal, tartalma: „=== Feladat === Reprodukáljátok az alábbi dokumentumot latex-ben: [http://math.bme.hu/~kkovacs/info1/hazi8.pdf hazi8.pdf] A megoldást e-mailben a [http://wiki.math…”)
 
1. sor: 1. sor:
 
=== Feladat ===
 
=== Feladat ===
Reprodukáljátok az alábbi dokumentumot latex-ben: [http://math.bme.hu/~kkovacs/info1/hazi8.pdf hazi8.pdf]
+
Reproduce the following pdf document using latex: [http://math.bme.hu/~kkovacs/info1/hazi8.pdf hazi8.pdf]
  
A megoldást e-mailben a [http://wiki.math.bme.hu/view/Informatika1-2014#H.C3.A1zi_feladatok megadott módon] az info1hazi@gmail.com-ra várjuk. '''Csatoljátok a .tex és .pdf fájlt is!'''
+
In the email attach the .tex and the .pdf files only.
  
=== Segítség ===  
+
=== Help ===  
A következõ latex parancsokat használtam amik nem biztos, hogy elhangoztak elõadáson vagy gyakorlaton (a puskán biztos, hogy rajta vannak):
+
These are the commands that we didn't use on the practical or the lecture, but are still required to create some of the formulas in the homework:
 
<latex>
 
<latex>
\lim        % limesz szépen, alulvonással alá ír
+
\lim        % limit, example: \lim_{x\to \infty}
\in        % eleme jel
+
\in        % element symbol
\notin      % nem eleme jel
+
\notin      % element symbol striked through
\cos        % koszinusz
+
\cos        % cosinus
\sin        % szinusz
+
\sin        % sinus
\cdot      % szorzás jel (kis pötty középre)
+
\cdot      % center dot (to emphasize multiplication
\qquad      % nagy szünet matematikai módban
+
\qquad      % big space in math mode
\mapsto    % talpas nyíl jobbra
+
\mapsto    % "maps to" arrow
\backslash  % fordított per jel: \
+
\backslash  % backwards slash: \
\ln        % természetes alapú logaritmus
+
\ln        % logarithm
\prod      % produktum
+
\prod      % product
\sqrt[k]{n} % k. gyök n
+
\sqrt[k]{n} % kth root of n
\min        % min szépen, alulvonással alá ír
+
\min        % minimum
\max        % max szépen, alulvonással alá ír
+
\max        % maximum
 
</latex>
 
</latex>
  
A legtöbb fejezetben '''align*''' környezetet használtam az egy sorba íráshoz. Méghozzá a következõ formátumban:
+
For most sections I used the '''align*''' environment to write stuff in multiple lines, using the following format:
 
<latex>
 
<latex>
 
\begin{align*}
 
\begin{align*}
&keplet1 &&keplet2 &&keplet3, \\
+
&formula1 &&formula2 &&formula3, \\
&keplet4 &&keplet5 &&keplet6
+
&formula4 &&formula5 &&formula6
 
\end{align*}  
 
\end{align*}  
 
</latex>
 
</latex>
A sor elején az & egyvonalba teszi a kifejezések elejét, minden második & pedig megfelelõ helyet kihagy a kifejezések között.
+
The first & aligns the formulas, and every second & creates some whitespace between the formulas.
  
A '''cases''' környezetnél az alábbi formát használtam:
+
I used the following format for the '''cases''' enviroment:
 
<latex>
 
<latex>
függvény \qquad x \mapsto \begin{cases}
+
function \qquad x \mapsto \begin{cases}
érték1, &\text{ ha } feltétel1 \text{ és } feltétel2 \\
+
value1, &\text{ if } condition1 \text{ and } condition2 \\
érték2, &\text{ ha } feltétel1
+
value2, &\text{ if } condition2
 
\end{cases}
 
\end{cases}
 
</latex>
 
</latex>
  
A címhez annyi segítséget mondanék, hogy '''\\'''-t a '''title'''-be is lehet írni.
+
A little help with the title, you can put a '''\\''' (newline) in the title as well.

A lap 2017. október 17., 14:26-kori változata

Feladat

Reproduce the following pdf document using latex: hazi8.pdf

In the email attach the .tex and the .pdf files only.

Help

These are the commands that we didn't use on the practical or the lecture, but are still required to create some of the formulas in the homework:

\lim        % limit, example: \lim_{x\to \infty}
\in         % element symbol
\notin      % element symbol striked through
\cos        % cosinus
\sin        % sinus
\cdot       % center dot (to emphasize multiplication
\qquad      % big space in math mode
\mapsto     % "maps to" arrow
\backslash  % backwards slash: \
\ln         % logarithm
\prod       % product
\sqrt[k]{n} % kth root of n
\min        % minimum
\max        % maximum

For most sections I used the align* environment to write stuff in multiple lines, using the following format:

\begin{align*}
&formula1 &&formula2 &&formula3, \\
&formula4 &&formula5 &&formula6
\end{align*}

The first & aligns the formulas, and every second & creates some whitespace between the formulas.

I used the following format for the cases enviroment:

function \qquad x \mapsto \begin{cases}
value1, &\text{ if } condition1 \text{ and } condition2 \\
value2, &\text{ if } condition2
\end{cases}

A little help with the title, you can put a \\ (newline) in the title as well.

Személyes eszközök