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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

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

rdelascasas
6-Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions
MeekesLuc
4-Participant
(To:rdelascasas)

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
MeekesLuc
4-Participant
(To:rdelascasas)

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


@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.

rdelascasas
6-Contributor
(To:Werner_E)

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

MeekesLuc
4-Participant
(To:Werner_E)

Mathcad 11 gives me this:

MeekesLuc_0-1708290458257.pngand

MeekesLuc_1-1708290525026.png

Success!
Luc

 

rdelascasas
6-Contributor
(To:MeekesLuc)

Yes!

 

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

 

Thanks, 

 

Rogelio

 

Top Tags