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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

matrix works well in Mathcad 15 but not when converted to Prime 9.0

rdelascasas
12-Amethyst

matrix works well in Mathcad 15 but not when converted to Prime 9.0

Good morning to all,

I have a matrix that works well in Mathcad 15 but provides wrong values in Prime 9.0.

I only converted the matrix from Mathcad 15 to Prime 9.0, which did not work well in Prime 9.0. Even though it does not mention any error in Prime 9.0, It simply does not provide the right matrix elements in Prime 9.0.

The files below Matrix Right (the one in Mathcad 15) and Matrix Wrong (the one in Prime 9.0) are the two files I am talking about.

 

Any help will be very much appreciated.

 

regards, 

 

Rogelio

ACCEPTED SOLUTION

Accepted Solutions

This apparently is a detail difference between Mathcad and Prime.

If you remove the

[i,j

from the definition of the Gat expression, both before the assigment

:=

and the one on the last line of the program, then you get the desired result.

 

(So here:

MeekesLuc_0-1708282713395.png

and here

MeekesLuc_1-1708282736430.png

)

 

Success!
Luc

View solution in original post

5 REPLIES 5

This apparently is a detail difference between Mathcad and Prime.

If you remove the

[i,j

from the definition of the Gat expression, both before the assigment

:=

and the one on the last line of the program, then you get the desired result.

 

(So here:

MeekesLuc_0-1708282713395.png

and here

MeekesLuc_1-1708282736430.png

)

 

Success!
Luc

Werner_E
25-Diamond I
(To:MeekesLuc)


@MeekesLuc wrote:

This apparently is a detail difference between Mathcad and Prime.

In my opinion the behaviour in both versions is somewhat strange and not as it should be.
I would have expected a matrix with all elements being of the same value ...

 

Here are two examples where Mathcad returns a strange/wrong result, but Prime's result is exactly what i would expect:

Werner_E_0-1708287986228.png   Werner_E_1-1708288006289.png

Of course both also are examples of bad programming style, but using the same name for the worksheet variable and the local variable should not pose that problem.

Thanks, Werner,

 

I will be more careful in the future to ensure that I do not have a problem like you showed above.

 

Regards, 

 

Rogelio

Mathcad 11 gives me this:

MeekesLuc_0-1708290458257.pngand

MeekesLuc_1-1708290525026.png

Success!
Luc

 

Yes!

 

It worked as soon as I removed the (j,i) as you mentioned.

 

Thanks, 

 

Rogelio

 

Announcements

Top Tags