roots says "No real roots"

roots says "No real roots" - roots function does not work - Сообщения

#1 Опубликовано: 28.12.2020 09:40:16
Aleksey_here

Aleksey_here

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

Группа: User



Tooltip is "No real roots"

Please see the full file minimal_model_9.sm (99 КиБ) скачан 37 раз(а).
#2 Опубликовано: 28.12.2020 12:18:55
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Tooltip is "No real roots"


Here, "Matrix is non-invertible, Determinant = 0"
"Units don't match" for plotting T1.
Always wise to start a project units-less, to see something.
solve, roots, Findroot work on Martin.

minimal_model_9.sm (92 КиБ) скачан 39 раз(а).

#3 Опубликовано: 28.12.2020 12:24:20
Jean Giraud

Jean Giraud

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

Группа: User

The attached is a deterministic lecture before solving.

Solve ADVANCE at(2) Read First.sm (215 КиБ) скачан 45 раз(а).
#4 Опубликовано: 28.12.2020 13:29:37
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Hi. T.1(x,y) and T.2(x,y) represent surfaces. So T = [T.1,T.2] is the intersection of two surfaces. If the intersection is only a point, that's good look. But get a numerical procedure that catch it, that's square good look. Fortunately, SMath have an amazing numerical solver into a plugin. Please try this:

Clipboard01.jpg

Best regards.
Alvaro.

You need to install the plugin: https://en.smath.com/forum/yaf_postst1775_AlgLib-3-1x.aspx
#5 Опубликовано: 28.12.2020 13:38:06
Martin Kraska

Martin Kraska

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

Группа: Moderator

Again a version with generic units support. Note that in case of non-unique solutions the result depends on the initial guess.

minimal_model_9_Kr.sm (99 КиБ) скачан 33 раз(а).
2020-12-28 17_34_43-SMath Studio - [minimal_model_9_Kr.sm_].png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#6 Опубликовано: 28.12.2020 13:46:36
Aleksey_here

Aleksey_here

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

Группа: User

Wrote

Wrote

Tooltip is "No real roots"


Here, "Matrix is non-invertible, Determinant = 0"
"Units don't match" for plotting T1.
Always wise to start a project units-less, to see something.
solve, roots, Findroot work on Martin.

minimal_model_9.sm (92 КиБ) скачан 39 раз(а).



Sorry, I cannot open your file, one plugin is incompatible with my version.

Could you explain a little what is possible to do there with that roots function ?

#7 Опубликовано: 28.12.2020 14:03:02
Aleksey_here

Aleksey_here

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

Группа: User


I want to thank everyone who answered

I really ignored that guess values, but now, after your answers
I put the pair 0.01 and 10 for x and y in the third parameter
for the roots function and it really worked normally this time.

:-)
#8 Опубликовано: 28.12.2020 14:52:31
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Sorry, I cannot open your file, one plugin is incompatible with my version.
Could you explain a little what is possible to do there with that roots function ?


That is really a bug version(s). Web Masters may want to plug in bug list.
"roots" works as given in my SS 6179.
I guess Martin will give more insight about that solver.
#9 Опубликовано: 28.12.2020 20:29:57
Jean Giraud

Jean Giraud

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

Группа: User

"No real roots" may make sense considering the function.
That's your T1(x,y) stripped of units after symbolic expansion.
Do the same from the very beginning of the project, i.e: units-less.
That would help setting a convenient solve bloc.

T1(x,y).PNG
#10 Опубликовано: 28.12.2020 22:06:52
Jean Giraud

Jean Giraud

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

Группа: User

... get inspired to construct the project units-less to see
the plot appropriately ranged. From there, easy or difficult
to solve. If you don't see the project, you have no project.
Assume your project has to pass QA. No monkey see, no monkey check.

LobeSolve.PNG
#11 Опубликовано: 29.12.2020 13:46:48
Jean Giraud

Jean Giraud

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

Группа: User

... up to You if you want to reconciliate the project.
If you put unit 'm', that assumes all parameters are conform,
including the constant of gravity. Then, make it unit-less
in order to plot T1(x,y), T2(x,y) ... from there then, easy
to tabulate results at will and export.
Just an offer from which you may gain more from Smath.
#12 Опубликовано: 30.12.2020 20:34:04
Jean Giraud

Jean Giraud

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

Группа: User

That's what I meant about a math project, i.e: units-less.
From T1(x,y) plot, you can decide what makes sense "solving".
As you can see, you can have 2, 4, 6 solutions
or by ranging solve correctly, only one solution.
You have to see the lobe system to appropriately range.
Check that your temperatures match, I just zapped them all
however, you had some °K, °C ... else check too.
That project is Chinese to me, but not the end objective.
Add the companion T2(x,y), follow the guidance.
At this point: monkey see, monkey can QA

minimal_model UNITS-LESS.sm (114 КиБ) скачан 29 раз(а).
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений