Transpose functions bug

Transpose functions bug - bug - Mensajes

#1 Publicado: 13/6/2012 4:38:56
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: Moderator

Hi,

considering a report made by omorr, I found this bug:

0.94 - bug with transpose

here is the file in the image: howisthisposible_debug.zip


regards,

w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
A 1 usuarios les gustó este mensaje
Radovan Omorjan 13/6/2012 5:14:00
#2 Publicado: 13/6/2012 5:22:01
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: Moderator

Thanks to both of you w3b5urf3r and Oscar for investigating this issue. It seems something is really problematic in SMath regarding all of this.

I am surprised with this one - definitely a bug

BTW., as we mentioned in the previous post, if you use [MATH=eng]f(X):eval(transpose(X)*X)[/MATH] or [MATH=eng]f(X):line(res:eval(transpose(X)*X),res,2,1)[/MATH] you can get the right answer, regardless of Optimization of course. The problem is that you can not use eval() sometimes. It will simply not work. It would be very useful if we could use eval() every time when we need just the numerical answer. But I think that this is not possible due to the internal SMath engine. To be honest, as I mentioned few times, I really do not know when we can use eval() and when we can not. It is a bit trial-and-error procedure for me.

Hope that Andrey will have the solution to these problems ASAP.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
A 1 usuarios les gustó este mensaje
Davide Carpi 13/6/2012 5:31:00
#3 Publicado: 13/6/2012 8:45:05
Oscar Campo

Oscar Campo

135 me gusta en 309 mensajes.

Grupo: Moderator

Wrote

Hi,

considering a report made by omorr, I found this bug:

0.94 - bug with transpose

here is the file in the image: howisthisposible_debug.zip


regards,

w3b5urf3r



I investigated a little bit more and I found that there are relations between optimization type applied to function definition and function evaluation. With numeric optimization and none optimization, the results are right regardless optimization type applied to function evaluation:



Oscar Campo
A 2 usuarios les gustó este mensaje
Davide Carpi 13/6/2012 9:22:00, Radovan Omorjan 13/6/2012 9:37:00
#4 Publicado: 13/6/2012 8:51:57
kmihaylovich

kmihaylovich

8 me gusta en 131 mensajes.

Grupo: User

This is because program performs simplification of the X^T*X - for some reason SMath Studio thinks that X*X^T is more readable or that it will be calculated faster (just guessing, any reason could be here). And program have no idea what is X - matrix or not. So it looks like correct behavior. I don't know, but I think other programs should have the same issue. Obviously it should happen only with symbolic optimization.
A 1 usuarios les gustó este mensaje
Radovan Omorjan 13/6/2012 9:37:00
#5 Publicado: 16/6/2012 11:27:19
Andrey Ivashov

Andrey Ivashov

2.343 me gusta en 4.056 mensajes.

Grupo: Super Administrator

Fixed.

Best regards.
SyLib.7z (25,07 KiB) descargado 824 vez(es).
A 2 usuarios les gustó este mensaje
Davide Carpi 16/6/2012 12:57:00, Radovan Omorjan 16/6/2012 13:47:00
#6 Publicado: 16/6/2012 13:49:01
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: Moderator

It seems it is working OK now, thank you Andrey

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
  • Nuevos mensajes
  • Sin mensajes nuevos