×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

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

TABLES

TABLES

(OP)
I have entered my datasets using 'Insert Table' in mathcad prime. All variables have 12 different values (its annual data, so each variable has 12 values) which I have entered as a table with 12 rows and 1 column, and defined the units as applicable.

I am performing various calculations with this data, and the results are then output as a table in the same format (12 rows 1 column) however it does not appear that each row uses the data from the corresponding row in the input variables?

For example, I am calculating reynolds number and have input data for the velocity, density and viscosity as a table with 12 different values and then defined pipe inner diameter as a standard variable (which doesn't change). I then defined the formula for reynolds number. The results are output as a table however the top result (row 1) is not calculated based on the corresponding row 1 for velocity, density and viscosity.

I cannot find any information in matncad help files on using tables, what would be the correct way to do this? Are tables not meant to be used this way? Thanks
Replies continue below

Recommended for you

RE: TABLES

(OP)
Ah...makes sense. Calculation sheet attached, you'll hopefully see what I mean. I suspect I’ve been working with excel for too long…

Basically I thought the output table for Reynolds number would use the corresponding row from the input tables. So the top row I would expect the Reynolds number to be 1.022*10^7, when in fact it is 7.75*10^7.

Thanks

RE: TABLES

can't open this file in mcad15 !

RE: TABLES

if you want to do a "row" calc then either use subscript or the vectorize option. see attached

RE: TABLES

Attached is a Mathcad 15 file that Mathcad Prime should be able to upconvert. I've also included a PDF and s screenshot. MP should be pretty similar to M15, although I'm unclear whether you can do a paste table like you can in M15. <CTRL>+6 allows you to index the tables columns. Mathcad no longer allows mixed units in tables, so the units are added to the individual vectors. "i" is the range variable that allows you to select a specific element by typing "[" after the variable name, as in Re1[0 to access Re10. You can start indices at 1, but Mathcad's default is 0. The actual calculation was done with indices, but you can usually get away with just the variable names. The resultant is unitless, which is a good check, since the Reynolds number is supposed to be unitless. I think this is, in addition to the WYSIWYG math, is THE strong point of Mathcad, since that's not really available anywhere else besides SMathStudio, which is a freeware attempt to clone Mathcad.


https://files.engineering.com/getfile.aspx?folder=...
https://files.engineering.com/getfile.aspx?folder=...

TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm

RE: TABLES

(OP)
Thanks chaps, I'll have a go with those this evening. Much appreciated.

RE: TABLES

(OP)
Thanks again. I got it to work with the vectorize function, but didn't have any luck using an index. I defined i using the rows function but then when I defined Reynolds number using subscript i on the velocity, viscosity and density variables it resulted in an error message saying that all the variables in the equation are undefined.

RE: TABLES

do you write the index using a dot (.) or [ ? you need to use [ to create an index. using the dot create a subscript font

RE: TABLES

(OP)
Ah - yeah that's sorted it. Thanks again folks

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



News


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:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close