Rank: Member Groups: Registered
Joined: 15/05/2016(UTC) Posts: 22 Location: Daejeon Was thanked: 1 time(s) in 1 post(s)
|
Hi I need a help for "FindRoot" function.(See attached file) Also I got an error sample file(Inst_Colebrook_pipe_data.sm) which was downloaded from this forum. Please, guide me to solve this error. Novice FindRoot_test_0.sm (41kb) downloaded 21 time(s). Inst_Colebrook Pipe Data.sm (61kb) downloaded 17 time(s).Edited by user 10 July 2017 22:03:29(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
Hello
Novice
An important thing is that Q1 must be undefined while you define the system of equations - and as for now even when you call FindRoot; there is a buil-in function Clear(...) for this. Secondly as for now when there are numerical functions involved in the evaluation of the unknowns this plugin has issues (in this case the issue is in if(f(Q1), that can be replaced by cases(...), however the algorithm then fails to solve for the given initial guess); FindRoot_test_0.sm (39kb) downloaded 28 time(s).I'm working to improve both these things. Edited by user 12 July 2017 01:43:22(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
|
|
|
|
Rank: Member Groups: Registered
Joined: 15/05/2016(UTC) Posts: 22 Location: Daejeon Was thanked: 1 time(s) in 1 post(s)
|
Dear Jean,
Thank you very much for your advice and examples It is helpful to me.
Thank you!
MS
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.