Roots - intersection points

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

#1 Publicado: 14/4/2023 16:43:40
SERGIO MARQUES DE SOUZA

SERGIO MARQUES DE SOUZA

0 me gusta en 5 mensajes.

Grupo: 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) descargado 1364 vez(es).

Click to enlarge
#2 Publicado: 14/4/2023 17:35:21
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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) descargado 1384 vez(es).
#3 Publicado: 14/4/2023 18:41:21
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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) descargado 1406 vez(es).

Best regards.
Alvaro.
#4 Publicado: 15/4/2023 8:54:21
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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) descargado 1366 vez(es).
#5 Publicado: 15/4/2023 19:31:34
overlord

overlord

600 me gusta en 1.381 mensajes.

Grupo: 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 Publicado: 15/4/2023 20:44:04
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: 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 Publicado: 16/4/2023 2:49:20
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: User

Hi. This is another way.

Clipboard01.png

Roots.sm (16,66 KiB) descargado 1361 vez(es).

Best regards.
Alvaro.
A 1 usuarios les gustó este mensaje
#8 Publicado: 16/4/2023 9:11:08
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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) descargado 1341 vez(es).
#9 Publicado: 16/4/2023 11:22:35
overlord

overlord

600 me gusta en 1.381 mensajes.

Grupo: 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.
A 1 usuarios les gustó este mensaje
Alvaro 17/4/2023 17:27:00
#10 Publicado: 16/4/2023 18:34:02
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

NLroots.PNG
#11 Publicado: 17/4/2023 1:44:30
overlord

overlord

600 me gusta en 1.381 mensajes.

Grupo: Moderator

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

Regards

maximasolve.png
A 1 usuarios les gustó este mensaje
Alvaro 17/4/2023 17:27:00
  • Nuevos mensajes
  • Sin mensajes nuevos