2022-2023/1ST/03_Nombre_derive_et_tangente/4E_hamster.ipynb
Bertrand Benjamin 2ad2f8578b
All checks were successful
continuous-integration/drone/push Build is passing
Feat: début du chapitre sur le nombre dérivé et la tangente
2022-11-09 09:52:37 +01:00

432 lines
28 KiB
Plaintext

{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Mon hamster dans sa roue\n",
"\n",
"Mon hamster court dans sa roue durant toute la journée. J'aime l'étudier et aujourd'hui je voudrait savoir à quelle vitesse il avance dans sa roue.\n",
"\n",
"\n",
"## Distance parcourue\n",
"\n",
"Lors d'anciennes expérimentation, j'ai enregistré sur un jour la position de sa roue. Je peux maintenant y avoir accès par la fonction `position`."
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"from hamster import position, graph"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:title={'center':'Position de la roue'}, xlabel='Temps (en h)', ylabel='Position (en m)'>"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAEWCAYAAABrDZDcAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAAA5oElEQVR4nO3dd3gc5bn38e+tZsuSLcmWLduyJbnhXuVGjQ0BTO8tgQAhccihJCGcmOTNgZQTTkhICIGQBqEHU0OxTbdMd5O7ccFdlnuRZVldut8/dhaEkKWVvLMzq70/17UXuzuzMz8t3r13npnneURVMcYYE7vivA5gjDHGW1YIjDEmxlkhMMaYGGeFwBhjYpwVAmOMiXFWCIwxJsZZITBRT0R+JiIPN7P8myLyVoSyqIgMbMPrrhORD93IZExLrBCYiBORLSJSISJlIrJbRB4TkdS2bk9V71bV7zjbznO+jBMaLH9aVc8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OdR8mdtnlo6ZdEpFfAGWqeq+HGT4Gzg/HaJ/NFIJOwEfO8AzGtIk1DZl2TUTyReQ9Z6C1N53htRGReSJyn4gsdsbAnyAiL4nIZyLyv846ec4Y+U8767zgfPEiIr915mpYISJfKTYichxQFSwCTm/oF0VkkXM70Xn+FxKYk2KeiGwSkVub+Vt+I4E5GOaLSBaAqpYDW0TED8NFmChlhcC0ZwI8AFyqqvnAv4DfNFherarjgb8BrwA3ASOA65xmJoDBwEOqOhQoBf7LWXYRMFxVRwH/28S+TyTQ8zPofuA+VZ0AXMKXh6keApxJYOyfu5wxnhpLAear6mjgfeC7DZYtBk5u9p0wphl2jsC0Zx0IfLG/7QytEE9g2N6g4HhTK4HVqroTQEQ2ERiksAQoUtWPnPWeAm4lMNR0JfCIBGYha2p4i158cX4CAgOFDXNyAHRxRnYFmK2qVUCViOwhMBzE9kbbq26wn0ICwx4E7SFQTIxpEysEpj0TAl/wR5v6sMr5b32D+8HHwc9G45No6oxdNZHAYF+XAjcDpzZarwJIa/A4DpisqpVfChgoDA33XUfTn8sa/eKEXuN1Ojr7M6ZNrGnItGdVQHdx5sAVkUQRGd7KbeTIF3PofgP40Pkln+YMwPcjYHQTr1sDDGzw+C0Cg6vhZBnTyhzNOQ4fjCRqopcVAtOe1RP4xX6PiCwHltH6cdvXEZjEZQ2QAfwV6AzMEpEVBOaOva2J170PjJUv2oJuBcY7J5c/BW5s7R/TjBOBt8O4PRNj7PJRY47CmaJzlqq2afYzEbkfeE1V3wlrsC/vYyxwm6pe49Y+TPtnRwTGuOduAhOLuykT+B+X92HaOTsiMMaYGGdHBMYYE+OsEBhjTIyzQmCMMTHOCoExxsQ4KwTGGBPj/j/fwGcrEFXZkAAAAABJRU5ErkJggg==\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"graph()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Pour connaître la position de la roue à un moment donné, je dois le renseigner comme paramètre de la fonction.\n",
"\n",
"Par exemple au début de la journée (8h) à `t=0` la position de la roue est à"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"position(0)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"À midi, donc `t=4` la position de la route est à"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"4"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"position(4)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Quelle est la position de la roue à 10h (`t=2`)?"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Quelle est la position de la roue à 16h?"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Quelle est la position de la roue à 8h30?"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Quelle est la position de la roue à 12h30?"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Vitesse moyenne\n",
"\n",
"Comme je disais au début, ce n'est pas la position de la roue qui m'interesse mais bien la vitesse de mon hamster.\n",
"\n",
"Quelle est la **vitesse moyenne** de mon hamster entre 8h et 12h?"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Quelle est la vitesse moyenne de mon hamster sur la journée entre 8h et 16h?"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Entre quelles heures, mon hamster s'est-il montré le plus rapide?"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Comme on commence un peu trop souvent écrire le même calcul, c'est qu'il est temps de programmer une fonction pour le faire à notre place.\n",
"\n",
"Ci-dessous, il y a le début de la définition de la fonction. À toi de compléter les ... pour que cette fonction calcule la vitesse du hamster entre les deux moments `t1` et `t2`.\n"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"def vitesse(t1,t2):\n",
" return ..."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Utilise ta nouvelle fonction vitesse pour calculer la vitesse moyenne de mon hamster entre 8h et 12h. Tu devrais trouver le même résultat que plus haut."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"vitesse(..., ...)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Calculer la vitesse de mon hamster entre 11h30 et 12h."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Puis entre 12h et 12h30."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Vitesse instantannée\n",
"\n",
"Les voitures ont un compteur de vitesse qui donne la **vitesse instantannée** du véhicule pas la vitesse moyenne entre 2 moments.\n",
"\n",
"J'aimerai connaître la **vitesse instantannée** de mon hamster à 12h.\n",
"\n",
"Pour faire cela, on va calculer la vitesse moyenne un peu avant 12h disons entre 11h45 et 12h puis la vitesse moyenne un peu après entre 12h et 12h15.\n",
"\n",
"Calcule ces deux vitesses moyennes sur 15min."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Ensuite on recommence mais cette fois-ci avec une vitesse moyenne sur 5minutes."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Et on continue avec une amplitude de 1min"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Pour avoir la vitesse instantannée, il faudrait continuer ainsi jusqu'à ce que l'amplitude soit nulle. Les vitesses moyennes se rapprocheraient de plus en plus autour d'une valeur que l'on appelle **vitesse instantannée**.\n",
"\n",
"\n",
"À toi de trouver la vitesse instantannée à 13h."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.8"
}
},
"nbformat": 4,
"nbformat_minor": 2
}