0 Members and 3 Guests are viewing this topic.
En regardant le code généré, j'ai même constaté que :Code: [Select]:20->A+2-Best moins optimisé que :Code: [Select]:20->A:22->B
:20->A+2-B
:20->A:22->B
En revanche :Code: [Select]:12->A->Best bel et bien plus optimisé que :Code: [Select]:12->A:12->B
:12->A->B
:12->A:12->B
Disp "MONTEXT
Output() is not capitalized in some examples
Pause 1000 is not a second, a second is closer to Pause 1800
Pause and Pause 0 work, they just can take up to 40 seconds to process
Adding or subtracting any value besides 1, 2, 255, 256, 257, or 512 is not more optimized than just stating a whole new value
abs() works regardless of where the calculation occurred that made the value negative
In one place you use ≥0, which is always true, so it seems somewhat pointless
The guy who commented about your xor diagram is right
In the variables and calculations exercise, the text would be centered better if outputted at (6,3) and (6,4)
Also in that exercise, one line says A≤0→1, which I assume should be A≤0→A
"10²→B-66→C :√(B+C)→A" :: In this, -66→C should be -56→C. Also, if you want to use it, a more optimized way would be :44→C
"Et si A est négatif, il n'y a pas un moyen plus simple que If A≠0" :: Negatives do not require special treatment in this case
DS<() decreases the variable before checking if it equals 0
:1=>A:DS<(A,4):End:Disp A>Dec
"Une boucle consiste à répéter un code tant qu'une expression n'est pas VRAIE." :: Depending upon the loop type, this is not true. It would be better to say: "Une boucle consiste à répéter un code tant qu'une condition est vrai." (Isn't it spelled "vrai" and not "vraie"?)
In your For() loop made with a Repeat loop, "Repeat Variable=ValeurDeFinDeBoucle" should be "Repeat Variable>ValeurDeFinDeBoucle"
The code for the last question about loops would only freeze the calculator if A=0.
QuotePause 1000 is not a second, a second is closer to Pause 1800Can you develop ? Is there same speed in 84+ and 83+ ?
QuoteDS<() decreases the variable before checking if it equals 0Well, this code will display 0 :Code: [Select]:1=>A:DS<(A,4):End:Disp A>Dec
QuoteIn your For() loop made with a Repeat loop, "Repeat Variable=ValeurDeFinDeBoucle" should be "Repeat Variable>ValeurDeFinDeBoucle"I didn't know, for( loop tests if the expression is greater than the value tested?
QuoteThe code for the last question about loops would only freeze the calculator if A=0.I didn't find where you refer ?
:Repeat A:While A:.Code:End:End
Quote from: mdr1 on January 10, 2011, 10:40:06 amEn regardant le code généré, j'ai même constaté que :Code: [Select]:20->A+2-Best moins optimisé que :Code: [Select]:20->A:22->BPourquoi le premier exemple contient -B au lieu de →B? Il est possible que ça l'affecte.
Quote from: mdr1 on January 10, 2011, 10:40:06 amEn regardant le code généré, j'ai même constaté que :Code: [Select]:20->A+2-Best moins optimisé que :Code: [Select]:20->A:22->BPoint de vue octet, tu en gagne 1.(le retour à la ligne! )