Roots - intersection points

Roots - intersection points - Trouble with finding intersection points of a line and a parabola using "roots" command. - Messaggi

#1 Pubblicato: 14/04/2023 16:43:40
SERGIO MARQUES DE SOUZA

SERGIO MARQUES DE SOUZA

0 apprezzamenti in 5 post.

Gruppo: User

Good afternoon everyone.


I'm using the "roots" command, but I'm not getting the two points where the line intersects the parabola. The command gives me only one result and omits the other point. Attached is the file and image of the problem. How can I find both intersection points?
Roots.sm (8,44 KiB) scaricato 1367 volta(e).

Click to enlarge
#2 Pubblicato: 14/04/2023 17:35:21
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

I'm using the "roots" command, but I'm not getting the two points where the line intersects the parabola. The command gives me only one result and omits the other point. Attached is the file and image of the problem. How can I find both intersection points?


As doctored ... Jean

Roots Doctored.sm (9,38 KiB) scaricato 1392 volta(e).
#3 Pubblicato: 14/04/2023 18:41:21
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Hi Sergio. There are a 3 argument version of roots, where the third is a guess value for the root.

Roots.sm (9,84 KiB) scaricato 1408 volta(e).

Best regards.
Alvaro.
#4 Pubblicato: 15/04/2023 08:54:21
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

'roots' is essentially based on differentiable function.
Often, in Engineering works you don't have differentiable functions,
Gamma(x), spline fit ... etc.
In those cases, use the X(Φ,a,b,ε) utility.
Cheers ... Jean.

roots Gamma(x).sm (18,54 KiB) scaricato 1371 volta(e).
#5 Pubblicato: 15/04/2023 19:31:34
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Here your solution solved with maple plugin.
No need to enter guess points for this.
Maxima can solve it too, similarly.

Regards

PS: MapleCorrect() function can be found here.
Assign() function can be used instead of str2num() + num2str() + strrep().

2023-04-16_01-25.png
#6 Pubblicato: 15/04/2023 20:44:04
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Wrote



PS: MapleCorrect() function can be found here.
Assign() function can be used instead of str2num() + num2str() + strrep().



My personal favourite way to handle solver results is Davide's at() substitution function.

2023-04-16 01_39_35-SMath Solver - [Einheitenumrechnung.sm_].png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#7 Pubblicato: 16/04/2023 02:49:20
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Hi. This is another way.

Clipboard01.png

Roots.sm (16,66 KiB) scaricato 1364 volta(e).

Best regards.
Alvaro.
1 utenti hanno apprezzato questo post
#8 Pubblicato: 16/04/2023 09:11:08
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

'roots' is essentially based on differentiable function.
Often, in Engineering works you don't have differentiable functions,
Gamma(x), spline fit ... etc.
In those cases, use the X(Φ,a,b,ε) utility.


Many Smath built-in functions are not differentiable.
diff(▄ ▄) not defined ... Airy example attached.

roots Airy.sm (11,05 KiB) scaricato 1345 volta(e).
#9 Pubblicato: 16/04/2023 11:22:35
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Wrote

Hi. This is another way.


What the heck? Can we use maple keywords if they are written as `function`?
This is so mind-blowing, thanks Razonar.
1 utenti hanno apprezzato questo post
Alvaro 17/04/2023 17:27:00
#10 Pubblicato: 16/04/2023 18:34:02
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

NLroots.PNG
#11 Pubblicato: 17/04/2023 01:44:30
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

I found a Windows laptop.
And tried Maxima plugin Solve().
It can solve easily.

Regards

maximasolve.png
1 utenti hanno apprezzato questo post
Alvaro 17/04/2023 17:27:00
  • Nuovi post
  • Nessun nuovo post