1 страниц (4 вхождений)
Problem with solver functions - any solver function fails trying to find a zero on a function... - Сообщения
#1 Опубликовано: 18.09.2023 11:31:30
Here is a problem I found trying to solve a simple engineering question.

Please see attached file: Problem with solvers.sm (90 КиБ) скачан 65 раз(а).
Please see attached file: Problem with solvers.sm (90 КиБ) скачан 65 раз(а).
#2 Опубликовано: 18.09.2023 21:17:56
Sorry I don't have maxima.
Equations are solved with FindRoot().
I also had to make some alterations.
Original y(x) function has unit mismatch.
Solvers don't like direct usage of if() or cases().
You can detect it with Unknowns().
If it doesn't produce a result, there is a problem.
Here is your file solved.
Regards
Problem with solvers_solved.sm (95 КиБ) скачан 66 раз(а).
Equations are solved with FindRoot().
I also had to make some alterations.
Original y(x) function has unit mismatch.
Solvers don't like direct usage of if() or cases().
You can detect it with Unknowns().
If it doesn't produce a result, there is a problem.
Here is your file solved.
Regards
Problem with solvers_solved.sm (95 КиБ) скачан 66 раз(а).
5 пользователям понравился этот пост
Oscar Campo 18.09.2023 21:19:00, churichuro 18.09.2023 22:05:00, NDTM Amarasekera 18.09.2023 23:04:00, ioan92 19.09.2023 05:38:00, Alvaro Diaz Falconi 19.09.2023 07:28:00
#3 Опубликовано: 19.09.2023 20:53:43
I assumed C.1 and C.2 has same units.
Maybe I was wrong at that conclusion.
Worksheet below find a solution between 4-6.
This may be the correct result.
Sorry if I made a huge mistake.
Regards
Problem with solvers_revisited.sm (105 КиБ) скачан 63 раз(а).

Maybe I was wrong at that conclusion.
Worksheet below find a solution between 4-6.
This may be the correct result.
Sorry if I made a huge mistake.
Regards
Problem with solvers_revisited.sm (105 КиБ) скачан 63 раз(а).
2 пользователям понравился этот пост
#4 Опубликовано: 19.09.2023 21:24:06
Perfect! Thanks for your cooperation!
1 страниц (4 вхождений)
-
Новые сообщения
-
Нет новых сообщений