for loop programing issues

for loop programing issues - Messages

#1 Posted: 2021/9/10 02:02:33
wty3000

wty3000

0 likes in 5 posts.

Group: 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) downloaded 637 time(s).
#2 Posted: 2021/9/10 10:02:27
churichuro

churichuro

28 likes in 79 posts.

Group: User

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

overlord

580 likes in 1,348 posts.

Group: Moderator

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

wty3000

0 likes in 5 posts.

Group: 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) downloaded 637 time(s).



after the software restarted, the for loop is OK

thanks
#5 Posted: 2021/9/15 08:43:49
Jean Giraud

Jean Giraud

983 likes in 6,866 posts.

Group: User

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

overlord

580 likes in 1,348 posts.

Group: Moderator

Wrote

after the software restarted, the for loop is OK

thanks


So it was "four engineer joke" again.


  • New Posts
  • No New Posts