summaryrefslogtreecommitdiffstats
path: root/fiz/vaje/8
diff options
context:
space:
mode:
Diffstat (limited to 'fiz/vaje/8')
-rw-r--r--fiz/vaje/8/.gitignore5
-rw-r--r--fiz/vaje/8/1d.tsv11
-rw-r--r--fiz/vaje/8/1t.tsv11
-rw-r--r--fiz/vaje/8/2.tsv11
-rw-r--r--fiz/vaje/8/3.tsv10
-rw-r--r--fiz/vaje/8/dokument.lyx655
-rw-r--r--fiz/vaje/8/makefile6
-rwxr-xr-xfiz/vaje/8/tab.py8
8 files changed, 717 insertions, 0 deletions
diff --git a/fiz/vaje/8/.gitignore b/fiz/vaje/8/.gitignore
new file mode 100644
index 0000000..32ef83e
--- /dev/null
+++ b/fiz/vaje/8/.gitignore
@@ -0,0 +1,5 @@
+*.csv
+1d.lyx
+1t.lyx
+2.lyx
+3.lyx
diff --git a/fiz/vaje/8/1d.tsv b/fiz/vaje/8/1d.tsv
new file mode 100644
index 0000000..d4db0dc
--- /dev/null
+++ b/fiz/vaje/8/1d.tsv
@@ -0,0 +1,11 @@
+u i
+1.03 3.66
+1.99 7.06
+3.09 10.97
+3.98 14.15
+5.00 17.76
+6.00 22.0
+7.04 25.8
+7.99 29.3
+9.00 33.1
+10.00 36.9
diff --git a/fiz/vaje/8/1t.tsv b/fiz/vaje/8/1t.tsv
new file mode 100644
index 0000000..f4e4bd1
--- /dev/null
+++ b/fiz/vaje/8/1t.tsv
@@ -0,0 +1,11 @@
+u i
+10.16 18.0
+9.02 15.84
+8.03 14.11
+6.97 12.24
+6.05 10.61
+5.03 8.84
+4.04 7.07
+3.03 5.31
+2.03 3.56
+0.98 1.71
diff --git a/fiz/vaje/8/2.tsv b/fiz/vaje/8/2.tsv
new file mode 100644
index 0000000..d3a9237
--- /dev/null
+++ b/fiz/vaje/8/2.tsv
@@ -0,0 +1,11 @@
+u i
+1.01 1.19
+2.03 2.41
+2.98 3.55
+4.03 4.79
+5.02 5.95
+5.96 7.11
+6.97 8.29
+7.98 9.48
+9.00 10.70
+9.96 11.84
diff --git a/fiz/vaje/8/3.tsv b/fiz/vaje/8/3.tsv
new file mode 100644
index 0000000..abe42c4
--- /dev/null
+++ b/fiz/vaje/8/3.tsv
@@ -0,0 +1,10 @@
+u i
+9.97 54.2
+9.03 49.0
+8.09 43.9
+6.93 37.6
+6.00 32.5
+5.02 27.2
+4.03 21.8
+3.01 11.1
+1.04 5.6
diff --git a/fiz/vaje/8/dokument.lyx b/fiz/vaje/8/dokument.lyx
new file mode 100644
index 0000000..24ffd2b
--- /dev/null
+++ b/fiz/vaje/8/dokument.lyx
@@ -0,0 +1,655 @@
+#LyX 2.3 created this file. For more info see http://www.lyx.org/
+\lyxformat 544
+\begin_document
+\begin_header
+\save_transient_properties true
+\origin unavailable
+\textclass article
+\begin_preamble
+\usepackage{siunitx}
+\usepackage{pgfplots}
+\usepackage{listings}
+\usepackage{multicol}
+\sisetup{output-decimal-marker = {,}, quotient-mode=fraction, output-exponent-marker=\ensuremath{\mathrm{3}}}
+\end_preamble
+\use_default_options true
+\maintain_unincluded_children false
+\language slovene
+\language_package default
+\inputencoding auto
+\fontencoding global
+\font_roman "default" "default"
+\font_sans "default" "default"
+\font_typewriter "default" "default"
+\font_math "auto" "auto"
+\font_default_family default
+\use_non_tex_fonts false
+\font_sc false
+\font_osf false
+\font_sf_scale 100 100
+\font_tt_scale 100 100
+\use_microtype false
+\use_dash_ligatures true
+\graphics default
+\default_output_format default
+\output_sync 0
+\bibtex_command default
+\index_command default
+\paperfontsize default
+\spacing single
+\use_hyperref false
+\papersize default
+\use_geometry true
+\use_package amsmath 1
+\use_package amssymb 1
+\use_package cancel 1
+\use_package esint 1
+\use_package mathdots 1
+\use_package mathtools 1
+\use_package mhchem 1
+\use_package stackrel 1
+\use_package stmaryrd 1
+\use_package undertilde 1
+\cite_engine basic
+\cite_engine_type default
+\biblio_style plain
+\use_bibtopic false
+\use_indices false
+\paperorientation portrait
+\suppress_date false
+\justification false
+\use_refstyle 1
+\use_minted 0
+\index Index
+\shortcut idx
+\color #008000
+\end_index
+\leftmargin 1cm
+\topmargin 2cm
+\rightmargin 1cm
+\bottommargin 2cm
+\headheight 1cm
+\headsep 1cm
+\footskip 1cm
+\secnumdepth 3
+\tocdepth 3
+\paragraph_separation indent
+\paragraph_indentation default
+\is_math_indent 0
+\math_numbering_side default
+\quotes_style german
+\dynamic_quotes 0
+\papercolumns 1
+\papersides 1
+\paperpagestyle default
+\tracking_changes false
+\output_changes false
+\html_math_output 0
+\html_css_as_file 0
+\html_be_strict false
+\end_header
+
+\begin_body
+
+\begin_layout Title
+Ohmov zakon in vezava uporov
+\end_layout
+
+\begin_layout Author
+
+\noun on
+Anton Luka Šijanec
+\end_layout
+
+\begin_layout Date
+25.
+ januar 2023
+\end_layout
+
+\begin_layout Abstract
+Grafi in rezultati osme vaje pri predmetu
+\noun on
+F41
+\noun default
+ na Gimnaziji Bežigrad v 4.
+ letniku.
+ Vaja je potekala 8.
+ decembra 2022.
+\end_layout
+
+\begin_layout Standard
+\begin_inset CommandInset toc
+LatexCommand tableofcontents
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+\begin_inset Formula $\SI{560}{\ohm}\pm\SI{5}{\percent}$
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+
+\backslash
+begin{multicols}{2}
+\end_layout
+
+\end_inset
+
+
+\begin_inset Float table
+placement H
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\align center
+
+\lang english
+\begin_inset Tabular
+<lyxtabular version="3" rows="11" columns="2">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0pt">
+<column alignment="center" valignment="top" width="0pt">
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+\begin_inset Formula $U\left[\si{\volt}\right]$
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Formula $I\left[\si{\milli\ampere}\right]$
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+10.16
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+18.0
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+9.02
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+15.84
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+8.03
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+14.11
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+6.97
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+12.24
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+6.05
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+10.61
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+5.03
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+8.84
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+4.04
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+7.07
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+3.03
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+5.31
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+2.03
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+3.56
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+0.98
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\lang english
+1.71
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\lang slovene
+
+\begin_inset Caption Standard
+
+\begin_layout Plain Layout
+Meritve tenkega upornika
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+
+\backslash
+end{multicols}
+\end_layout
+
+\end_inset
+
+
+\begin_inset Float figure
+placement H
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\align center
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+
+\backslash
+begin{tikzpicture}
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+begin{axis}[width=0.75
+\backslash
+textwidth, scale only axis, ylabel=$I$, domain=0:11, ytick pos=left, samples=256
+, xlabel=$U$, xtick pos=bottom, xmin=0, ymin=0]
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+addplot[only marks] table [x=u, y=i, col sep=comma] {1t.csv};
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+addlegendentry{tenek}
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+addplot[blue] (x, {x*1.75986});
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+addlegendentry{}
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+addplot[red, only marks] table [x=u, y=i, col sep=comma] {1d.csv};
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+addlegendentry{debel}
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+addplot[blue] (x, {x*3.65845});
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+addlegendentry{}
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+end{axis}
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+end{tikzpicture}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\begin_inset Caption Standard
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "fig:graf-1"
+
+\end_inset
+
+Odvisnost valovne dolžine od sile, s katero je vrvica napeta.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+
+\backslash
+begin{lstlisting}
+\end_layout
+
+\begin_layout Plain Layout
+
+set datafile separator ','
+\end_layout
+
+\begin_layout Plain Layout
+
+fit (x*p)
+\begin_inset Quotes gld
+\end_inset
+
+1t.csv" using 2:3 via p
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+end{lstlisting}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+\begin_inset Formula $\SI{270}{\ohm}\pm\SI{5}{\percent}$
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Uporabljen program
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+%
+\backslash
+lstinputlisting[language=Python]{tab.py}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_body
+\end_document
diff --git a/fiz/vaje/8/makefile b/fiz/vaje/8/makefile
new file mode 100644
index 0000000..5da4d97
--- /dev/null
+++ b/fiz/vaje/8/makefile
@@ -0,0 +1,6 @@
+default: 1d.csv 1t.csv 2.csv 3.csv
+%.csv: %.tsv tab.py
+ ./tab.py , < $< > $@
+clean:
+ rm *.csv
+.PHONY: default
diff --git a/fiz/vaje/8/tab.py b/fiz/vaje/8/tab.py
new file mode 100755
index 0000000..959558b
--- /dev/null
+++ b/fiz/vaje/8/tab.py
@@ -0,0 +1,8 @@
+#!/usr/bin/python3
+import pandas
+import sys
+import math
+b=pandas.read_csv("/dev/stdin", sep="\t")
+b.index.name = "idx"
+b = b.astype(float).round(6);
+b.to_csv("/dev/stdout", sep=sys.argv[1][0]);