×
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

Basic units output in mathcad

Basic units output in mathcad

Basic units output in mathcad

(OP)
Hey all, I'm an undergrad using mathcad for the first time to do some basic calcs for a design class.

I'm having an issue with units being assigned in the program. (File is attached, work begins on page 3).

I've assigned a value for "P" in lbf and a value for "a" in ft. When these two values are multiplied, the output is in [ft^2*lb]/s^2.

Later on in the calculations, I have a length, "L", but the program has assigned that to be gallons, not "feet" as I would like it.

How can I use the program to control these units?

Thank you!

RE: Basic units output in mathcad

I don't think you specified eg. P:=100*lbf. If you had, you would have gotten the right result, maybe in Joules, but correct nonetheless. As far as the "L" is concerned, it is a Mathcad predefined unit and stands for "liter" - so don't use it as a variable name.

RE: Basic units output in mathcad

Someone apparently failed to point out to you that you CANNOT and MUST NOT use built-in unit names as variable names. L is a Mathcad symbol for liter; note, however, this is a non-standard usage, since liter is not a proper name, so its symbol must be lower case. Only units that are named after people, like the kelvin, has a capitalized K for its symbol.

You should always check to see if the symbol you are using is already taken. The first time you type L=, it would have converted to L:= had L not been previously defined. L= should result in L=1*L because its a built-in unit

TTFN
FAQ731-376: Eng-Tips.com Forum Policies

Need help writing a question or understanding a reply? forum1529: Translation Assistance for Engineers


Of course I can. I can do anything. I can do absolutely anything. I'm an expert!
There is a homework forum hosted by engineering.com: http://www.engineering.com/AskForum/aff/32.aspx

RE: Basic units output in mathcad

I don't know how that works out in Mathcad 14 and beyond. I only have 13, but there the "L" clearly is otherwise occupied and defines "liter". If you want lower case, you'll have to use just that "liter".

RE: Basic units output in mathcad

You can, at your own risk simply force the re-definition of L to be something else. I don't actually see where you defined L in your sheet at all, so it would have complained about L being undefined anyway.

TTFN
FAQ731-376: Eng-Tips.com Forum Policies

Need help writing a question or understanding a reply? forum1529: Translation Assistance for Engineers


Of course I can. I can do anything. I can do absolutely anything. I'm an expert!
There is a homework forum hosted by engineering.com: http://www.engineering.com/AskForum/aff/32.aspx

RE: Basic units output in mathcad

As mentioned above, try L:1ft somewhere to reset the built-in variable from liters to feet.

RE: Basic units output in mathcad

IRStuff,
The "L" for liter makes practical sense even if it doesn't make pure SI sense. The symbol "l" looks too much like the symbol "1" (in fact in old typewriters the same striker came up with either one or ell). Had MathCad followed the SI convention the confusion would have legion.

David Simpson, PE
MuleShoe Engineering

In questions of science, the authority of a thousand is not worth the humble reasoning of a single individual. Galileo Galilei, Italian Physicist

RE: Basic units output in mathcad

The practical issues don't make it any less annoying. I don't think this issue is restricted to "old typewriters," though; the input dialog box here uses a Courier-equivalent font, and only in the preview or final version does it switch to a san-serif font that makes them distinguishable. Almost every book-form document we create at work uses "New" Times Roman, where the two are only barely distinguishable; the ell is every so slightly taller with an ever so slightly shorter serif.

The bigger issue, of course, is that every year or so, someone new to Mathcad will do something similar to the OP and wonder why the units aren't working. I wonder if this is why Mathcad isn't used as much as it could be, since the units handling is a major selling point for me.

TTFN
FAQ731-376: Eng-Tips.com Forum Policies

Need help writing a question or understanding a reply? forum1529: Translation Assistance for Engineers


Of course I can. I can do anything. I can do absolutely anything. I'm an expert!
There is a homework forum hosted by engineering.com: http://www.engineering.com/AskForum/aff/32.aspx

RE: Basic units output in mathcad

I can nearly explain the liter symbol, I see a lot more people defining their input mass as m:45*kg. Absolutely nothing works from that point on. You ask for a length and get a mass. That is why you see long-time MathCad users always using the dot (as in m.pipe to make it appear like mpipe) to make sure that no variable redefines a built in unit.

David Simpson, PE
MuleShoe Engineering

In questions of science, the authority of a thousand is not worth the humble reasoning of a single individual. Galileo Galilei, Italian Physicist

RE: Basic units output in mathcad

yes, m:=something else is definitely a killer. Unfortunately, Mathsoft would do similar sorts of things in their example sheets, which would wreak havoc if the examples sheets were incorporated into another sheet that depended on an unsullied built-in unit. I did just that this afternoon, and it took a few minutes to figure it out and correct the problem.

TTFN
FAQ731-376: Eng-Tips.com Forum Policies

Need help writing a question or understanding a reply? forum1529: Translation Assistance for Engineers


Of course I can. I can do anything. I can do absolutely anything. I'm an expert!
There is a homework forum hosted by engineering.com: http://www.engineering.com/AskForum/aff/32.aspx

RE: Basic units output in mathcad

@IRstuff:

The (optional) use of the upper-case "L" for litre (or "liter" if you're American - but that's a different topic!) has in fact been a part of the SI standard definition since 1979, precisely because of the typography issue.

The litre, and the symbol lower-case l, were adopted by the CIPM in 1879 (PV, 1879, 41). The alternative symbol, capital L, was adopted by the 16th CGPM (1979, Resolution 6; CR, 101 and Metrologia, 1980, 16, 56-57) in order to avoid the risk of confusion between the letter l (el) and the numeral 1 (one).
Ref: Note (f) to Table 6 "Non-SI units accepted for use with the International System of Units" in "The International System of Units (SI)", 8th edition 2006, Bureau International des Poids et Mesures
http://www.bipm.org/utils/common/pdf/si_brochure_8...

See also:
http://en.wikipedia.org/wiki/Litre#Symbol
http://physics.nist.gov/cuu/Units/outside.html

http://julianh72.blogspot.com

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

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

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