Roots - intersection points

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

#1 Posted: 4/14/2023 4:43:40 PM
SERGIO MARQUES DE SOUZA

SERGIO MARQUES DE SOUZA

0 likes in 3 posts.

Group: 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 KiB) downloaded 35 time(s).

Click to enlarge
#2 Posted: 4/14/2023 5:35:21 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 30 time(s).
#3 Posted: 4/14/2023 6:41:21 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

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

Roots.sm (9 KiB) downloaded 42 time(s).

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

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 25 time(s).
#5 Posted: 4/15/2023 7:31:34 PM
overlord

overlord

549 likes in 1332 posts.

Group: 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 Posted: 4/15/2023 8:44:04 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#7 Posted: 4/16/2023 2:49:20 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi. This is another way.

Clipboard01.png

Roots.sm (16 KiB) downloaded 39 time(s).

Best regards.
Alvaro.
1 users liked this post
#8 Posted: 4/16/2023 9:11:08 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 23 time(s).
#9 Posted: 4/16/2023 11:22:35 AM
overlord

overlord

549 likes in 1332 posts.

Group: 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 users liked this post
Alvaro Diaz Falconi 4/17/2023 5:27:00 PM
#10 Posted: 4/16/2023 6:34:02 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

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

overlord

549 likes in 1332 posts.

Group: Moderator

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

Regards

maximasolve.png
1 users liked this post
Alvaro Diaz Falconi 4/17/2023 5:27:00 PM
  • New Posts New Posts
  • No New Posts No New Posts