Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass[a4paper,11pt]{article}
- \usepackage{tkz-euclide}
- % Custom made packages
- \usepackage{../../_sty/UNI} % Global exam seetings
- \usepackage{../../_sty/UiT} % University specific changes
- \usepackage{../../_sty/IMS} % Faculty specific changes
- \usepackage{../MAT-0001} % Course specific changes
- % Always keep your main language last
- \usepackage[british]{babel}
- %==============================================================================%
- % COURSE INFORMATION %
- %==============================================================================%
- \UNIsetup{%
- Language = {norsk}, %auto = language defined by babel
- isExercise = {false},
- ExamType = {h}, % h=home exam
- includeSolution = {true},
- CourseCode = {auto}, % auto = \courseCode (defined in courseCode.sty, e.g. MAT-1001.sty)
- CourseName = {auto}, % auto = \courseName (defined in courseCode.sty, e.g. MAT-1001.sty)
- Year = {2021}, % No auto setting for this, as it might change on recompilation
- Month = {6}, % No auto setting for this, as it might change on recompilation
- Day = {2},% No auto setting for this, as it might change on recompilation
- StartHour = {9},
- DurationHours = {5}, % Set the number of hours the exam/exercise should last
- % DurationDays = {7}, % Set the number of days the exam/exercise should last
- % Location = {},
- ApprovedAids = {
- % \supportMaterialD
- \begin{supportMaterialList}
- \item Alle hjelpemidler er tillatt
- (egne notater, pdfer fra forelesningene, lærebok, internett etc).
- \end{supportMaterialList}
- },
- Pages = {auto},
- % Sheets = {Ruter},
- ContactID = {},
- Mobile = {Du \ kan \ ringe \ 776 20 880 \ for \ support \ på \ eksamensdagen},
- % willVisit = {false},
- % VisitWhen = {ca 11},
- }
- %==============================================================================%
- % OWN COMMANDS AND PACKAGES BELOW HERE %
- %==============================================================================%
- \usepackage{colortbl}
- \usepackage{booktabs}
- \usepackage{tabularx}
- \usepackage{csquotes}
- \usepackage{polynom}
- \polyset{style=A}
- \usepackage{adjustbox}
- \usepackage[version=4]{mhchem}
- \sisetup{per-mode=symbol}
- \usepackage{circuitikz}
- \ExplSyntaxOn
- \NewDocumentCommand\mylist{>{\SplitList{,}}m}
- {%
- \ProcessList{#1}{\myitem}%
- \firstitemtrue
- }
- \newif\iffirstitem
- \firstitemtrue
- \newcommand\myitem[1]{
- \iffirstitem
- \firstitemfalse
- \else
- ${}+{}$%
- \fi
- $\textcolor{UiT-main}{#1}\thinspace\si{\percent}$}
- \ExplSyntaxOff
- \usepackage{diagbox}
- \usepackage{pgf}
- \usepackage{pgffor}
- \usepgfplotslibrary{fillbetween}
- % This locks the seed
- \pgfmathsetseed{2020}
- \ExplSyntaxOn
- \sys_gset_rand_seed:n {34357}
- \ExplSyntaxOff
- \makeatletter
- \def\pgfmathdeclarelist#1#2{%
- \def\pgfmath@list@name{#1}%
- \c@pgfmath@counta=0%
- \pgfmath@declarelistlist#2{\pgfmath@stop}%
- }%
- \def\pgfmath@declarelistlist#1{%
- \ifx#1\pgfmath@stop%
- \expandafter\edef\csname pgfmath@list@\pgfmath@list@name
- @length\endcsname{\the\c@pgfmath@counta}%
- \else%
- \advance\c@pgfmath@counta by1\relax%
- \pgfutil@namedef{pgfmath@list@\pgfmath@list@name @\the\c@pgfmath@counta}{#1}%
- \expandafter\pgfmath@declarelistlist%
- \fi%
- }
- \def\pgfmathgetlistitem#1#2#3{\expandafter\let\expandafter#1\expandafter=\csname
- pgfmath@list@#2@#3\endcsname}
- \def\pgfmathsetlistitem#1#2#3{%
- \pgfutil@namedef{pgfmath@list@#1@#2}{#3}%
- }
- \def\pgfmathgetlistlength#1#2{%
- \expandafter\let\expandafter#1\expandafter=\csname
- pgfmath@list@#2@length\endcsname%
- }
- \def\pgfmathknuthshuffle#1{%
- \pgfmathgetlistlength\pgfmath@len{#1}%
- \pgfmathloop%
- \ifnum\pgfmathcounter>\pgfmath@len%
- \else%
- \pgfmathrandominteger\pgfmath@temp{1}{\pgfmath@len}%
- \pgfmathgetlistitem\pgfmath@@temp{#1}{\pgfmathcounter}%
- \pgfmathgetlistitem\pgfmath@@@temp{#1}{\pgfmath@temp}%
- \def\pgfmath@marshal{\pgfmathsetlistitem{#1}}%
- \expandafter\pgfmath@marshal\expandafter{\expandafter\pgfmath@temp\expandafter}\expandafter{\pgfmath@@temp}%
- \expandafter\pgfmath@marshal\expandafter{\expandafter\pgfmathcounter\expandafter}\expandafter{\pgfmath@@@temp}%
- \repeatpgfmathloop%
- }
- \makeatother
- \usepackage{caption,subcaption}
- \renewcommand{\thesubfigure}{\textcolor{UiT-blue}{\Alph{subfigure}}}
- % \newcommand{\trigonometricGraph}[1]{
- % \begin{tikzpicture}
- % \begin{axis}[
- % /pgf/declare function={
- % f(\x)=#1;
- % },
- % grid=major,
- % grid style={dashed,gray!30},
- % axis lines=middle,
- % enlargelimits=false,
- % inner axis line style={-stealth},
- % % unit~vector~ratio*=1 1 1,
- % % axis~line~style={draw=none},
- % % tick~style={draw=none}, % Remove axis line just for this plot
- % width=1.1\textwidth,
- % ytick={-20,-19,...,10},
- % xtick={
- % -6.28318, -4.7123889, -3.14159, -1.5708,
- % 1.5708, 3.14159, 4.7123889, 6.28318
- % },
- % xticklabels={
- % $-2\pi$, $-\frac{3\pi}{2}$, $-\pi$, $-\frac{\pi}{2}$,
- % $\frac{\pi}{2}$, $\pi$, $\frac{3\pi}{2}$, $2\pi$
- % },
- % ymin=-1.2,ymax=1.2,
- % xmin=-3.3,xmax=5,
- % % xticklabel~style={anchor=north~east},
- % ]
- % \addplot+[mark=none,smooth,ultra~thick,UiT-blue] {f(x)};
- % \end{axis}
- % \end{tikzpicture}
- % }
- \ExplSyntaxOn
- \NewExpandableDocumentCommand \randomint { m m }
- { \int_rand:nn { #1 } { #2 } }
- %
- \NewExpandableDocumentCommand{\trigonometricGraph}{+m}{
- \begin{tikzpicture}
- \begin{axis}[
- /pgf/declare~function={
- f(\x)=#1;
- },
- grid=major,
- grid~style={dashed,gray!30},
- axis~lines=middle,
- enlargelimits=false,
- inner~axis~line~style={-stealth},
- % unit~vector~ratio*=1 1 1,
- % axis~line~style={draw=none},
- % tick~style={draw=none}, % Remove axis line just for this plot
- width=1.1\textwidth,
- ytick={-20,-19.5,...,10},
- xtick={
- -6.28318, -4.7123889, -3.14159, -1.5708,
- 1.5708, 3.14159, 4.7123889, 6.28318
- },
- xticklabels={
- $-2\pi$, $-\frac{3\pi}{2}$, $-\pi$, $-\frac{\pi}{2}$,
- $\frac{\pi}{2}$, $\pi$, $\frac{3\pi}{2}$, $2\pi$
- },
- ymin=-1.2,ymax=1.2,
- xmin=-3.3,xmax=5,
- % xticklabel~style={anchor=north~east},
- ]
- \addplot+[mark=none,smooth,ultra~thick,UiT-blue] {f(x)};
- \end{axis}
- \end{tikzpicture}
- }
- %
- \NewExpandableDocumentCommand{\firstchar}{sm}
- {
- \IfBooleanTF{#1}
- {
- \grill_firstchar:V #2
- }
- {
- \grill_firstchar:n { #2 }
- }
- }
- \cs_new:Nn \grill_firstchar:n
- {
- \int_compare:nTF { \tl_count_tokens:f { \tl_head:n { #1 } } > 1 }
- {% we have to redo
- \grill_firstchar:f { \tl_head:n { #1 } }
- }
- {% just one token
- \tl_head:n { #1 }
- }
- }
- \cs_generate_variant:Nn \tl_count_tokens:n { f }
- \cs_generate_variant:Nn \grill_firstchar:n { V, f }
- \ExplSyntaxOff
- \usepackage{xspace}
- \usepackage{xstring}
- \newcommand{\girlName}{Lise\xspace}
- \newcommand{\boyName}{Nils\xspace}
- \edef\boy{\firstchar*{\boyName}}
- \usetikzlibrary{arrows, calc,intersections, decorations.pathmorphing}
- \tikzset{
- arrowMe/.style={postaction=decorate,
- decoration={markings, mark=at position .5 with {\arrow[thick]{#1}}
- } }}
- \ExplSyntaxOn
- % Internals
- \int_new:N \l__nebu_min_prefix_int
- \tl_new:N \l__nebu_base_number_tl
- \tl_new:N \l__nebu_mode_tl
- \cs_new:Npn \nebu_prefix:n #1
- {
- \exp_args:Nf \__nebu_prefix:n
- { \exp_args:Nf \fp_to_scientific:n { \tl_lower_case:n {#1} } }
- }
- \cs_new:Npn \__nebu_prefix:n #1
- { \__nebu_prefix:nwnw #1 \q_stop }
- \cs_new:Npn \__nebu_prefix:nwnw #1 e #2 \q_stop
- { \__nebu_find_prefix:nnn {#2} {#1} {1} }
- \cs_new:Npn \__nebu_find_prefix:nnn #1 #2 #3
- {
- \tl_if_exist:cT { l__nebu_ #1 \tl_use:N \l__nebu_mode_tl _prefix_tl }
- {
- \use_i_delimit_by_q_stop:nw
- { \__nebu_output:nnn {#2} {#1} {#3} }
- }
- \int_compare:nNnT {#1} < \l__nebu_min_prefix_int
- {
- \use_i_delimit_by_q_stop:nw
- {
- \exp_args:Nf \__nebu_find_prefix:nnn
- { \int_eval:n { \l__nebu_min_prefix_int } } {#2}
- { #3 / 1\prg_replicate:nn { \l__nebu_min_prefix_int - #1 }{ 0 } }
- }
- }
- \use_i:nn
- {
- \exp_args:Nf \__nebu_find_prefix:nnn
- { \int_eval:n {#1-1} } {#2} {#3*10}
- }
- \q_stop
- }
- \exp_args_generate:n { fv }
- \cs_new:Npn \__nebu_output:nnn #1 #2 #3
- {
- \exp_args:Nfv \nebu_output:nn
- { \fp_to_decimal:n {#1*#3} } { l__nebu_ #2 \tl_use:N \l__nebu_mode_tl _prefix_tl }
- }
- \cs_new_protected:Npn \nebu_prefix_set:Nnn #1 #2 #3
- {
- \exp_args:Nxx \__nebu_prefix_set:nnN
- { \tl_trim_spaces:n {#2} } { \int_eval:n {#3} } #1
- }
- \cs_new_protected:Npn \__nebu_prefix_set:nnN #1 #2 #3
- {
- \tl_clear_new:c { l__nebu_ #2 _prefix_tl }
- \tl_clear_new:c { l__nebu_ #2 _siunitx_prefix_tl }
- \tl_set:cn { l__nebu_ #2 _prefix_tl } {#1}
- \tl_set:cn { l__nebu_ #2 _siunitx_prefix_tl } {#3}
- \int_set:Nn \l__nebu_min_prefix_int { \int_min:nn {#2} { \l__nebu_min_prefix_int } }
- }
- % User interface
- \NewExpandableDocumentCommand \prefix { m }
- { \nebu_prefix:n {#1} }
- \cs_new:Npn \nebu_output:nn #1 #2 { #1\, \textrm{#2} }
- \NewDocumentCommand \setprefix { m m m }
- { \nebu_prefix_set:Nnn #1 {#2} {#3} }
- \DeclareSIPrefix \none { } { 0 }
- \setprefix \none { } { 0 }
- %
- \cs_new_protected:Npn \__nebu_store:nn #1 #2
- {
- \tl_set:Nn \l__nebu_base_number_tl {#1}
- \cs_set:Npn \prefix {#2}
- }
- \NewExpandableDocumentCommand \prefixSI { o m o m }
- {
- \group_begin:
- \cs_set_eq:NN \nebu_output:nn \__nebu_store:nn
- \tl_set:Nn \l__nebu_mode_tl { _siunitx }
- \nebu_prefix:n {#2}
- \SI [#1] { \l__nebu_base_number_tl } [#3] {#4}
- \group_end:
- }
- \ExplSyntaxOff
- \setprefix \yocto { y } { -24 }
- \setprefix \zepto { z } { -21 }
- \setprefix \atto { a } { -18 }
- \setprefix \femto { f } { -15 }
- \setprefix \pico { p } { -12 }
- \setprefix \nano { n } { -9 }
- \setprefix \micro { \SIUnitSymbolMicro } { -6 }
- \setprefix \milli { m } { -3 }
- \setprefix \centi { c } { -2 }
- \setprefix \deci { d } { -1 }
- \setprefix \deca { da } { 1 }
- \setprefix \hecto { h } { 2 }
- \setprefix \kilo { k } { 3 }
- \setprefix \mega { M } { 6 }
- \setprefix \giga { G } { 9 }
- \setprefix \tera { T } { 12 }
- \setprefix \peta { P } { 15 }
- \setprefix \exa { E } { 18 }
- \setprefix \zetta { Z } { 21 }
- \setprefix \yotta { Y } { 24 }
- \NewDocumentCommand\brakpar
- {
- s % optional *
- m % first mandatory argument
- }
- {%
- \IfBooleanTF{#1}
- { \fpcompare{\fv{#2}=0}{ ) }{ ] } }
- { \fpcompare{\fv{#2}=0}{ ( }{ [ } }
- }
- \NewDocumentCommand{\fphide}{ O{#2} m m }{%
- \fpcompare{#2=#3}{}{#1}%
- }
- \NewDocumentCommand{\fpsimp}{ o m m m }{
- #2%
- \IfNoValueTF{#1}%
- {#3#4}%
- {\fphide[#3#4]{#1}{#4}}%
- }
- \NewDocumentCommand{\fpdiv}{s m m }{%
- \IfNoValueTF{#1}{%
- \fpsimp[1]{#2}{/}{#3}}%
- {\fpcompare{#2=0}{}{\fphide[\fpsimp[1]{#2}{/}{#3}]{#2}{#3}}}%
- }
- \NewDocumentCommand{\fpaddif}{O{} m O{} m }{%
- \IfNopText{#2}{#4}{#1#2#3#4}
- }
- \NewDocumentCommand{\fppow}
- {
- s % optional *
- O{x}
- m % first mandatory argument
- m % second mandatory argument
- }{
- \setfpvar{numer}{round(1000*abs(#3)*(#3/#4)/abs(#3/#4))/1000}
- \setfpvar{denom}{round(1000*abs(#4))/1000}
- \def\xpow{#2^{\fpdiv*{\fv{numer}}{\fv{denom}}}}
- \def\xpowd{#2^{\fpdiv*{\fv{numer}}{1}}}
- %
- \IfBooleanTF{#1}
- {\xpow}%
- {\fpcompare{\fv{denom}=1}{\xpow}{\sqrt[\fphide{\fv{denom}}{2}]{\xpowd}}}
- }
- \makeatletter
- \newcommand{\IfNopText}[3]{%
- \sbox0{#1}%
- \ifdim\wd0=0pt %
- {#2}% if #1 is empty
- \else%
- \ifdim0pt=\dimexpr\ht0+\dp0\relax
- {#2}% if #1 is empty
- \else
- {#3}% if #1 is not empty
- \fi
- \fi%
- }
- \makeatother
- \begin{document}
- %==============================================================================%
- % ASSIGNMENT 01 %
- %==============================================================================%
- \frontpageUiT
- \UNItitlebox[norsk]
- % Eksamen er individuell og skal besvares uten samarbeid med andre.
- % Alle hjelpemidler er tillatt (egne notater, pdfer fra forelesningene, lærebok,
- % internett etc). Alle eksamener som leveres i WISEflow blir automatisk sjekket
- % for plagiat. Det er ikke tillatt å kopiere medstudenter, nettressurser, kilder,
- % eller litteratur uten referanser.
- \iSol{}{%
- Eksamen består av 20 delspørsmål, verdt 5 poeng hver, totalt 100 poeng. \\
- \textbf{Svar uten begrunnelse vil gi liten, til ingen uttelling}.%
- }
- %==============================================================================%
- % PROBLEM 1 %
- %==============================================================================%
- \input{TEK-0002-Problem-MixIntSeriesDiff.tex}
- %==============================================================================%
- % PROBLEM 2 %
- %==============================================================================%
- \input{TEK-0002-Problem-HeatOfVaporization-Goisteinum.tex}
- %==============================================================================%
- % PROBLEM 3 %
- %==============================================================================%
- \newpage
- \input{TEK-0002-Problem-Electricity-Series2Parallel.tex}
- %==============================================================================%
- % PROBLEM 4 %
- %==============================================================================%
- \input{TEK-0002-Problem-Frequency-and-Prism.tex}
- %==============================================================================%
- % PROBLEM 5 %
- %==============================================================================%
- \newpageLF
- \newpageNotLF
- \input{TEK-0002-Problem-CenterOfMass-x2-sqrt-v2.tex}
- %==============================================================================%
- % PROBLEM 2 %
- %==============================================================================%
- % \begin{problem}
- % Ved jevn oppbremsing avtar farten $v$ lineært med tiden. Farten ved tiden
- % $t$ kan da skrives $v(t) = v_0 - at$, der $v_0$ er farten ved tiden $t=0$, og
- % $a$ er en konstant. Strekningen som tilbakelegges fra tiden $t=0$ og til
- % farten er null, vil vi kalle $B$ (bremselengden). Uttrykk $B$ som et bestemt
- % integral, og beregn integralet. (Har du regnet riktig vil du se at
- % brmselengden er proposjonal med kvadratet av farten $v_0$.)
- % \end{problem}
- %==============================================================================%
- % PROBLEM 6 %
- %==============================================================================%
- \newpageLF
- \input{TEK-0002-Problem-PrimeDices.tex}
- %==============================================================================%
- % PROBLEM 7 %
- %==============================================================================%
- \newpageNotLF
- \newpageLF
- \input{TEK-0002-Problem-AmplitudeCosxSquared.tex}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment