indices problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
indices problem
Hello...just started back into MC and have a question re; this error I'm getting re: a summation:
Why does is it say the variable is undefined when it IS defined? what am i missing?
I enclosed a snapshot of what i'm talking about
Thanks for any help?
Solved! Go to Solution.
- Labels:
-
Mathcad Usage
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Its always better to attach the worksheet itselft rather than just a picture.
Are you aware that Prime uses two different types of indices - literal indices and vector/matrix indices?
Chances are that you used the wrong ones.
A vector index is just an integer. So you could not use something like z.k1 but rather would use z.10*k+1
Furthermore you have to know that if you define z.11:=... you are defining a 12 element vector (assuming you have not changed the value of ORIGIN which is 0 by default). Unless you have them defined before, all other elements of the vector z (z.0, z.1 ... z.10) are set to zero.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
ok..so I should use the literal version then?..how do i access/implement that? I just used "operators"--> and picked the one with the
subscript matrix index.
Sorry about the pic..i was hoping that would be clear..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
No, the vector/matrix indices would be the correct ones to use, but it could not be seen from the pic which you used where.
So again, upload the sheet for further help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Please upload your Mathcad Prime worksheet here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks alot Werner.. I appreciate it..it now gives me something to work with.
