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
- :
- Split numeric solution

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

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

06-19-2020
07:33 AM

06-19-2020
07:33 AM

Hi,

I'd like to split the numeric solution of my equation to show the influence of the two factors without having the define new variables. I need to keep it as simple has possible. See p.7

For exemple ;

uc = 3 + 0.5 (where 3 is the section a and 0.5 the section b)

uc = 3.5

Thank you !

Camille

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

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

06-19-2020
08:10 AM

06-19-2020
08:10 AM

Im afraid that's not possible.

With the symbolic processor you can collect expressions on certain items. Consider e.g.:

You can do the following:

But the numeric processor does not have this capability.

Now you might try to use the symbolic processor to get the numeric answer by using the 'explicit' keyword. But I doubt that you can achieve the desired result, mostly because it is very hard to force the symbolic processor in its output. Not also that the symbolic processor generally does not handle Units the way the numeric processor does, or the way you might hope it does.

I think defining two variables, or function to hold the two expression parts is the best option to keep them separated.

Success!

Luc

7 REPLIES 7

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

06-19-2020
08:10 AM

06-19-2020
08:10 AM

Im afraid that's not possible.

With the symbolic processor you can collect expressions on certain items. Consider e.g.:

You can do the following:

But the numeric processor does not have this capability.

Now you might try to use the symbolic processor to get the numeric answer by using the 'explicit' keyword. But I doubt that you can achieve the desired result, mostly because it is very hard to force the symbolic processor in its output. Not also that the symbolic processor generally does not handle Units the way the numeric processor does, or the way you might hope it does.

I think defining two variables, or function to hold the two expression parts is the best option to keep them separated.

Success!

Luc

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

06-19-2020
08:24 AM

06-19-2020
08:24 AM

Re: Split numeric solution

I see.

Thank you !!

Camille

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

06-19-2020
08:45 AM

06-19-2020
08:45 AM

Re: Split numeric solution

Best you *might* do:

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

06-19-2020
08:47 AM

06-19-2020
08:47 AM

Re: Split numeric solution

Yeah. that is very clear ! I'll go with this proposition.

Thank you

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

06-20-2020
07:30 AM

06-20-2020
07:30 AM

Re: Split numeric solution

Another Mathcaddy way of doing things - return the values as components of a vector ...

Stuart

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

06-20-2020
10:18 AM

06-20-2020
10:18 AM

Re: Split numeric solution

Great idea. Note that you don't need to transpose the vector:

Success!

Luc

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

06-22-2020
07:19 AM

06-22-2020
07:19 AM

Re: Split numeric solution

Thanks, Luc. You are quite right that it doesn't need transposing for this particular result. However, it makes indexing simpler when the result is in vector form and some functions/operators require a vector, so I just make it a habit to do the transposition.

.... I'm not sure whether it be a good idea to apply vector functions to single-row arrays or not. It might help or it might make things more confusing.

Cheers,

Stuart

.... I'm not sure whether it be a good idea to apply vector functions to single-row arrays or not. It might help or it might make things more confusing.

Cheers,

Stuart