Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

** Community Tip** - You can Bookmark boards, posts or articles that you'd like to access again easily!
X

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

May 19, 2021
12:20 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

May 19, 2021
12:20 PM

For Loop Code issue

I have a task to make the code in the left as written in the right but I have an error as attached appreciate if anyone can help.

Solved! Go to Solution.

Labels:

ACCEPTED SOLUTION

Accepted Solutions

May 20, 2021
07:25 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

- Tags:
- Prime_7.0

2 REPLIES 2

May 19, 2021
01:56 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

May 19, 2021
01:56 PM

Look carefully at the error message that Prime gives: "This value must be an integer"

Pw is a vector. You are using j to index into that vector, that means you are trying to point to one element of that vector. Then j must be an integer, a whole number, in the range 0, 1, 2, ...., and it cannot have units.

Now look at how you defined j: it runs from Pp ( a few million Pascals) to sigma (I don't even want to know what that is.)

If you have to recreate the Mathcad file into Prime, be careful about what you change...

Success!

Luc

May 20, 2021
07:25 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

May 20, 2021
07:25 AM

Only change j to integer.

- Tags:
- Prime_7.0