Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
|
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
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 f(X):eval(transpose(X)*X) or f(X):line(res:eval(transpose(X)*X),res,2,1) 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 Edited by user 13 June 2012 12:33:36(UTC)
| Reason: Not specified |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
1 user thanked omorr for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/12/2009(UTC) Posts: 246 Location: Cali, Colombia Was thanked: 85 time(s) in 65 post(s)
|
Originally Posted by: w3b5urf3r_reloaded 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
|
2 users thanked oscampo for this useful post.
|
on 13/06/2012(UTC), on 13/06/2012(UTC)
|
|
Rank: Member Groups: Registered
Joined: 22/06/2010(UTC) Posts: 13 Location: Питер
Was thanked: 5 time(s) in 4 post(s)
|
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.
|
1 user thanked kmihaylovich for this useful post.
|
|
|
Rank: Administration Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member Joined: 11/07/2008(UTC) Posts: 1,616 Was thanked: 1978 time(s) in 666 post(s)
|
|
2 users thanked Andrey Ivashov for this useful post.
|
on 16/06/2012(UTC), on 16/06/2012(UTC)
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
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!" |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.