Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Re: How to evaluate/simplify numerical expressions...

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-01-2015
10:37 AM

07-01-2015
10:37 AM

I've attached an image of my work below. It seems like it should be very simple to have Mathcad evaluate the expressions highlighted in red so that the entire matrix is much simpler. But I've tried all the symbolic keywords and none of them seem to work. What am I missing?

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-01-2015
10:51 AM

07-01-2015
10:51 AM

Try replacing the 90*deg with pi/2 as below:

The symbolic evaluation isn't too good with units , so treating it as just a number (radians) seems to help

Regards

Andy

4 REPLIES 4

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-01-2015
10:51 AM

07-01-2015
10:51 AM

Try replacing the 90*deg with pi/2 as below:

The symbolic evaluation isn't too good with units , so treating it as just a number (radians) seems to help

Regards

Andy

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-01-2015
11:01 AM

07-01-2015
11:01 AM

Re: How to evaluate/simplify numerical expressions inside a symbolic expression?

That worked! Thank you!

Interestingly, though, when I removed the "deg" unit and just had the variable equal to "90", it didn't work either. It had to be "pi/2".

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-01-2015
04:57 PM

07-01-2015
04:57 PM

Re: How to evaluate/simplify numerical expressions inside a symbolic expression?

Because Mathcad's trig functions work only with radians.

You might have gotten 0.89399666 as a simplification of sin(90)...

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-02-2015
07:35 PM

07-02-2015
07:35 PM

Re: How to evaluate/simplify numerical expressions inside a symbolic expression?

Just as a follow up to the explanations already given, the Symbolic Processor in Mathcad doesn't know anything about units and treats unit names as it would any other symbols - if they have a value, it evaluates them, otherwise it leaves them alone. It is possible to use units with the Symbolic Processor by defining them yourself. It is also possible to get the symbolic processor to return a decimal number result (if there is one) by using the "float" symbolic keyword or by writing one of the numbers in an expression as a decimal rather than as an integer or rational (eg, 90.0 rather than 90).

Stuart