List calculation

List calculation - 消息

#1 已发布: 2017/11/16 13:14:55
pierre

pierre

2个赞,共17个帖子。

组: User

Hello,

Could you tell me if their is any way to loop through a list the Way mathcad does with the I:=0..n, as a "global" methode (not inside a formula).
Below a screenshot of the case
Image explicative

Thank you for your help
#2 已发布: 2017/11/16 14:03:03
Jean Giraud

Jean Giraud

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

组: User

Wrote

Could you tell me if their is any way to loop through a list



No limit, even from more savant list.

hello.PNG

ODE rkf Integrate [rkf4 2 parameters Algo].sm (120.69 KiB)已下载 1081 次。
#3 已发布: 2017/11/16 14:15:17
Jean Giraud

Jean Giraud

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

组: User

vectorize.PNG
#4 已发布: 2017/11/16 14:18:27
Jean Giraud

Jean Giraud

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

组: User

VectorizeComplex.PNG
#5 已发布: 2017/11/16 14:42:21
pierre

pierre

2个赞,共17个帖子。

组: User

Thanks for your reply.

I think i need to be more specific with my question.
I will make an exemple extracted from the internet (page 16)

link to the PDF

Image

As you can see the loop is done for the whole spreadsheet, and it makes calculation notes a lot clearer.

#6 已发布: 2017/11/16 15:01:37
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Here you have:

2017-11-16 14_22_47-Page2 - SMath Studio in the Cloud.png


The arrow over the math is the function vectorize(), and that's what you need to apply the elements of the ranges avoiding loops (that is the other way to accomplish the task)

2017-11-16 14_27_03-Page2 - SMath Studio in the Cloud.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
Arie 2017/11/16 17:11:00
#7 已发布: 2017/11/16 15:14:25
pierre

pierre

2个赞,共17个帖子。

组: User

Thanks a lot for the explanation!

You made my day!




#8 已发布: 2017/11/16 18:52:33
Jean Giraud

Jean Giraud

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

组: User

Wrote

You made my day!


Visit "Calculation in Table"
Read more in the 12 Smath work sheets attached.
  • 有新帖
  • 无新帖