Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline omorr  
#1 Posted : 11 February 2012 23:57:35(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello,

Here is a part of the file and the expression on the left is Optimization|Symbolic



Quite different numbers than the Numeric and None





Here is the entire file Primer29.sm

This time the same is on both WinXP and Ubuntu. If nobody can reproduce this one as well () - something must be quite wrong with my computer.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Andrey Ivashov  
#2 Posted : 12 February 2012 14:22:13(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Reproduced. Will check it later today. Thank you.

Best regards.
thanks 1 user thanked Andrey Ivashov for this useful post.
on 12/02/2012(UTC)
Offline omorr  
#3 Posted : 12 February 2012 20:17:52(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Thank you Andrey,

Here is another part from one of my working files. Difference again between Symbolic and Numeric optimization of the equations.

Symbolic:

The accompanied file sym.sm

Numeric:

The accompanied file num.sm

Please look at the yellow regions. I am not quite sure which one is correct, but solving in another software gave the same solution when the SMath numerical optimization was used. Moreover, further calculation showed that the numerical result should be accepted and the symbolic is questionable.

To be honest, I am a bit frustrated that roots() failed here as well. If it works for you - than must be my computer again.
There were another situations when roots() failed in another of my working files. I will post them as soon as I get them ready to report the problem.

Here is a file where roots() failed for me in every calculation (either I made a mistake I didn't see or something else) Primer29-roots%20failed.sm. Fortunately, Newton-Raphson worked here and I managed to solve this somehow. Playing with Optimization will make a mess - Jacobian elements equal to all zeros, different results etc.

I desperately need a rock solid numerical solvers for nonlinear system of equations built in SMath but, unfortunately, roots() disappointed me at the moment.

Regards,
Radovan

Edited by user 12 February 2012 21:35:04(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Infinity  
#4 Posted : 13 February 2012 12:08:40(UTC)
Infinity


Rank: Member

Groups: Registered
Joined: 19/01/2012(UTC)
Posts: 12
Man

Was thanked: 3 time(s) in 2 post(s)
Hello,

I found also a problem when calculating with numeric optimization.
The following simple calculation adds up some integer numbers with floating point numbers.
The result should always be zero. The first numeric solution does not equal zero. When I introduce some brackets around the floating point numbers, the result is correct.
When using symbolic optimization the result is always correct.

Left: Numeric, Right: Symbolic


File:
optimization.sm

Users browsing this topic
Guest
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.