cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

For Loop Confusion

swingwise
2-Explorer

For Loop Confusion

I am attempting to write my first For Loop. I have a vector of values, i=0 to 10. x0 = 0.05. x1 = x0/2. x2 = x1/2, etc. I cannot seem to find any way of doing this. I have tried this, below, but it doesn't work. Please help!

swingwise_0-1591291413531.png

 

ACCEPTED SOLUTION

Accepted Solutions
DJF
16-Pearl
16-Pearl
(To:swingwise)

try it like this:

 

2020-06-04_12-39-27.jpg

View solution in original post

2 REPLIES 2
LucMeekes
23-Emerald III
(To:swingwise)

Welcome.

1st of all: You should always attach your worksheet, not just a picture.

2. The definition of i:=1..10 already is a FOR-loop.

This is how it works:

LucMeekes_1-1591292326753.png

Another way is:

LucMeekes_0-1591292518414.png

(This was done in a previous version of Mathcad, but should work in Prime just the same)

 

Success!

Luc

 

DJF
16-Pearl
16-Pearl
(To:swingwise)

try it like this:

 

2020-06-04_12-39-27.jpg

Announcements

Top Tags