for loop programing issues

for loop programing issues - Messages

#1 Posted: 9/10/2021 2:02:33 AM
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 KiB) downloaded 42 time(s).
#2 Posted: 9/10/2021 10:02:27 AM
churichuro

churichuro

28 likes in 79 posts.

Group: User

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

overlord

552 likes in 1332 posts.

Group: Moderator

Fine here too, no problems.
Is the Auto calculation enabled?
#4 Posted: 9/15/2021 12:30:44 AM
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 KiB) downloaded 42 time(s).



after the software restarted, the for loop is OK

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

Jean Giraud

983 likes in 6866 posts.

Group: User

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

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

after the software restarted, the for loop is OK

thanks


So it was "four engineer joke" again.


  • New Posts New Posts
  • No New Posts No New Posts