Add figure

This commit is contained in:
Oystein Kristoffer Tveit 2020-08-27 14:49:56 +02:00
parent 3ba61894ce
commit defd7b7525
3 changed files with 44 additions and 3 deletions

31
Exercise 1/figures/1c.tex Normal file
View File

@ -0,0 +1,31 @@
\begin{tikzpicture}[
my angle/.style={
draw, <->,
angle eccentricity=1.3,
angle radius=9mm
}
]
% coordinate axis
\draw[<->] (-2.5,0) -- (2.5,0);
\draw[<->] (0,-2.5) -- (0,2.5);
% circle
\draw (0,0) circle (2cm);
% coordinates
\coordinate (A) at ( 2,0);
\coordinate (B) at ( 0,2);
\coordinate (C) at (-2,0);
\coordinate (D) at (0,-2);
%
\coordinate (O) at ( 0:0);
% angles
\shorthandoff{"}
\pic[my angle, "$\frac{-\pi}{2}$"] {angle = D--O--A};
\shorthandon{"}
\coordinate[pin=300:{$(0,-1)$}] (sinTheta) at (D);
\end{tikzpicture}

View File

@ -7,14 +7,16 @@
\usepackage[fleqn]{amsmath} \usepackage[fleqn]{amsmath}
\usepackage[many]{tcolorbox} \usepackage[many]{tcolorbox}
\usepackage{graphicx} \usepackage{graphicx}
\usepackage{parskip} \usepackage{textcomp}
\usepackage{gensymb} \usepackage{gensymb}
\usepackage{float}
\definecolor{ntnublue}{RGB}{0,80,158} \definecolor{ntnublue}{RGB}{0,80,158}
\input{../lib/geometry.tex} \input{../lib/geometry.tex}
\input{../lib/header.tex} \input{../lib/header.tex}
\input{../lib/math.tex} \input{../lib/math.tex}
\usetikzlibrary{angles, quotes}
\hypersetup{ \hypersetup{
colorlinks=true, colorlinks=true,
@ -30,6 +32,8 @@
\input{../lib/titling.tex} \input{../lib/titling.tex}
\setlength{\parindent}{0cm}
\begin{document} \begin{document}
\thispagestyle{plain} \thispagestyle{plain}

View File

@ -5,9 +5,15 @@
\[ -135\degree \cdot \frac{\pi}{180\degree} \approx -2.35 \] \[ -135\degree \cdot \frac{\pi}{180\degree} \approx -2.35 \]
\delo \delo
\[ 1,5\pi \cdot \frac{180\degree}{\pi} = 270\deg \] \[ 1,5\pi \cdot \frac{180\degree}{\pi} = 270\degree \]
\delo \delo
\[ sin\left( \frac{-\pi}{2} \right) = -1\] \[ sin\left( \frac{-\pi}{2} \right) = -1\]
\begin{minipage}{0.42\textwidth}
\begin{graphbox}
\input{figures/1c.tex}
\end{graphbox}
\end{minipage}
\end{deloppgaver} \end{deloppgaver}