Roots - intersection points

Roots - intersection points - Trouble with finding intersection points of a line and a parabola using "roots" command. - Сообщения

#1 Опубликовано: 14.04.2023 16:43:40
SERGIO MARQUES DE SOUZA

SERGIO MARQUES DE SOUZA

0 сообщений из 3 понравились пользователям.

Группа: 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 КиБ) скачан 122 раз(а).

Click to enlarge
#2 Опубликовано: 14.04.2023 17:35:21
Jean Giraud

Jean Giraud

983 сообщений из 6 866 понравились пользователям.

Группа: 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 КиБ) скачан 127 раз(а).
#3 Опубликовано: 14.04.2023 18:41:21
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1 005 сообщений из 1 677 понравились пользователям.

Группа: User

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

Roots.sm (9 КиБ) скачан 139 раз(а).

Best regards.
Alvaro.
#4 Опубликовано: 15.04.2023 08:54:21
Jean Giraud

Jean Giraud

983 сообщений из 6 866 понравились пользователям.

Группа: 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 КиБ) скачан 127 раз(а).
#5 Опубликовано: 15.04.2023 19:31:34
overlord

overlord

558 сообщений из 1 335 понравились пользователям.

Группа: 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 Опубликовано: 15.04.2023 20:44:04
Martin Kraska

Martin Kraska

1 230 сообщений из 2 156 понравились пользователям.

Группа: 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 Опубликовано: 16.04.2023 02:49:20
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1 005 сообщений из 1 677 понравились пользователям.

Группа: User

Hi. This is another way.

Clipboard01.png

Roots.sm (16 КиБ) скачан 139 раз(а).

Best regards.
Alvaro.
1 пользователям понравился этот пост
#8 Опубликовано: 16.04.2023 09:11:08
Jean Giraud

Jean Giraud

983 сообщений из 6 866 понравились пользователям.

Группа: 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 КиБ) скачан 119 раз(а).
#9 Опубликовано: 16.04.2023 11:22:35
overlord

overlord

558 сообщений из 1 335 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Alvaro Diaz Falconi 17.04.2023 17:27:00
#10 Опубликовано: 16.04.2023 18:34:02
Jean Giraud

Jean Giraud

983 сообщений из 6 866 понравились пользователям.

Группа: User

NLroots.PNG
#11 Опубликовано: 17.04.2023 01:44:30
overlord

overlord

558 сообщений из 1 335 понравились пользователям.

Группа: Moderator

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

Regards

maximasolve.png
1 пользователям понравился этот пост
Alvaro Diaz Falconi 17.04.2023 17:27:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений