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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

System of Equations Mathcad Prime 7 - result returned is too large to display

Cornel
18-Opal

System of Equations Mathcad Prime 7 - result returned is too large to display

Hello,

CornelBejan_0-1674026935850.png


Thank you.
Mathcad Prime 7 file attached.

 

35 REPLIES 35

@Werner_E  @ttokoro  @LucMeekes 

What else also I see is that:
CornelBejan_0-1674376517913.png

I introduced this system of equations to be solved (for curiosity) in both Maple and Mathematica, and the results look something like this:

Mathematica still thinks, thinks, and also thinks for some good minutes..and I think it will run endlessly...
(in the end, I aborted the calculation by myself...)

CornelBejan_1-1674376641149.png

Maple:
See attached pdf.
And if you look more closely:

CornelBejan_0-1674377586797.png

But at least Maple shows the results of the system of equations, while Mathematica doesn't really want to (or at least it needs to be helped somehow).


What do you think about this?

@Werner_E

Here are the results from Maple Flow...

CornelBejan_0-1674387530499.png

CornelBejan_1-1674387546443.png

CornelBejan_2-1674387566384.png

CornelBejan_3-1674387586499.png

CornelBejan_4-1674387606310.png

CornelBejan_5-1674387625148.png

CornelBejan_6-1674387642781.png

 

CornelBejan_8-1674387721654.png

CornelBejan_9-1674387741871.png

P.S.: In Maple Flow, for the time being, there is no symbol for the constant pi, but you have to put Pi...

 

CornelBejan_10-1674388565356.png

CornelBejan_0-1674389004360.png

CornelBejan_1-1674389035987.png

CornelBejan_2-1674389056907.png

CornelBejan_3-1674389077085.png

And so on.

Mathematica Result of that inverse (I attached again the pdf):

 

Mathcad Prime 8 result of that inverse matrix:

CornelBejan_5-1674389348397.pngCornelBejan_6-1674389360748.pngCornelBejan_7-1674389389279.png

CornelBejan_8-1674389416934.png

 

Mathcad 11 result of that inverse matrix:

CornelBejan_9-1674389542995.png

 

Seems to be something funny here:
Mathcad Prime 8 and Maple Flow/Maple give similar results relative to the calculation of the inverse of that matrix s*Identity(7)-Aa, while Mathcad 11 and Mathematica give similar results when calculating the same matrix inverse, if I correctly draw the conclusions from these results.

 

@Werner_E @ttokoro @LucMeekes  what do you say?

 

 

@Werner_E @ttokoro @LucMeekes 

CornelBejan_0-1674390630242.png

CornelBejan_1-1674390640800.png

 

CornelBejan_2-1674390682914.png

Here, if I don't set freq=logpsace(0,...,...) then the graph of Test_MC_Prime8 doesn't work (see the figure below)

CornelBejan_3-1674390698631.png

Here in the graph above the freq is from 0Hz to 10Hz, otherwise if I put from 0Hz to, for example, 10^12Hz it doesn't work.
So, otherwise, it seems that they are the same, although they have very different degrees of the powers of s in the denominator and the numerator of the 2 fractions.

CornelBejan_4-1674390757819.png

 

CornelBejan_11-1674391569515.png

CornelBejan_12-1674391602122.png

CornelBejan_13-1674391621591.png

 

Another thing:

For example, this way I can plot with freq starting from 0 Hz, but if I change it to start from 10^-3 Hz, for example, then Test_MC_Prime8 (the function with a high degree) then I can no longer plot the Test_MC_Prime8 function...

 

CornelBejan_5-1674390874185.png

CornelBejan_6-1674390889895.png

CornelBejan_7-1674390911336.png

 

And if I remove the freq expression (freq=logspace(...)) altogether and let him plot freq on the graph as he knows, then it seems to be ok

CornelBejan_8-1674391172036.png

CornelBejan_9-1674391180492.png

CornelBejan_10-1674391190724.png

With freq from 10^-3 to 10 for the phase

CornelBejan_14-1674391910835.png

 

Then, should I trust the result from Mathcad 11 and Mathematica or from Mathcad Prime 8 and Maple Flow/Maple, relative to the 2 expressions with very different powers in the numerator and denominator...?

With Mathcad Prime I will go further…because it will be at my disposal for this moment more than Mathcad 11, Mathematica or Maple..

Mathcad Prime 8 file attached.

LucMeekes
23-Emerald III
(To:Cornel)

At first glance, some remarks:

You cannot plot 0 (Hz or whatever) on a log scale, since log(0) is undefined.

You second plot, where freq apparently is not defined, Prime chooses linearly spaced points from start to end, Since you maximum value in the range is large (10^9), it starts at 0.01, and steps with close to 10^6...

With log plots, you (yourself) should be in control of the plot range. So you should use the logspace function, or another one that chooses well spaced absissa points.

I generally use something like:

LucMeekes_0-1674392876532.png

 which gives me logarithmically spaced points from s to e with p points per decade, such as:

LucMeekes_1-1674392942412.png

Success!
Luc

"Instead of transposing the matrix and deleting the second row and first column in the transposed matrix, I don't transpose but instead set the first ROW and second COLUMN to zero with the exception of the common element."

 

Do you have any bibliographic references where this method of calculating minors can be found?
It seems quite interesting, that's why I would like to know where you found it or how you found it..

Werner_E
24-Ruby V
(To:Cornel)

Sorry, I can't give you any reference, I simply knew this.

And if you look at how the determinant of a matrix can be calculated (Laplace expansion, https://en.wikipedia.org/wiki/Laplace_expansion) it should be clear why the method I implemented give the correct result with the benefit of returning the correct sign automatically.

 

According the bode plot I finally succeeded in finding the file (usually I don't keep the various files from this forum where I played around here an there, I attach it.

 

You asked in various of your posting what we think about the different  results from Prime, Maple, Flow and Mathematica. Actually I am getting to confused as of your different and on first sight unrelated questions. So I had not looked in detail at the various pdfs and pics. But I am beginning to understand why Prime refuses to display these huge expressions 😉
But seriously its quite clear, that Prime has the least capable symbolic engine compared to all the other programs you have at hand.

Top Tags