For Loop Confusion
Jun 04, 2020
01:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jun 04, 2020
01:24 PM
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!
Solved! Go to Solution.
Labels:
- Labels:
-
Programming
ACCEPTED SOLUTION
Accepted Solutions
Jun 04, 2020
01:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
2 REPLIES 2
Jun 04, 2020
01:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jun 04, 2020
01:39 PM
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:
Another way is:
(This was done in a previous version of Mathcad, but should work in Prime just the same)
Success!
Luc
Jun 04, 2020
01:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jun 04, 2020
01:40 PM
try it like this: