Skip to content
Snippets Groups Projects
Commit 543b2433 authored by pierre.kunzli's avatar pierre.kunzli Committed by orestis.malaspin
Browse files

Pk

parent 5610db20
No related branches found
No related tags found
1 merge request!9Pk
......@@ -811,14 +811,16 @@ Pour calculer la force sur un corps `c`, on parcourt l'arbre en commençant par
## Écrire le psuedo-code du calcul de la force
\footnotesize
```C
rien maj_force_sur_etoile(arbre, e, theta)
si est_vide(arbre)
retourne
si est_feuille(arbre) && contient_etoile(n) && dans_le_quadrant(arbre.q, e.x)
si est_feuille(arbre) && contient_etoile(arbre) && dans_le_quadrant(arbre.q, e.x)
maj_force(e, arbre.e)
sinon si noed_assez_loin(arbre, e, theta)
sinon si noeud_assez_loin(arbre, e, theta)
maj_force(e, arbre.sup_etoile)
sinon
pour enfant dans enfants
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment