List calculation

List calculation - Messages

#1 Posted: 11/16/2017 1:14:55 PM
pierre

pierre

2 likes in 17 posts.

Group: 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 Posted: 11/16/2017 2:03:03 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 44 time(s).
#3 Posted: 11/16/2017 2:15:17 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

vectorize.PNG
#4 Posted: 11/16/2017 2:18:27 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

VectorizeComplex.PNG
#5 Posted: 11/16/2017 2:42:21 PM
pierre

pierre

2 likes in 17 posts.

Group: 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 Posted: 11/16/2017 3:01:37 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: 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 users liked this post
Arie 11/16/2017 5:11:00 PM
#7 Posted: 11/16/2017 3:14:25 PM
pierre

pierre

2 likes in 17 posts.

Group: User

Thanks a lot for the explanation!

You made my day!




#8 Posted: 11/16/2017 6:52:33 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

You made my day!


Visit "Calculation in Table"
Read more in the 12 Smath work sheets attached.
  • New Posts New Posts
  • No New Posts No New Posts