diff options
Diffstat (limited to 'PVCM/cama/fr/ma25 Drones -- Exercice.ipynb')
| -rw-r--r-- | PVCM/cama/fr/ma25 Drones -- Exercice.ipynb | 70 |
1 files changed, 44 insertions, 26 deletions
diff --git a/PVCM/cama/fr/ma25 Drones -- Exercice.ipynb b/PVCM/cama/fr/ma25 Drones -- Exercice.ipynb index 019ce93..64ae0c5 100644 --- a/PVCM/cama/fr/ma25 Drones -- Exercice.ipynb +++ b/PVCM/cama/fr/ma25 Drones -- Exercice.ipynb @@ -1,25 +1,4 @@ { - "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.11.8" - } - }, - "nbformat": 4, - "nbformat_minor": 5, "cells": [ { "cell_type": "markdown", @@ -114,11 +93,29 @@ "execution_count": null, "id": "4818926d", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[[ 1. 0. 0. 0.]\n", + " [ 0. 1. 0. 20.]\n", + " [ 0. 0. 1. 80.]\n", + " [ 0. 0. 0. 1.]]\n", + "[[-20. 20. 0. 0. 0. 0. 0.]\n", + " [ 0. 0. 0. 0. 0. -10. 10.]\n", + " [ 0. 0. -5. 5. 0. 0. 0.]]\n" + ] + } + ], "source": [ - "\n", "def circle(boat, t):\n", - " " + " up = np.array([0,20,80])\n", + " goUp = np.identity(4)\n", + " goUp[:3,3] = up\n", + " print(goUp)\n", + " print(boat)\n", + "circle(boat,0)" ] }, { @@ -291,5 +288,26 @@ "outputs": [], "source": [] } - ] -}
\ No newline at end of file + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "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.13.2" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} |
