Root Solutions Blog

Get to know your functions in PTC Mathcad

Posted by Angela Birlea on 25-Apr-2017 16:43:57

Maths, engineering calculations and equations – loved by some, dreaded by others. If you’re already using PTC Mathcad, your job is already easier – a lot of times you use the same worksheet you’ve put together a while ago, change the numbers, and get new results. Job done!

ptc_mathcad_logo_standard_color.png
But what happens when you need to step up your game? When there’s a completely new problem you need to solve and you can already see yourself wasting days looking through documentation and figuring out how to build those formulas in PTC Mathcad?

Why not check out Mathcad’s over 700 built-in functions to see if your problem has already been solved for you?

Here’s a list of my all times favourite functions to get you started if you haven’t used this (awesome) Mathcad functionality yet:

clear() – clears the value of the variable(s) in the brackets so you can start fresh.

Math1.png

IsArray(), IsFunction(), IsScalar(), IsString() – use these to check the type of variables you have in your worksheet. The function will return 1 for TRUE and 0 for FALSE. Very useful troubleshooting errors that request a different variable type and you don’t know where you went wrong.

Math2.png

lookup(),  hlookup(), vlookup(), match() – these functions allow you to look though large amounts of data in array form and find the required value using complex conditions.

Math3.png

augment(), stack() – merge two or more arrays into one either horizontally (augment) or vertically (stack).

Math4.png

str2num(), num2str(), str2vec(), vec2str() – convert variables to different data types. Useful if you want to perform string operations on numbers or vice-versa. You can even cypher your text using ASCII codes!

Math5.png

ceil(), floor(), round() – functions that round the argument up, down or to the nearest integer.

Math6.png

If you type your functions from the keyboard (as opposed to inserting them from the list), remember they are case sensitive.

Check out the other functions and their use by going to the Functions tab in Mathcad. You’ll get a full explanation on what they do and how to use them. Some of them even have fun names like butter, MUSIC, relax, canny and funmap!

For more information on PTC Mathcad, PTC Mathcad Products and Mathcad training - why not visit our online Mathcad Store. - Click Here!

Mathcadstore.png

PTC Mathcad - PTC Mathcad Prime - PTC Mathcad 4.0

ptc_partner_network_color.png

Topics: Mathcad

Subscribe to Email Updates for Product News & Offers.