How to obtain the Peak of this example?

How to obtain the Peak of this example? - 消息

#1 已发布: 2023/2/25 04:14:28
liwenbus

liwenbus

0个赞,共7个帖子。

组: User

Hi, guys:

Here is a formula

M.png

And the Targets are:
1. Draw the plot, but only the first quadrant is required.
2. Find the value of fn when M is maximum.
3. Find the maximum value of M.

I did the 1st target successfully, but can not find the values of fn and M. I have tried my best and search the forum but could not find any way to fix it. Please help to fix it, Thank you very much!
LLC1.png
=====================
LLC2.png
=====================
LLC.sm (12.37 KiB)已下载 1335 次。
#2 已发布: 2023/2/25 09:57:08
liwenbus

liwenbus

0个赞,共7个帖子。

组: User

Wrote

Wrote

Please help to fix it, Thank you very much!


You need the Golden ratio ... doctored version.
If the function is a data set, spline/smooth the region
... as well the FindIndex is a good utility.
Cheers ... Jean

LLC Doctored for MAX.sm (27.88 KiB)已下载 1284 次。
Golden ratio QUICK Copy.sm (123.8 KiB)已下载 1319 次。



wow!I think I understand, it is very useful, thank you very much!
#3 已发布: 2023/2/25 14:41:41
Martin Kraska

Martin Kraska

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

组: Moderator

The built-in functions are perfectly well suited for the purpose. You just need to separate differentiation from root finding.

LLC.png
LLC.sm (11.01 KiB)已下载 1308 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
2位用户喜欢此帖子
sergio 2023/2/25 16:40:00, João Felipe Seráfico Melo 2023/2/26 06:38:00
#4 已发布: 2023/2/25 20:54:24
Jean Giraud

Jean Giraud

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

组: User

... refreshed version.
Cheers ... Jean

Golden Search Copy.sm (23.62 KiB)已下载 996 次。
#5 已发布: 2023/2/26 20:58:40
overlord

overlord

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

组: Moderator

Here is your functions peak point solved with various solvers.

Regards

LLC1.sm (9.33 KiB)已下载 1326 次。

2023-02-27_02-57.png
#6 已发布: 2023/2/27 22:55:02
Jean Giraud

Jean Giraud

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

组: User

Wrote

2. Find the value of fn when M is maximum.
3. Find the maximum value of M.


It all depend upon the accuracy you want.
Smath was not even ½ pregnant that roots existed from libraries.
Cheers ... Jean

Lambert.PNG

#7 已发布: 2023/2/27 23:13:37
overlord

overlord

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

组: Moderator

Apart from Findroot() there are other functions in Nonlinear Solvers to.
Check that plugins page in Reference Book, there may some info you can use.

Regards

LLC1.sm (13.8 KiB)已下载 1337 次。

2023-02-28_05-11.png
  • 有新帖
  • 无新帖