roots says "No real roots"

roots says "No real roots" - roots function does not work - Messaggi

#1 Pubblicato: 28/12/2020 09:40:16
Aleksey_here

Aleksey_here

0 apprezzamenti in 8 post.

Gruppo: User



Tooltip is "No real roots"

Please see the full file minimal_model_9.sm (99,55 KiB) scaricato 1191 volta(e).
#2 Pubblicato: 28/12/2020 12:18:55
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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,95 KiB) scaricato 1181 volta(e).

#3 Pubblicato: 28/12/2020 12:24:20
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

The attached is a deterministic lecture before solving.

Solve ADVANCE at(2) Read First.sm (215,51 KiB) scaricato 1199 volta(e).
#4 Pubblicato: 28/12/2020 13:29:37
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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 Pubblicato: 28/12/2020 13:38:06
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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,32 KiB) scaricato 1177 volta(e).
2020-12-28 17_34_43-SMath Studio - [minimal_model_9_Kr.sm_].png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#6 Pubblicato: 28/12/2020 13:46:36
Aleksey_here

Aleksey_here

0 apprezzamenti in 8 post.

Gruppo: 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,95 KiB) scaricato 1181 volta(e).



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 Pubblicato: 28/12/2020 14:03:02
Aleksey_here

Aleksey_here

0 apprezzamenti in 8 post.

Gruppo: 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 Pubblicato: 28/12/2020 14:52:31
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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 Pubblicato: 28/12/2020 20:29:57
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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 Pubblicato: 28/12/2020 22:06:52
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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 Pubblicato: 29/12/2020 13:46:48
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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 Pubblicato: 30/12/2020 20:34:04
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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,6 KiB) scaricato 1191 volta(e).
  • Nuovi post
  • Nessun nuovo post