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
- :
- equation solve

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

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

10-16-2019
11:24 AM

10-16-2019
11:24 AM

Hello,

I am using the solve command to solve for EC for a given matrix of sigma.s, It is unable to find a solution. Please suggest.

Thanks,

Faisal

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

10-16-2019
12:03 PM

10-16-2019
12:03 PM

You should have said in the other thread that you just want it to be solved using specific values and not symbolically.

With c=0.5 you end up with a cubic equation and the symbolic solve is able to provide all three solutions for each value of sigma.s

But the expression in parenthesis is a scalar and this can't equal a vector sigma.s

You may turn the symbolic calculation into a function of sigma.s and later call that function vectorized to get the 5 x 3 solutions. Note that the solutions with 10^-16 or so as imaginary part are supposed to be real values.

If you are just looking for one real solution, you may consider using the numeric "root" function (you may also use a solve block instead):

In case you are interested in the negative values for EC only, you may use a solve block with an appropriate constraint or the root function in its second flavor:

Worksheet in format Prime 6 attached.

Not, that if you use Prime 6 the symbolic solution will only work if you set the calculation to "Legacy symbolic" which activates muPad. The new FriCAS is not able to solve this cubic equation.

2 REPLIES 2

Highlighted

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

10-16-2019
12:03 PM

10-16-2019
12:03 PM

You should have said in the other thread that you just want it to be solved using specific values and not symbolically.

With c=0.5 you end up with a cubic equation and the symbolic solve is able to provide all three solutions for each value of sigma.s

But the expression in parenthesis is a scalar and this can't equal a vector sigma.s

You may turn the symbolic calculation into a function of sigma.s and later call that function vectorized to get the 5 x 3 solutions. Note that the solutions with 10^-16 or so as imaginary part are supposed to be real values.

If you are just looking for one real solution, you may consider using the numeric "root" function (you may also use a solve block instead):

In case you are interested in the negative values for EC only, you may use a solve block with an appropriate constraint or the root function in its second flavor:

Worksheet in format Prime 6 attached.

Not, that if you use Prime 6 the symbolic solution will only work if you set the calculation to "Legacy symbolic" which activates muPad. The new FriCAS is not able to solve this cubic equation.

Highlighted
##

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

10-16-2019
12:28 PM

10-16-2019
12:28 PM

Re: equation solve

Thank you very much and sorry for the early mistake. It helped me and I will work with it more to see with other changes.

Faisal