mirror of
https://gitlab.rlp.net/pgp/pgp1-python-einfuehrung
synced 2024-11-16 13:48:11 +00:00
Kleine Aenderungen und Bugfixes.
This commit is contained in:
parent
b89a9d149b
commit
3b48106d56
2 changed files with 36 additions and 138 deletions
|
@ -495,23 +495,14 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 1,
|
"execution_count": null,
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2020-08-25T09:07:53.967603Z",
|
"end_time": "2020-08-25T09:07:53.967603Z",
|
||||||
"start_time": "2020-08-25T09:07:53.954643Z"
|
"start_time": "2020-08-25T09:07:53.954643Z"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"outputs": [
|
"outputs": [],
|
||||||
{
|
|
||||||
"name": "stdout",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"1.2171612389003692 0.4946193668294979 0.09359019226174953\n",
|
|
||||||
"-92.31736564698974\n"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
"source": [
|
||||||
"s0 = -1.2 # m\n",
|
"s0 = -1.2 # m\n",
|
||||||
"aSun = -274 # m/s**2\n",
|
"aSun = -274 # m/s**2\n",
|
||||||
|
@ -689,29 +680,14 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 2,
|
"execution_count": null,
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2020-08-25T09:08:13.614302Z",
|
"end_time": "2020-08-25T09:08:13.614302Z",
|
||||||
"start_time": "2020-08-25T09:08:13.607319Z"
|
"start_time": "2020-08-25T09:08:13.607319Z"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"outputs": [
|
"outputs": [],
|
||||||
{
|
|
||||||
"name": "stdout",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"\n",
|
|
||||||
"Fie Fallzeit beträgt auf...\n",
|
|
||||||
"... dem Mond: 1.217 s \n",
|
|
||||||
"... der Erde: 0.495 s\n",
|
|
||||||
"... der Sonne: 0.094 s\n",
|
|
||||||
"\n",
|
|
||||||
"Der Stift schlägt auf der Sonnenoberfläche\n",
|
|
||||||
"mit einer Geschwindikeit von -92.317 km/h auf.\n"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
"source": [
|
||||||
"print(f'''\n",
|
"print(f'''\n",
|
||||||
"Fie Fallzeit beträgt auf...\n",
|
"Fie Fallzeit beträgt auf...\n",
|
||||||
|
@ -916,29 +892,14 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 3,
|
"execution_count": null,
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2020-08-25T09:09:05.968956Z",
|
"end_time": "2020-08-25T09:09:05.968956Z",
|
||||||
"start_time": "2020-08-25T09:09:05.958982Z"
|
"start_time": "2020-08-25T09:09:05.958982Z"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"outputs": [
|
"outputs": [],
|
||||||
{
|
|
||||||
"name": "stdout",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"\n",
|
|
||||||
"Spannung | Strom | Leistung:\n",
|
|
||||||
"5 V: 10 mA; 50 mW\n",
|
|
||||||
"10 V: 20 mA; 200 mW\n",
|
|
||||||
"20 V: 40 mA; 800 mW\n",
|
|
||||||
"50 V: 100 mA; 5000 mW\n",
|
|
||||||
"\n",
|
|
||||||
"Der Fehler des Stroms für die 50 V Messung beträgt: 11 Ohm\n"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
"source": [
|
||||||
"def strom(spannung, widerstand):\n",
|
"def strom(spannung, widerstand):\n",
|
||||||
" return spannung/(widerstand/1000)\n",
|
" return spannung/(widerstand/1000)\n",
|
||||||
|
@ -1400,25 +1361,14 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 4,
|
"execution_count": null,
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2020-08-25T09:09:57.232469Z",
|
"end_time": "2020-08-25T09:09:57.232469Z",
|
||||||
"start_time": "2020-08-25T09:09:57.215516Z"
|
"start_time": "2020-08-25T09:09:57.215516Z"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"outputs": [
|
"outputs": [],
|
||||||
{
|
|
||||||
"data": {
|
|
||||||
"text/plain": [
|
|
||||||
"1373.715238095238"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"execution_count": 4,
|
|
||||||
"metadata": {},
|
|
||||||
"output_type": "execute_result"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
"source": [
|
||||||
"messwert_nummer = list(range(1,7,1))\n",
|
"messwert_nummer = list(range(1,7,1))\n",
|
||||||
"spannungs_wert = [12., 11.78, 12.56, 12.34, 12.01, 11.94]\n",
|
"spannungs_wert = [12., 11.78, 12.56, 12.34, 12.01, 11.94]\n",
|
||||||
|
@ -1510,7 +1460,7 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.7.3"
|
"version": "3.7.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue