Skip to main content
3-Newcomer
October 26, 2022
Solved

Symbolically solve a vector with vector input

  • October 26, 2022
  • 1 reply
  • 971 views

I have the following script

JV_10456665_0-1666801335754.png

So, C is a vector with symbolic equations, and q is the vector with symbols. Now I would like to solve for q. However, that does not seem the work. Is there a way to make this work?

Best answer by LucMeekes

When this works:

LucMeekes_3-1666803043783.png

You would expect your equation to be solved for q[0 and q[1, but alas:

LucMeekes_4-1666803312839.png

 

What does work is:

LucMeekes_2-1666803024137.png

and this:

LucMeekes_5-1666803345475.png

To have it a little bit more nice-looking, replace the indexes with literal subscripts:

LucMeekes_0-1666803986430.png

 

@Werner_E How does Prime 6 fare with the legacy versus the new symbolic?

(The attached file is Prime 6)

Needless to say, but I'll do it anyway... Mathcad 11:

LucMeekes_0-1666804392949.png

 

Success!
Luc

 

1 reply

LucMeekes23-Emerald IVAnswer
23-Emerald IV
October 26, 2022

When this works:

LucMeekes_3-1666803043783.png

You would expect your equation to be solved for q[0 and q[1, but alas:

LucMeekes_4-1666803312839.png

 

What does work is:

LucMeekes_2-1666803024137.png

and this:

LucMeekes_5-1666803345475.png

To have it a little bit more nice-looking, replace the indexes with literal subscripts:

LucMeekes_0-1666803986430.png

 

@Werner_E How does Prime 6 fare with the legacy versus the new symbolic?

(The attached file is Prime 6)

Needless to say, but I'll do it anyway... Mathcad 11:

LucMeekes_0-1666804392949.png

 

Success!
Luc

 

25-Diamond I
October 26, 2022

In Prime 6 we can compare the old and the new symbolic engine. Obviously this is one  more thing which got broken when switching from muPad to the new axiom fork.

As I read here in the forum, PTC claims that the symbolics in Prime 8 is vastly improved and more stable. So far I could not be bothered to download and install P8 but I guess Luc's attempts were done in P8 and the problem still persists.

Here is the comparison:

Werner_E_0-1666804537968.png

Needless to say that because of Primes sever auto-label bug it was necessary to manually re-label all occurrences of "q" the same.

 

EDIT:

@LucMeekes 

Funny, I started my reply even before you edited yours and added the question as of the behaviour in P6 😉

Here is another finding which might give a clue why the new engine fails:

Werner_E_0-1666805571840.png