Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

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

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Feb 18, 2024
12:53 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Feb 18, 2024
12:53 PM

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

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

Feb 18, 2024
01:56 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Feb 18, 2024
01:56 PM

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:

and here

)

Success!

Luc

5 REPLIES 5

Feb 18, 2024
01:56 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Feb 18, 2024
01:56 PM

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:

and here

)

Success!

Luc

Feb 18, 2024
03:13 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Feb 18, 2024
03:13 PM

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

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.

Feb 18, 2024
03:41 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Feb 18, 2024
03:41 PM

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

Feb 18, 2024
04:09 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Feb 18, 2024
04:09 PM

Mathcad 11 gives me this:

and

Success!

Luc

Feb 18, 2024
03:39 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Feb 18, 2024
03:39 PM

Yes!

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

Thanks,

Rogelio