×
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

New to mathcad prime, problem with Atan & formulas
2

New to mathcad prime, problem with Atan & formulas

New to mathcad prime, problem with Atan & formulas

(OP)
Hi guys

I just installed mathcad prime and have come to my first problem where google doesn't help me solve it.

If you'll see attached image, you'll see the formula "betha", where I want to calculate the arc tan of something.
(note that ptx10, pty10, L9 & L10 are predefined higher up in the file)

When I fill in an angle in the betha formula, i get the error: "This value must be a scalar or a matrix"

Now, when I pre-calculate the formula (pretan(a)) and then take the atan of that (formula gamma) it DOES work.

Can anyone explain where the difference lies?

NX 7.5.5.4 with Teamcenter 8 on win7 64
Intel Xeon @3.2GHz
8GB RAM
Nvidia Quadro 2000

RE: New to mathcad prime, problem with Atan & formulas

Please share the worksheet - I just copy-typed your expression into my copy of Prime, and it works fine, but I do get an error if the denominator equates to zero.

http://julianh72.blogspot.com

RE: New to mathcad prime, problem with Atan & formulas

Hmmm - looks like a bug in Mathcad Prime 2. I get the same error as you when I download your worksheet, but I can't for the life of me see what is wrong with your expression.

Suggest you report this to PTC, and / or post on the official PTC Mathcad forums - good luck! (Just reinforces my view that Mathcad Prime isn't ready for prime-time use yet.)

http://julianh72.blogspot.com

RE: New to mathcad prime, problem with Atan & formulas

2
Hmmm, looks like a bug in the brain-keyboard interface winky smile

There's a multiplication sign between the atan and the parentheses in the definition of Beta. Had you copied the entire expression on the right hand side for evaluation, the atan would be highlighted as being in error.

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

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

RE: New to mathcad prime, problem with Atan & formulas

Well spotted, IRstuff!

Interesting that Mathcad Prime 2 doesn't display the multiplication symbol between the "atan" and the leading parenthesis in the on-screen function definition (until you attempt to edit the function definition), whereas all other multiplication symbols are displayed on-screen. Nor does Mathcad Prime 2 flag the original function definition as being in error - the error message pops up in the first USE of the mis-defined function. In Mathcad Prime 2, I get the error message "This value must be a scalar or a matrix" applied to the whole expression where I first USE the mis-defined function, with the whole expression "Beta(60.deg)" being highlighted in red, so it is not clear at all WHICH value "must be a scalar or a matrix".

In Mathcad 15, if I try to replicate the same sort of error, I see the multiplication symbol displayed within the original ill-structured function definition, and the "atan" in the function definition is flagged in red, with the error message arising in the statement where I mis-define the function. That is, in Mathcad 15, I see "atan" flagged as an error, with "This value must be a scalar". This is a bit confusing until you realise that Mathcad 15 is telling you that you can't multiply a function name ("atan") by the contents of the parentheses.

I like the Mathcad 15 approach better, as it is a heck of a lot easier to track down such typographical errors if the error message is tagged to the location where the syntax error first arises.

http://julianh72.blogspot.com

RE: New to mathcad prime, problem with Atan & formulas

@IRStuff:

Also, in your first reply, you said that it would be preferable for the OP to post a copy of the worksheet in an older format, such as Mathcad 15. Unfortunately, Mathcad Prime 2 has no ability to "Save As" Mathcad 15 or earlier versions, as far as I can tell - all it supports as exports are *.mcdx or *.xps. mad

http://julianh72.blogspot.com

RE: New to mathcad prime, problem with Atan & formulas

(OP)
Damn PEBKAC's are the worst. Sorry for the trouble, but "invisible multiplication symbols" weren't on my checklist.

Thanks for the help.

I'll see you all soon in my next thread :p

NX 7.5.5.4 with Teamcenter 8 on win7 64
Intel Xeon @3.2GHz
8GB RAM
Nvidia Quadro 2000

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