symb, num, none - quite a difference!

symb, num, none - quite a difference! - Сообщения

#1 Опубликовано: 11.02.2012 16:57:35
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

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!"
#2 Опубликовано: 12.02.2012 07:22:13
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3730 понравились пользователям.

Группа: Super Administrator

Reproduced. Will check it later today. Thank you.

Best regards.
1 пользователям понравился этот пост
Radovan Omorjan 12.02.2012 07:44:00
#3 Опубликовано: 12.02.2012 13:17:52
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

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
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#4 Опубликовано: 13.02.2012 05:08:40
Infinity

Infinity

3 сообщений из 30 понравились пользователям.

Группа: User

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

  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений