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

Bug in Mathcad 15 when changing a vector element from text to scalar

Werner_E
Ruby III

Bug in Mathcad 15 when changing a vector element from text to scalar

I came across a strange effect while reading in some data from an Excel sheet and changing some elements which where formatted as text in Mathcad back to be numbers. Mathcad woul not recognize the resulting matrix/vector to be a matrix of scalars (while it is, or at least should be).

See below and attached a simplified example. Can anybody explain that strange effects?

BTW, the same sheet converted works fine in Prime2.

Addendum: If you make the second assignment work as described by pressing F9 and you move arround the first V^2 assignment, it works, too!!????

The German error message is something like: "The object reference is not set to an instance of an object". Obviously users are not expected to ever see this message.

(Remark: The absolute value has to be set from Determinant to absolute value)

vector_error.png

Tags (1)
13 REPLIES 13

Re: Bug in Mathcad 15 when changing a vector element from text to scalar

Obviously a bug. I'm surprised it hasn't been noticed before.

Re: Bug in Mathcad 15 when changing a vector element from text to scalar

Richard Jackson wrote:

Obviously a bug. I'm surprised it hasn't been noticed before.

Yes, indeed. Not sure if this bug was present in older Mathcad versions. I am using MC15 M020.

I just reported it to PTC (case # 11508302, but I'm not sure if others are allowed to look at it)

Re: Bug in Mathcad 15 when changing a vector element from text to scalar

Not sure if this bug was present in older Mathcad versions

Not in MC13. I don't have an easy way to test MC14 or earlier builds of MC15.

Re: Bug in Mathcad 15 when changing a vector element from text to scalar

Werner Exinger wrote:

...I just reported it to PTC (case # 11508302, but I'm not sure if others are allowed to look at it)...

That's right:

Pic_1.PNG

I'm having the same error in MC15 M020. But in version MP 2.0 all works fine:

Pic_2.PNG

Re: Bug in Mathcad 15 when changing a vector element from text to scalar

VladimirN. wrote:

I'm having the same error in MC15 M020. But in version MP 2.0 all works fine:

Yes, thats the Mathcad version I use, too. Already stated that in Prime2 all is OK as it should.

Re: Bug in Mathcad 15 when changing a vector element from text to scalar

Werner Exinger wrote:

Addendum: If you make the second assignment work as described by pressing F9 and you move arround the first V^2 assignment, it works, too!!????

The second assignment works also when I assign the stack(...) to V1 and then delete the "1". And as you say V^2 works too.

It is so strange to make changes bottom-right with an effect on the upper-left of the worksheet!

Werner Exinger wrote:

The German error message is something like: "The object reference is not set to an instance of an object". Obviously users are not expected to ever see this message.

The error message is in English in my worksheet. Can it be from Windows?

Re: Bug in Mathcad 15 when changing a vector element from text to scalar

It is so strange to make changes bottom-right with an effect on the upper-left of the worksheet!

Yes, its sure a bad programming error throwing that NullReferenceException. Obviously the changes at the bottom happen to create an object properly and so the upper parts are affected, too.

The error message is in English in my worksheet. Can it be from Windows?

I use a German version of Mathcad and a German Windows. With localized Mathcad versions I have the choice to us them in English or (in my case) German. Usually this affects keywords as well as error messages and help text (in contrary to Prime). My guess is that this runtimer error message is from the underlying .NET RTsystem and is simply handed over by Mathcad.

Maybe someone with Mathcad 14 can report if the error is present here, too.

Re: Bug in Mathcad 15 when changing a vector element from text to scalar

This are the results for MC15 M010:

FilipWernerM010.PNG

Re: Bug in Mathcad 15 when changing a vector element from text to scalar

Thanks,

so the last assignment of V is OK even after a recalculate (Ctrl-F9) of the whole sheet?

Re: Bug in Mathcad 15 when changing a vector element from text to scalar

Yes it is. I am using an english version of MC15 M010.

Re: Bug in Mathcad 15 when changing a vector element from text to scalar

And here is a result in Mathcad 15 F000:

Pic_1.png

Re: Bug in Mathcad 15 when changing a vector element from text to scalar

Tnx, so the first error seems to occur in all MC15 releases, the second in most and it depends on ....?

Hopefully PTC will address that in the next release.

Re: Bug in Mathcad 15 when changing a vector element from text to scalar

According to PTC the bug will be fixed in MC15 M030

Announcements