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: grouping symbolic results in increment of the ...

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

09-24-2020
07:40 PM

09-24-2020
07:40 PM

Hi

Is there a way to group or sort the power terms of a symbolic calculation in the increase of the variable "s"

Example: constant term+ a*s+b*s^2+c*s^3+d*s^4+....+k*s^n; where "s" is a variable

Right now the grouping seems to be random. You have s^6, then you have s^7 then you have s^2 see below:

See the N1(s), the last equation of this work sheet attached

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

Highlighted

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

09-25-2020
05:23 PM

09-25-2020
05:23 PM

Hi Werner,

I am not sure why you are not seeing my worksheet with

constant term+ a*s+b*s^2+c*s^3+d*s^4+....+k*s^n

I can see it when I downloaded from this thread.

Anyway, thanks for the helps. I tried your recommended approach and used "simplify" and it seem to work as compare to just an arrow--->

See below:

The advantage of using just ----> is all the s terms (s are variable and the rest are constant values) are factored outside the constants

Simplified works but then you have to manually group them

Please see the worksheet attached. I hope you can see it

5 REPLIES 5

Highlighted
##

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

09-24-2020
08:07 PM

09-24-2020
08:07 PM

Re: grouping symbolic results in increment of the variable

Your sheet doesn't show what your picture shows.

We don't have much control over the output of symbolic calculation in Prime compared to symbolic math programs like Maple or Mathematica and also MatLab, which uses the same symbolic engine as Mathcad (but more up to date as they own it).

You may try the "collect,s" modifier. Eventually combined with "simplify" (obviously "simplify" before "collect", not after).

Highlighted
##

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

09-25-2020
05:05 AM

09-25-2020
05:05 AM

Re: grouping symbolic results in increment of the variable

This may work in Mathcad 15:

If needed with a small tweak.

Luc

Highlighted
##

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

09-25-2020
07:04 AM

09-25-2020
07:04 AM

Re: grouping symbolic results in increment of the variable

It works in MC15 but the same results could be obtained using a simple symbolic evaluation, sometimes "simplify" or "expand" are required:

But "Polynorm" fails at negative signs as do "simplify" or "expand". Thats the reason I suggested "collect"

Highlighted

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

09-25-2020
05:23 PM

09-25-2020
05:23 PM

Hi Werner,

I am not sure why you are not seeing my worksheet with

constant term+ a*s+b*s^2+c*s^3+d*s^4+....+k*s^n

I can see it when I downloaded from this thread.

Anyway, thanks for the helps. I tried your recommended approach and used "simplify" and it seem to work as compare to just an arrow--->

See below:

The advantage of using just ----> is all the s terms (s are variable and the rest are constant values) are factored outside the constants

Simplified works but then you have to manually group them

Please see the worksheet attached. I hope you can see it

Highlighted
##

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

09-26-2020
03:49 AM

09-26-2020
03:49 AM

Re: grouping symbolic results in increment of the variable

You already provide the summands splitted by the powers of s and you just want to see them again?

Then you could try "explicit,ALL"