Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Raztua  
#1 Posted : 16 November 2017 19:14:55(UTC)
Raztua


Rank: Member

Groups: Registered
Joined: 10/11/2017(UTC)
Posts: 15
France

Was thanked: 2 time(s) in 2 post(s)
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

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Jean Giraud  
#2 Posted : 16 November 2017 20:03:03(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Raztua Go to Quoted Post
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 (121kb) downloaded 18 time(s).
Offline Jean Giraud  
#3 Posted : 16 November 2017 20:15:17(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
vectorize.PNG
Offline Jean Giraud  
#4 Posted : 16 November 2017 20:18:27(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
VectorizeComplex.PNG
Offline Raztua  
#5 Posted : 16 November 2017 20:42:21(UTC)
Raztua


Rank: Member

Groups: Registered
Joined: 10/11/2017(UTC)
Posts: 15
France

Was thanked: 2 time(s) in 2 post(s)
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.

Offline Davide Carpi  
#6 Posted : 16 November 2017 21:01:37(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
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

Edited by user 16 November 2017 21:05:30(UTC)  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
thanks 1 user thanked Davide Carpi for this useful post.
on 16/11/2017(UTC)
Offline Raztua  
#7 Posted : 16 November 2017 21:14:25(UTC)
Raztua


Rank: Member

Groups: Registered
Joined: 10/11/2017(UTC)
Posts: 15
France

Was thanked: 2 time(s) in 2 post(s)
Thanks a lot for the explanation!

You made my day!




Offline Jean Giraud  
#8 Posted : 17 November 2017 00:52:33(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Raztua Go to Quoted Post
You made my day!

Visit "Calculation in Table"
Read more in the 12 Smath work sheets attached.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.