Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Algo_cours
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gabriel.marinoja
Algo_cours
Commits
543b2433
Commit
543b2433
authored
3 years ago
by
pierre.kunzli
Committed by
orestis.malaspin
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Pk
parent
5610db20
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
slides/cours_21.md
+4
-2
4 additions, 2 deletions
slides/cours_21.md
with
4 additions
and
2 deletions
slides/cours_21.md
+
4
−
2
View file @
543b2433
...
@@ -811,14 +811,16 @@ Pour calculer la force sur un corps `c`, on parcourt l'arbre en commençant par
...
@@ -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
## Écrire le psuedo-code du calcul de la force
\f
ootnotesize
```
C
```
C
rien maj_force_sur_etoile(arbre, e, theta)
rien maj_force_sur_etoile(arbre, e, theta)
si est_vide(arbre)
si est_vide(arbre)
retourne
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)
maj_force(e, arbre.e)
sinon si noed_assez_loin(arbre, e, theta)
sinon si noe
u
d_assez_loin(arbre, e, theta)
maj_force(e, arbre.sup_etoile)
maj_force(e, arbre.sup_etoile)
sinon
sinon
pour enfant dans enfants
pour enfant dans enfants
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment