mirror of
https://gitlab.rlp.net/pgp/pgp1-python-einfuehrung
synced 2024-11-16 13:48:11 +00:00
Fixed ndof
This commit is contained in:
parent
c4512dffa4
commit
006dfbe49c
1 changed files with 6 additions and 6 deletions
|
@ -403,7 +403,7 @@
|
||||||
"chi = sum([(fallhoehe(t, para[0]) - h)**2/dh**2 for t, h, dh in zip(time, height, dheight)])\n",
|
"chi = sum([(fallhoehe(t, para[0]) - h)**2/dh**2 for t, h, dh in zip(time, height, dheight)])\n",
|
||||||
"\n",
|
"\n",
|
||||||
"print(f'''\n",
|
"print(f'''\n",
|
||||||
"Das die Fitgüte Chi²/ndof lautet {chi:.2f}/{len(height)-1}\n",
|
"Das die Fitgüte Chi²/ndof lautet {chi:.2f}/{len(height) - 1}\n",
|
||||||
"und der Wert für g ist {para[0]:.2f} +/- {pcov[0,0]:.2f} m/s\n",
|
"und der Wert für g ist {para[0]:.2f} +/- {pcov[0,0]:.2f} m/s\n",
|
||||||
"''')"
|
"''')"
|
||||||
]
|
]
|
||||||
|
@ -441,7 +441,7 @@
|
||||||
"chi = sum([(fallhoehe2(t, para2[0], para2[1]) - h)**2/dh**2 for t, h, dh in zip(time, height, dheight)])\n",
|
"chi = sum([(fallhoehe2(t, para2[0], para2[1]) - h)**2/dh**2 for t, h, dh in zip(time, height, dheight)])\n",
|
||||||
"\n",
|
"\n",
|
||||||
"print(f'''\n",
|
"print(f'''\n",
|
||||||
"Das die Fitgüte Chi²/ndof lautet {chi:.2f}/{len(height)-1}\n",
|
"Das die Fitgüte Chi²/ndof lautet {chi:.2f}/{len(height) - 2}\n",
|
||||||
"und der Wert für g ist {para2[0]:.2f} +/- {pcov2[0,0]:.2f} m/s\n",
|
"und der Wert für g ist {para2[0]:.2f} +/- {pcov2[0,0]:.2f} m/s\n",
|
||||||
"''')"
|
"''')"
|
||||||
]
|
]
|
||||||
|
@ -553,7 +553,7 @@
|
||||||
"chit = sum([(fallzeit(h, para[0]) - t)**2/dt**2 for t, h, dt in zip(time, height, dtime)])\n",
|
"chit = sum([(fallzeit(h, para[0]) - t)**2/dt**2 for t, h, dt in zip(time, height, dtime)])\n",
|
||||||
"\n",
|
"\n",
|
||||||
"print(f'''\n",
|
"print(f'''\n",
|
||||||
"Das die Fitgüte Chi²/ndof lautet {chit:.2f}/{len(height)-1}\n",
|
"Das die Fitgüte Chi²/ndof lautet {chit:.2f}/{len(height) - 1}\n",
|
||||||
"und der Wert für g ist {parat[0]:.2f} +/- {pcovt[0,0]:.2f} m/s\n",
|
"und der Wert für g ist {parat[0]:.2f} +/- {pcovt[0,0]:.2f} m/s\n",
|
||||||
"''')"
|
"''')"
|
||||||
]
|
]
|
||||||
|
@ -1354,7 +1354,7 @@
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
"display_name": "Python 3",
|
"display_name": "Python 3 (ipykernel)",
|
||||||
"language": "python",
|
"language": "python",
|
||||||
"name": "python3"
|
"name": "python3"
|
||||||
},
|
},
|
||||||
|
@ -1368,9 +1368,9 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.7.6"
|
"version": "3.9.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
"nbformat_minor": 2
|
"nbformat_minor": 4
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue