for loop programing issues

for loop programing issues - Mensajes

#1 Publicado: 10/9/2021 2:02:33
wty3000

wty3000

0 me gusta en 5 mensajes.

Grupo: 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) descargado 1198 vez(es).
#2 Publicado: 10/9/2021 10:02:27
churichuro

churichuro

29 me gusta en 79 mensajes.

Grupo: User

It works well for me
#3 Publicado: 10/9/2021 10:10:00
overlord

overlord

600 me gusta en 1.381 mensajes.

Grupo: Moderator

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

wty3000

0 me gusta en 5 mensajes.

Grupo: 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) descargado 1198 vez(es).



after the software restarted, the for loop is OK

thanks
#5 Publicado: 15/9/2021 8:43:49
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

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

overlord

600 me gusta en 1.381 mensajes.

Grupo: Moderator

Wrote

after the software restarted, the for loop is OK

thanks


So it was "four engineer joke" again.


  • Nuevos mensajes
  • Sin mensajes nuevos