×
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!
  • Students Click Here

*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

Jobs

I have a matrix that I'm doing calc

I have a matrix that I'm doing calc

I have a matrix that I'm doing calc

(OP)
The program is SMath Studio.

I have a matrix that I'm doing calculations in, and it uses units. Is there any way of converting the units within the matrix. I'm looking to convert them to kN and kPa, etc. The default values are a bit 'clunky'. I've attached an example.

RE: I have a matrix that I'm doing calc

Why not just use unitless values in the matrix, then multiply the matrix by the necessary unit?

Something like:

X := [ 1,1,1;2,2,2;3;3;3 ] * kPa


Aside: What is the "1" text doing in your matrix in the left-hand column? Is that a non-numerical annotation?

STF

RE: I have a matrix that I'm doing calc

(OP)
The wind loading forces on the various surfaces are defined as: 1, 1E, 2, 2E, 3, 3E, etc. I'm using the string (text) value to identify the forces and surfaces. SMath allows the various column values in a matrix to be different units... some are meters, some kiloNewtons, some kiloPascals... I can try treating the items as a vector, but, am using elements of the matrix for calculating other elements in the matrix, sometimes based on 'if' constructs and 'for' constructs.

Dik

RE: I have a matrix that I'm doing calc

(OP)
Added a part of the calculations... in fact, the matrix starts as a single 8x1 matrix and the other one starts as a 12x1 matrix and ends up as a 8x15 or 8x16 matrix or a 12x... All the added columns are added by calculations similar to attached.

Dik

RE: I have a matrix that I'm doing calc

Out of my depth now... I'm still just using Smath for simple stuff. The notations are all different. IIRC, Mathcad R13 refused to tolerate mixed units in matrices.

To slightly improve the clunkiness of units, can you re-define them, or better yet define new ones?

You may find some tips here: http://people.stfx.ca/bliengme/SMath/SmathPrimer.p...

STF

RE: I have a matrix that I'm doing calc

(OP)
Why simple stuff... it's much better... my problem is thsy I'm curious, and have found a new toy. I'll try re-defining things; I understand that units can be redefined. and maybe make kPa and N the default.

Forgot to say thanks... I generally put revisions in itallics.

Dik

RE: I have a matrix that I'm doing calc

(OP)
SparWeb: The attached shows another example of using 'mixed' variables in a matrix/array. It's incredible for accessing data. The arrays are dynamic, so you can add additional columns to them; I haven't tried rows. You can insert values, or calculate values... really handy.

Dik

RE: I have a matrix that I'm doing calc

That is interesting!

BTW, around my house is #2 for 6 inches, and then #6 down as far as I've ever cared to dig!

STF

RE: I have a matrix that I'm doing calc

(OP)
and can be very powerful...

Dik

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


Resources


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