1 / 6

UMR 7619 Sisyphe 17-19 Avril 2012

Le langage . une introduction pragmatique . Cacul itératif. UMR 7619 Sisyphe 17-19 Avril 2012. Alexandre Pryet. L'instruction de condition. # syntaxe simple if (condition) action # autre syntaxe : if (condition) { action1 action2 } else if (condition){ action1 action2

koto
Download Presentation

UMR 7619 Sisyphe 17-19 Avril 2012

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Le langage une introduction pragmatique Cacul itératif UMR 7619 Sisyphe 17-19 Avril 2012 Alexandre Pryet

  2. L'instruction de condition # syntaxe simple if(condition) action # autre syntaxe : if(condition) { action1 action2 }else if(condition){ action1 action2 }else{ action1 action2 }

  3. Réalisation de boucles for(i in start:end) { action1 action2 # inutile d'incrémenter i # c'est automatique }

  4. Réalisation de boucles while(condition) { action1 action2 }

  5. Calcul itératif Réalisation d'un programme pour modéliser l'interception de la pluie par le couvert végétal Pour commencer : forest->forest.m forest.m$misfit<-NULL forest.m$Tfhfall.obs Il faut modéliser le "réservoir" de l'eau stockée par le couverte végétal. Créer une colonne : forest.m$C

  6. Calcul itératif Réalisation d'un programme pour modéliser l'interception de la pluie par le couvert végétal Le réservoir C est : -> rempli par la pluie -> vidangé par les pertes (cf ci-contre) Ds [mm h−1 ] = 0.20 b [mm−1 ] = 1.99 1.72

More Related