Roots - intersection points

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

#1 已发布: 2023/4/14 16:43:40
SERGIO MARQUES DE SOUZA

SERGIO MARQUES DE SOUZA

0个赞,共5个帖子。

组: 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)已下载 1377 次。

Click to enlarge
#2 已发布: 2023/4/14 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.38 KiB)已下载 1402 次。
#3 已发布: 2023/4/14 18:41:21
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: 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)已下载 1424 次。

Best regards.
Alvaro.
#4 已发布: 2023/4/15 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.54 KiB)已下载 1383 次。
#5 已发布: 2023/4/15 19:31:34
overlord

overlord

600个赞,共1,381个帖子。

组: 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 已发布: 2023/4/15 20:44:04
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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 已发布: 2023/4/16 02:49:20
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi. This is another way.

Clipboard01.png

Roots.sm (16.66 KiB)已下载 1378 次。

Best regards.
Alvaro.
1位用户喜欢此帖子
#8 已发布: 2023/4/16 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.05 KiB)已下载 1357 次。
#9 已发布: 2023/4/16 11:22:35
overlord

overlord

600个赞,共1,381个帖子。

组: 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 2023/4/17 17:27:00
#10 已发布: 2023/4/16 18:34:02
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

NLroots.PNG
#11 已发布: 2023/4/17 01:44:30
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

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

Regards

maximasolve.png
1位用户喜欢此帖子
Alvaro 2023/4/17 17:27:00
  • 有新帖
  • 无新帖