for loop programing issues

for loop programing issues - Poruke

#1 Objavljeno: 10. 9. 2021. 02:02:33
wty3000

wty3000

0 svidjanja u 5 postova.

Grupa: User

a very simply question.
unlike Matlab Mathtype the "for loop" is quit strange. for loop.png

The result should be that the statements s+jj are executed 100 times, jj is incresed by 1.0 each time

Finally, s is the sum, and the result should be a number such as 5050.

I use this example to verify the execution of the for loop

so what is wrong with it ?

forloop.sm (3,04 KiB) preuzeto 1231 put(ova).
#2 Objavljeno: 10. 9. 2021. 10:02:27
churichuro

churichuro

29 svidjanja u 79 postova.

Grupa: User

It works well for me
#3 Objavljeno: 10. 9. 2021. 10:10:00
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Fine here too, no problems.
Is the Auto calculation enabled?
#4 Objavljeno: 15. 9. 2021. 00:30:44
wty3000

wty3000

0 svidjanja u 5 postova.

Grupa: User

Wrote

a very simply question.
unlike Matlab Mathtype the "for loop" is quit strange. for loop.png

The result should be that the statements s+jj are executed 100 times, jj is incresed by 1.0 each time

Finally, s is the sum, and the result should be a number such as 5050.

I use this example to verify the execution of the for loop

so what is wrong with it ?

forloop.sm (3,04 KiB) preuzeto 1231 put(ova).



after the software restarted, the for loop is OK

thanks
#5 Objavljeno: 15. 9. 2021. 08:43:49
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Sum Algo.PNG
#6 Objavljeno: 15. 9. 2021. 14:29:04
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Wrote

after the software restarted, the for loop is OK

thanks


So it was "four engineer joke" again.


  • Novi postovi
  • Nema novih postova