From e50405bc1a8a73cc05fa8d937b674da71cbb593b Mon Sep 17 00:00:00 2001 From: "julian.jung@tu-dortmund.de" Date: Mon, 8 May 2017 13:42:14 +0200 Subject: [PATCH] fehler --- .../Fehlerfortpflanzung-checkpoint.ipynb | 33 ++++++++++--------- Fehlerfortpflanzung.ipynb | 12 +++---- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/.ipynb_checkpoints/Fehlerfortpflanzung-checkpoint.ipynb b/.ipynb_checkpoints/Fehlerfortpflanzung-checkpoint.ipynb index 7681708..62bcda1 100644 --- a/.ipynb_checkpoints/Fehlerfortpflanzung-checkpoint.ipynb +++ b/.ipynb_checkpoints/Fehlerfortpflanzung-checkpoint.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 2, + "execution_count": 27, "metadata": { "collapsed": false }, @@ -14,32 +14,32 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 28, "metadata": { "collapsed": false }, "outputs": [], "source": [ - "R = sp.symbols('R') #Variablennamen einsetzen 'd' ist reserviert\n", - "variablen = [R]\n", - "variablen_werte = [45]\n", - "fehler_werte = [30.5]" + "h,r,T = sp.symbols('h r T') #Variablennamen einsetzen 'd' ist reserviert\n", + "variablen = [h,r,T]\n", + "variablen_werte = [2.8, 3.4, 4.2]\n", + "fehler_werte = [0.3,0.2,0.1]" ] }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 29, "metadata": { - "collapsed": true + "collapsed": false }, "outputs": [], "source": [ - "funktion = (" + "funktion = (h*r**2*sp.sqrt(T))" ] }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 30, "metadata": { "collapsed": false }, @@ -62,7 +62,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 31, "metadata": { "collapsed": true }, @@ -75,7 +75,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 32, "metadata": { "collapsed": false }, @@ -121,7 +121,7 @@ { "data": { "text/latex": [ - "$$r=4.2\\pm0.2$$" + "$$r=3.4\\pm0.2$$" ], "text/plain": [ "" @@ -133,7 +133,7 @@ { "data": { "text/latex": [ - "$$T=2.4\\pm0.1$$" + "$$T=4.2\\pm0.1$$" ], "text/plain": [ "" @@ -183,7 +183,7 @@ { "data": { "text/latex": [ - "$$f= 76.52 \\pm 11.08$$" + "$$f= 66.33 \\pm 10.58$$" ], "text/plain": [ "" @@ -195,7 +195,7 @@ { "data": { "text/latex": [ - "$$f= 76.52 \\pm 14.5 \\%$$" + "$$f= 66.33 \\pm 16.0 \\%$$" ], "text/plain": [ "" @@ -208,6 +208,7 @@ "source": [ "print('Funktion:')\n", "display(Math('f='+sp.latex(funktion)))\n", + "\n", "print('Messwerte:')\n", "for i in range(len(variablen)):\n", " display(Math(str(variablen[i])+'='+str(variablen_werte[i])+'\\pm'+\n", diff --git a/Fehlerfortpflanzung.ipynb b/Fehlerfortpflanzung.ipynb index 62bcda1..a067330 100644 --- a/Fehlerfortpflanzung.ipynb +++ b/Fehlerfortpflanzung.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 27, + "execution_count": 1, "metadata": { "collapsed": false }, @@ -14,7 +14,7 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": 2, "metadata": { "collapsed": false }, @@ -28,7 +28,7 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": 3, "metadata": { "collapsed": false }, @@ -39,7 +39,7 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": 4, "metadata": { "collapsed": false }, @@ -62,7 +62,7 @@ }, { "cell_type": "code", - "execution_count": 31, + "execution_count": 5, "metadata": { "collapsed": true }, @@ -75,7 +75,7 @@ }, { "cell_type": "code", - "execution_count": 32, + "execution_count": 6, "metadata": { "collapsed": false },