From 665e0bddaea855613d12c79b35e8988d8155b8d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 20 Mar 2023 23:40:22 +0100 Subject: fiz vaje, zadnja (10) je nedoko --- fiz/vaje/10/.gitignore | 2 + fiz/vaje/10/dokument.lyx | 995 +++++++++++++++++++++++++++++++++++++++++++++++ fiz/vaje/10/podatki.tsv | 17 + fiz/vaje/10/tab.py | 12 + fiz/vaje/9/.gitignore | 1 + fiz/vaje/9/dokument.lyx | 279 +++++++------ 6 files changed, 1178 insertions(+), 128 deletions(-) create mode 100644 fiz/vaje/10/.gitignore create mode 100644 fiz/vaje/10/dokument.lyx create mode 100644 fiz/vaje/10/podatki.tsv create mode 100755 fiz/vaje/10/tab.py diff --git a/fiz/vaje/10/.gitignore b/fiz/vaje/10/.gitignore new file mode 100644 index 0000000..3d28b33 --- /dev/null +++ b/fiz/vaje/10/.gitignore @@ -0,0 +1,2 @@ +*.csv +podatki.lyx diff --git a/fiz/vaje/10/dokument.lyx b/fiz/vaje/10/dokument.lyx new file mode 100644 index 0000000..b0485c1 --- /dev/null +++ b/fiz/vaje/10/dokument.lyx @@ -0,0 +1,995 @@ +#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 +Vsiljeno nihanje in resonanca +\end_layout + +\begin_layout Author + +\noun on +Anton Luka Šijanec +\end_layout + +\begin_layout Date +20. + marec 2023 +\end_layout + +\begin_layout Abstract +Grafi in rezultati desete vaje pri predmetu +\noun on +F41 +\noun default + na Gimnaziji Bežigrad v 4. + letniku. +\end_layout + +\begin_layout Section* +Podatki in grafi +\end_layout + +\begin_layout Standard +Izmerjena goriščna razdalja leče v prvi nalogi je +\begin_inset Formula $\SI{0,053}{\meter}$ +\end_inset + +, v drugi nalogi pa +\begin_inset Formula +\[ +f=\SI{0,0511438}{\meter}\pm\SI{0,001356}{\meter}=\SI{0,0511438}{\meter}(1\pm0,026513477684489615)\text{{.}} +\] + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float table +placement H +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center + +\lang english +\begin_inset Tabular + + + + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Št. + meritve +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +\begin_inset Formula $a+b\left[\si{\meter}\right]$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +\begin_inset Formula $b\left[\si{\meter}\right]$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +\begin_inset Formula $a\left[\si{\meter}\right]$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +\begin_inset Formula $a^{-1}\left[\si{\per\meter}\right]$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +\begin_inset Formula $b^{-1}\left[\si{\per\meter}\right]$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +\begin_inset Formula $f\left[\si{\meter}\right]$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +\begin_inset Formula $\Delta f\left[\si{\meter}\right]$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,23 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,075 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,155 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +6,451613 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +13,333333 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,050543 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,0006 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,25 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,075 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,175 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +5,714286 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +13,333333 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,0525 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,001356 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,27 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,068 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,202 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +4,950495 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +14,705882 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,050874 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,00027 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,29 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,065 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,225 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +4,444444 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +15,384615 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,050431 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,000713 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,31 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,065 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,245 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +4,081633 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +15,384615 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,051371 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +0,000227 +\end_layout + +\end_inset + + + + +\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 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=$b$, domain=0:.4, ytick pos=left, samples=256, + xlabel=$a$, xtick pos=bottom, xmin=0, xmax=.4, ymin=-.1, ymax=.2, %grid=both +\end_layout + +\begin_layout Plain Layout + +, major grid style={dashed,blue}] +\end_layout + +\begin_layout Plain Layout + + +\backslash +addplot[only marks] table [x=a, y=b, col sep=comma] {podatki.csv}; +\end_layout + +\begin_layout Plain Layout + + +\backslash +addlegendentry{meritve} +\end_layout + +\begin_layout Plain Layout + + +\backslash +addplot[blue] (x, {1/(1/0.0511438-1/x)}); +\end_layout + +\begin_layout Plain Layout + + +\backslash +addlegendentry{$b=(f^{-1}-a^{-1})^{-1}$} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +% +\backslash +addplot[mark=square*, blue, only marks] table [x=u, y=i, col sep=comma] + {2.csv}; +\end_layout + +\begin_layout Plain Layout + +% +\backslash +addlegendentry{zaporedno} +\end_layout + +\begin_layout Plain Layout + +% +\backslash +addplot[blue] (x, {x*1.1889}); +\end_layout + +\begin_layout Plain Layout + +% +\backslash +addlegendentry{} +\end_layout + +\begin_layout Plain Layout + +% +\backslash +addplot[mark=diamond*, green, only marks] table [x=u, y=i, col sep=comma] + {3.csv}; +\end_layout + +\begin_layout Plain Layout + +% +\backslash +addlegendentry{vzporedno} +\end_layout + +\begin_layout Plain Layout + +% +\backslash +addplot[blue] (x, {x*5.38536}); +\end_layout + +\begin_layout Plain Layout + +% +\backslash +addlegendentry{} +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{axis} +\end_layout + +\begin_layout Plain Layout + + +\backslash +begin{axis}[width=0.75 +\backslash +textwidth, scale only axis, ylabel=$b^{-1}$, ytick pos=right, samples=256, + xlabel=$a^{-1}$, xtick pos=top, %grid=both +\end_layout + +\begin_layout Plain Layout + +, xlabel near ticks, ylabel near ticks, major grid style={dashed,red}, +\end_layout + +\begin_layout Plain Layout + +legend style={at={(0.975,0.325)}, anchor=south east}, domain=4:7, xmin=4, + xmax=6.6, ymin=13, ymax=15.6 +\end_layout + +\begin_layout Plain Layout + +] +\end_layout + +\begin_layout Plain Layout + + +\backslash +addplot[mark=triangle*, red, only marks] table [x=1/a, y=1/b, col sep=comma] + {podatki.csv}; +\end_layout + +\begin_layout Plain Layout + + +\backslash +addlegendentry{meritve} +\end_layout + +\begin_layout Plain Layout + + +\backslash +addplot[red] (x, {1/0.0511438-x}); +\end_layout + +\begin_layout Plain Layout + + +\backslash +addlegendentry{$b^{-1}=f^{-1}-a^{-1}$} +\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 + + +\begin_inset Formula $b(a)$ +\end_inset + + in +\begin_inset Formula $b^{-1}(a^{-1})$ +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Formula $f$ +\end_inset + + je obratna vrednost neničelne komponente točke presečišča med bodisi ordinatno + bodisi abscisno osjo in premico +\begin_inset Formula $b^{-1}=f^{-1}-a^{-1}$ +\end_inset + +. + Kakršno koli odčitavanje iz strojno generiranega grafa ni smiselno, saj + je bila +\begin_inset Formula $f^{-1}$ +\end_inset + + v osnovi uporabljena za konstruiranje premice. +\end_layout + +\end_body +\end_document diff --git a/fiz/vaje/10/podatki.tsv b/fiz/vaje/10/podatki.tsv new file mode 100644 index 0000000..e879cea --- /dev/null +++ b/fiz/vaje/10/podatki.tsv @@ -0,0 +1,17 @@ +l y +0.4 0.007 +0.5 0.005 +0.45 0.005 +0.3 0.014 +0.35 0.011 +0.25 0.026 +0.24 0.03 +0.23 0.03 +0.22 0.03 +0.21 0.031 +0.2 0.026 +0.19 0.024 +0.18 0.024 +0.17 0.02 +0.16 0.018 +0.15 0.02 diff --git a/fiz/vaje/10/tab.py b/fiz/vaje/10/tab.py new file mode 100755 index 0000000..cb70e75 --- /dev/null +++ b/fiz/vaje/10/tab.py @@ -0,0 +1,12 @@ +#!/usr/bin/python3 +import pandas +import sys +from math import pi +l = 23.5 +b=pandas.read_csv("/dev/stdin", sep="\t") +b.index.name = "idx" +b["x"] = (b["y"]/13*l) +b["omega"] = ((9.81/b["l"])**(1/2)) +b["f"] = (b["omega"]*0.5/pi) +b = b.astype(float).round(6); +b.to_csv("/dev/stdout", sep=sys.argv[1][0]); diff --git a/fiz/vaje/9/.gitignore b/fiz/vaje/9/.gitignore index afed073..3d28b33 100644 --- a/fiz/vaje/9/.gitignore +++ b/fiz/vaje/9/.gitignore @@ -1 +1,2 @@ *.csv +podatki.lyx diff --git a/fiz/vaje/9/dokument.lyx b/fiz/vaje/9/dokument.lyx index 7cea21d..a6d81ba 100644 --- a/fiz/vaje/9/dokument.lyx +++ b/fiz/vaje/9/dokument.lyx @@ -102,7 +102,7 @@ Anton Luka Šijanec \end_layout \begin_layout Date -12. +20. marec 2023 \end_layout @@ -115,16 +115,7 @@ F41 letniku. \end_layout -\begin_layout Standard -\begin_inset CommandInset toc -LatexCommand tableofcontents - -\end_inset - - -\end_layout - -\begin_layout Section +\begin_layout Section* Podatki in grafi \end_layout @@ -156,7 +147,7 @@ status open \lang english \begin_inset Tabular - + @@ -165,18 +156,25 @@ status open + \begin_inset Text \begin_layout Plain Layout +Št. + meritve +\end_layout -\lang english -\begin_inset Formula $a+b$ \end_inset + + +\begin_inset Text +\begin_layout Plain Layout -\begin_inset Formula $\left[\si{\meter}\right]$ +\lang english +\begin_inset Formula $a+b\left[\si{\meter}\right]$ \end_inset @@ -190,11 +188,7 @@ status open \begin_layout Plain Layout \lang english -\begin_inset Formula $b$ -\end_inset - - -\begin_inset Formula $\left[\si{\meter}\right]$ +\begin_inset Formula $b\left[\si{\meter}\right]$ \end_inset @@ -208,11 +202,7 @@ status open \begin_layout Plain Layout \lang english -\begin_inset Formula $a$ -\end_inset - - -\begin_inset Formula $\left[\si{\meter}\right]$ +\begin_inset Formula $a\left[\si{\meter}\right]$ \end_inset @@ -226,11 +216,7 @@ status open \begin_layout Plain Layout \lang english -\begin_inset Formula $a^{-1}$ -\end_inset - - -\begin_inset Formula $\left[\si{\per\meter}\right]$ +\begin_inset Formula $a^{-1}\left[\si{\per\meter}\right]$ \end_inset @@ -244,11 +230,7 @@ status open \begin_layout Plain Layout \lang english -\begin_inset Formula $b^{-1}$ -\end_inset - - -\begin_inset Formula $\left[\si{\per\meter}\right]$ +\begin_inset Formula $b^{-1}\left[\si{\per\meter}\right]$ \end_inset @@ -260,13 +242,9 @@ status open \begin_inset Text \begin_layout Plain Layout -\begin_inset Formula $f$ -\end_inset - \lang english - -\begin_inset Formula $\left[\si{\meter}\right]$ +\begin_inset Formula $f\left[\si{\meter}\right]$ \end_inset @@ -278,13 +256,9 @@ status open \begin_inset Text \begin_layout Plain Layout -\begin_inset Formula $\Delta f$ -\end_inset - \lang english - -\begin_inset Formula $\left[\si{\meter}\right]$ +\begin_inset Formula $\Delta f\left[\si{\meter}\right]$ \end_inset @@ -299,6 +273,17 @@ status open \begin_layout Plain Layout +\lang english +0 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + \lang english 0,23 \end_layout @@ -378,6 +363,17 @@ status open \begin_layout Plain Layout +\lang english +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + \lang english 0,25 \end_layout @@ -457,6 +453,17 @@ status open \begin_layout Plain Layout +\lang english +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + \lang english 0,27 \end_layout @@ -536,6 +543,17 @@ status open \begin_layout Plain Layout +\lang english +3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + \lang english 0,29 \end_layout @@ -615,6 +633,17 @@ status open \begin_layout Plain Layout +\lang english +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + \lang english 0,31 \end_layout @@ -698,7 +727,7 @@ status open \begin_inset Caption Standard \begin_layout Plain Layout -Meritve tenkega upornika +Izmerjeni podatki \end_layout \end_inset @@ -733,85 +762,45 @@ begin{tikzpicture} \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}; +textwidth, scale only axis, ylabel=$b$, domain=0:.4, ytick pos=left, samples=256, + xlabel=$a$, xtick pos=bottom, xmin=0, xmax=.4, ymin=-.1, ymax=.2, %grid=both \end_layout \begin_layout Plain Layout - -\backslash -addlegendentry{tenek: $ -\backslash -SI{560}{ -\backslash -ohm} -\backslash -cdot -\backslash -SI{5}{ -\backslash -percent}$} +, major grid style={dashed,blue}] \end_layout \begin_layout Plain Layout \backslash -addplot[blue] (x, {x*1.75986}); +addplot[only marks] table [x=a, y=b, col sep=comma] {podatki.csv}; \end_layout \begin_layout Plain Layout \backslash -addlegendentry{} +addlegendentry{meritve} \end_layout \begin_layout Plain Layout -% -\backslash -addplot[mark=triangle*, red, only marks] table [x=u, y=i, col sep=comma] - {1d.csv}; -\end_layout -\begin_layout Plain Layout - - -\backslash -addlegendentry{debel: $ -\backslash -SI{270}{ -\backslash -ohm} \backslash -cdot -\backslash -SI{5}{ -\backslash -percent}$} +addplot[blue] (x, {1/(1/0.0511438-1/x)}); \end_layout \begin_layout Plain Layout \backslash -addplot[blue] (x, {x*3.65845}); +addlegendentry{$b=(f^{-1}-a^{-1})^{-1}$} \end_layout \begin_layout Plain Layout - -\backslash -addlegendentry{} \end_layout \begin_layout Plain Layout @@ -824,21 +813,21 @@ addplot[mark=square*, blue, only marks] table [x=u, y=i, col sep=comma] \begin_layout Plain Layout - +% \backslash addlegendentry{zaporedno} \end_layout \begin_layout Plain Layout - +% \backslash addplot[blue] (x, {x*1.1889}); \end_layout \begin_layout Plain Layout - +% \backslash addlegendentry{} \end_layout @@ -853,21 +842,21 @@ addplot[mark=diamond*, green, only marks] table [x=u, y=i, col sep=comma] \begin_layout Plain Layout - +% \backslash addlegendentry{vzporedno} \end_layout \begin_layout Plain Layout - +% \backslash addplot[blue] (x, {x*5.38536}); \end_layout \begin_layout Plain Layout - +% \backslash addlegendentry{} \end_layout @@ -883,89 +872,123 @@ end{axis} \backslash -end{tikzpicture} +begin{axis}[width=0.75 +\backslash +textwidth, scale only axis, ylabel=$b^{-1}$, ytick pos=right, samples=256, + xlabel=$a^{-1}$, xtick pos=top, %grid=both \end_layout -\end_inset +\begin_layout Plain Layout +, xlabel near ticks, ylabel near ticks, major grid style={dashed,red}, +\end_layout + +\begin_layout Plain Layout +legend style={at={(0.975,0.325)}, anchor=south east}, domain=4:7, xmin=4, + xmax=6.6, ymin=13, ymax=15.6 \end_layout \begin_layout Plain Layout -\begin_inset Caption Standard + +] +\end_layout \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. +\backslash +addplot[mark=triangle*, red, only marks] table [x=1/a, y=1/b, col sep=comma] + {podatki.csv}; \end_layout -\end_inset +\begin_layout Plain Layout +\backslash +addlegendentry{meritve} \end_layout -\end_inset +\begin_layout Plain Layout -\begin_inset ERT -status open +\backslash +addplot[red] (x, {1/0.0511438-x}); +\end_layout \begin_layout Plain Layout \backslash -begin{lstlisting} +addlegendentry{$b^{-1}=f^{-1}-a^{-1}$} \end_layout \begin_layout Plain Layout -set datafile separator ',' + +\backslash +end{axis} \end_layout \begin_layout Plain Layout -fit (x*p) -\begin_inset Quotes gld + +\backslash +end{tikzpicture} +\end_layout + \end_inset -1t.csv" using 2:3 via p + \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 -\backslash -end{lstlisting} -\end_layout +\begin_inset Formula $b(a)$ +\end_inset + + in +\begin_inset Formula $b^{-1}(a^{-1})$ \end_inset \end_layout -\begin_layout Section -Uporabljen program +\end_inset + + \end_layout -\begin_layout Standard -\begin_inset ERT -status open +\end_inset -\begin_layout Plain Layout -% -\backslash -lstinputlisting[language=Python]{tab.py} \end_layout +\begin_layout Standard +\begin_inset Formula $f$ \end_inset + je obratna vrednost neničelne komponente točke presečišča med bodisi ordinatno + bodisi abscisno osjo in premico +\begin_inset Formula $b^{-1}=f^{-1}-a^{-1}$ +\end_inset + +. + Kakršno koli odčitavanje iz strojno generiranega grafa ni smiselno, saj + je bila +\begin_inset Formula $f^{-1}$ +\end_inset + v osnovi uporabljena za konstruiranje premice. \end_layout \end_body -- cgit v1.2.3