Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
fonction.c@0:8bb6839e4133, 2020-03-19 (annotated)
- Committer:
- eitanallal
- Date:
- Thu Mar 19 07:31:08 2020 +0000
- Revision:
- 0:8bb6839e4133
YO
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| eitanallal | 0:8bb6839e4133 | 1 | #include "fonction.h" |
| eitanallal | 0:8bb6839e4133 | 2 | |
| eitanallal | 0:8bb6839e4133 | 3 | // Calcul de l'état à l'instant t+dt |
| eitanallal | 0:8bb6839e4133 | 4 | |
| eitanallal | 0:8bb6839e4133 | 5 | void sortiex(int posx,int accx){ |
| eitanallal | 0:8bb6839e4133 | 6 | posx=posx+accx*TMP*TMP; |
| eitanallal | 0:8bb6839e4133 | 7 | } |
| eitanallal | 0:8bb6839e4133 | 8 | |
| eitanallal | 0:8bb6839e4133 | 9 | void sortiey(int posy,int accy){ |
| eitanallal | 0:8bb6839e4133 | 10 | posy=posy+accy*TMP*TMP; |
| eitanallal | 0:8bb6839e4133 | 11 | } |
| eitanallal | 0:8bb6839e4133 | 12 | |
| eitanallal | 0:8bb6839e4133 | 13 | void listex(int* matx,int entreex,int rang){ |
| eitanallal | 0:8bb6839e4133 | 14 | int* p=matx+rang+1; |
| eitanallal | 0:8bb6839e4133 | 15 | *p=entreex; |
| eitanallal | 0:8bb6839e4133 | 16 | } |
| eitanallal | 0:8bb6839e4133 | 17 | |
| eitanallal | 0:8bb6839e4133 | 18 | void listey(int* maty,int entreey,int rang){ |
| eitanallal | 0:8bb6839e4133 | 19 | int* p=maty+rang+1; |
| eitanallal | 0:8bb6839e4133 | 20 | *p=entreey; |
| eitanallal | 0:8bb6839e4133 | 21 | } |