for loop programing issues

for loop programing issues - 消息

#1 已发布: 2021/9/10 02:02:33
wty3000

wty3000

0个赞,共5个帖子。

组: 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)已下载 1211 次。
#2 已发布: 2021/9/10 10:02:27
churichuro

churichuro

29个赞,共79个帖子。

组: User

It works well for me
#3 已发布: 2021/9/10 10:10:00
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

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

wty3000

0个赞,共5个帖子。

组: 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)已下载 1211 次。



after the software restarted, the for loop is OK

thanks
#5 已发布: 2021/9/15 08:43:49
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Sum Algo.PNG
#6 已发布: 2021/9/15 14:29:04
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Wrote

after the software restarted, the for loop is OK

thanks


So it was "four engineer joke" again.


  • 有新帖
  • 无新帖