×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

# Contact US

Log In

#### Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
To Your Posts
• Keyword Search
• One-Click Access To Your
Favorite Forums
• Automated Signatures
On Your Posts
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

# Problem with subscript in thermodynamic problem

 Forum Search FAQs Links MVPs

## Problem with subscript in thermodynamic problem

(OP)
Good night.
I'm using mathcad prime 3.0. I try to solve a problem as stated in my textbook "Introduction to Thermodynamics in Chemical Engineering" Smith & Van Ness but I define the variables that tell me or how to resolve the situation subscript "i, j" which are integers. If anyone can help me I appreciate fully. Attached the document.

thanks

### RE: Problem with subscript in thermodynamic problem

You made four different errors in your sheet:
1. Your range variables are going from 1 to 3, but Prime numbers vector elements beginning with the value of the system variable ORIGIN - in your case from 0 to 2
2. You define vectors (3x1 matrices) at the top of your sheet and later you try to use these vectors to create a 3x3 matrix with the same name! You can't use the same name for two different structures at the same time.
3. You used the literal index (CTRL + -) where you should have used the vector/matrix index ([). You can't address vector elements with an literal index as this is just part of the variables name.
4. In the definition of the matrices Vc and Pc you forgot the indices on the LHS of the definition
Furthermore I noticed that the vector Pc you define at the top is never used in your sheet but is overwritten later by the definition of a matrix Pc. Not sure if that was done on purpose.

Find attached a sheet which fixes all those errors and makes use of range variables independent of the value of ORIGIN. I deleted your global definition of ORIGIN as the default value is 0 anyway and I renamed you various vectors at the top by adding an underline so we don't get into troubles by defining the matrices with the same value.

### RE: Problem with subscript in thermodynamic problem

(OP)
Thank you very much for the correction, had not noticed that kind of features in mathcad. Thanks for your time and corredigo document.

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

### Reply To This Thread

#### Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!

Already a member? Close this window and log in.