cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

MathCAD 14 symbolic solver

rcarr-2
4-Participant

MathCAD 14 symbolic solver

I recently installed MathCAD14, upgrading from MathCAD7. I just noticed today that unlike the symbolic solver of MathCAD7, the symbolic solver in MathCAD14 appears unable to solve the magnitude of a complex number symbolically. Did anyone else come across this? Is this a bug, or am I doing something wrong?

mc14.jpg

MC7.jpg

Any comment s appreciated,

Ray

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:rcarr-2)

As Valery already pointed out the symbilc engine in MC14 and above is muPad, the engine in older versions was Maple, considered by many users as the better one.

muPads behaviour is sometiome annyoing, while mathematically perhaps more correct than that of Maple. Maple obviously is implicitely assuming that X and Y are real values as most of us would do, too, as the "formula" for calculating the absolute value you have in mind is valid for real X and Y only:

symb_abs2.png

So if you want to assume X and Y as real values, you have to tell muPad explicitely so. Additionally you have to demand muPad you want it to simplify the expression.

symb_abs.png

Maple assumed by default variables and results to be real values and you could change that by using the modifier "complex".

muPad (unfortunately!?) defaults to "complex" and making it think "real" can be quite a challenge sometimes.

View solution in original post

6 REPLIES 6

It is an old problem.

Matcad 7 has the symbolic engine from Maple and Mathcad 13(?)-15 and Prime - from MuPAD.

Send pleade your sheet and we will try to help you.

Werner_E
25-Diamond I
(To:rcarr-2)

As Valery already pointed out the symbilc engine in MC14 and above is muPad, the engine in older versions was Maple, considered by many users as the better one.

muPads behaviour is sometiome annyoing, while mathematically perhaps more correct than that of Maple. Maple obviously is implicitely assuming that X and Y are real values as most of us would do, too, as the "formula" for calculating the absolute value you have in mind is valid for real X and Y only:

symb_abs2.png

So if you want to assume X and Y as real values, you have to tell muPad explicitely so. Additionally you have to demand muPad you want it to simplify the expression.

symb_abs.png

Maple assumed by default variables and results to be real values and you could change that by using the modifier "complex".

muPad (unfortunately!?) defaults to "complex" and making it think "real" can be quite a challenge sometimes.

rcarr-2
4-Participant
(To:Werner_E)

Thank you all for your quick responses. I feel much better about MC14 now. I also tried the modifier ALL=real which works fine too.

allreal.jpg

However, with something a bit more complex, I wonder if something else is needed:

MC7:

MC7B1.jpgMC7b2.jpg

MC14:

MC14b.jpg

Werner_E
25-Diamond I
(To:rcarr-2)

As already indicated it can be tricky to convince MC to simplify expressions the way we expect it to do. Sometimes muPad is simply unable to do (its not the best symbolic processor one can imagine), sometimes we are making implicit assumptions we often are not aware of.

Most of the time we end up in trial and error, playing around with the keywords and modifiers. And ever so often MC would ignore a given conditions - thats especially true with the "assume" command.

I didn't typed in the expression but what you can try is "assume, ALL>0", "simplify,max" and somtimes "factor" helps even if we are not interested in a factorization. There are situations where even the order the keywords are typed is important.

After all its an unsatisfyable situation that the possibilities to influence the way symbolic evalauations are done are so much limited.

As Valery already wrote - to make it easier for us you its better to attach a worksheet. You can do so by clicking in the upper right "Use advanced editor".

Werner_E
25-Diamond I
(To:rcarr-2)

Here are some attempts. Only success with a self defined absolute function

osc_circuit.png

rcarr-2
4-Participant
(To:Werner_E)

Thanks again Werner,

I've set this aside for now. After playing around with both solvers, I've made my peace with the MC14 solver, although, as you pointed out, it does appear to need some coercion, depending on what one is doing. I too was playing with the self-defined absolute function, working with complex matrices, and I got satisfactory results.

Regards,

Raymond

Announcements

Top Tags