How to obtain the Peak of this example?

How to obtain the Peak of this example? - Сообщения

#1 Опубликовано: 25.02.2023 04:14:28
liwenbus

liwenbus

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

Группа: 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 КиБ) скачан 44 раз(а).
#2 Опубликовано: 25.02.2023 09:57:08
liwenbus

liwenbus

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

Группа: 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 КиБ) скачан 38 раз(а).
Golden ratio QUICK Copy.sm (123 КиБ) скачан 38 раз(а).



wow!I think I understand, it is very useful, thank you very much!
#3 Опубликовано: 25.02.2023 14:41:41
Martin Kraska

Martin Kraska

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

Группа: 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 КиБ) скачан 46 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 пользователям понравился этот пост
sergio 25.02.2023 16:40:00, João Felipe Seráfico Melo 26.02.2023 06:38:00
#4 Опубликовано: 25.02.2023 20:54:24
Jean Giraud

Jean Giraud

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

Группа: User

... refreshed version.
Cheers ... Jean

Golden Search Copy.sm (23 КиБ) скачан 35 раз(а).
#5 Опубликовано: 26.02.2023 20:58:40
overlord

overlord

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

Группа: Moderator

Here is your functions peak point solved with various solvers.

Regards

LLC1.sm (9 КиБ) скачан 46 раз(а).

2023-02-27_02-57.png
#6 Опубликовано: 27.02.2023 22:55:02
Jean Giraud

Jean Giraud

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

Группа: 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 Опубликовано: 27.02.2023 23:13:37
overlord

overlord

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

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

2023-02-28_05-11.png
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений