Roots - intersection points

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

#1 Objavljeno: 14. 4. 2023. 16:43:40
SERGIO MARQUES DE SOUZA

SERGIO MARQUES DE SOUZA

0 svidjanja u 5 postova.

Grupa: 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) preuzeto 1391 put(ova).

Click to enlarge
#2 Objavljeno: 14. 4. 2023. 17:35:21
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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) preuzeto 1419 put(ova).
#3 Objavljeno: 14. 4. 2023. 18:41:21
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: 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) preuzeto 1444 put(ova).

Best regards.
Alvaro.
#4 Objavljeno: 15. 4. 2023. 08:54:21
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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) preuzeto 1398 put(ova).
#5 Objavljeno: 15. 4. 2023. 19:31:34
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: 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 Objavljeno: 15. 4. 2023. 20:44:04
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: 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 Objavljeno: 16. 4. 2023. 02:49:20
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Hi. This is another way.

Clipboard01.png

Roots.sm (16,66 KiB) preuzeto 1391 put(ova).

Best regards.
Alvaro.
1 korisnika je svidelo ovu objavu
Вячеслав Мезенцев 16. 4. 2023. 03:21:00
#8 Objavljeno: 16. 4. 2023. 09:11:08
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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) preuzeto 1377 put(ova).
#9 Objavljeno: 16. 4. 2023. 11:22:35
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: 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 korisnika je svidelo ovu objavu
Alvaro 17. 4. 2023. 17:27:00
#10 Objavljeno: 16. 4. 2023. 18:34:02
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

NLroots.PNG
#11 Objavljeno: 17. 4. 2023. 01:44:30
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

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

Regards

maximasolve.png
1 korisnika je svidelo ovu objavu
Alvaro 17. 4. 2023. 17:27:00
  • Novi postovi
  • Nema novih postova