1页(4条)
Problem with solver functions - any solver function fails trying to find a zero on a function... - 消息
Here is a problem I found trying to solve a simple engineering question.

Please see attached file: Problem with solvers.sm (90 KiB)已下载 1435 次。

Please see attached file: Problem with solvers.sm (90 KiB)已下载 1435 次。
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.81 KiB)已下载 1438 次。
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.81 KiB)已下载 1438 次。
5位用户喜欢此帖子
Oscar Campo 2023/9/18 21:19:00, churichuro 2023/9/18 22:05:00, NDTM Amarasekera 2023/9/18 23:04:00, ioan92 2023/9/19 05:38:00, Alvaro 2023/9/19 07:28:00
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.7 KiB)已下载 1525 次。

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.7 KiB)已下载 1525 次。
2位用户喜欢此帖子
Perfect! Thanks for your cooperation!
1页(4条)
- 有新帖
- 无新帖