SMath Studio Forum
»
SMath Studio
»
Questions
»
Mathcad to SMath_function root and solve
Rank: Newbie
Groups: Registered
Joined: 26/03/2021(UTC) Posts: 3 Location: Roma
|
Hi, can someone help me to copy this mathcad code in a SMath's one? I have some problems with the solution of Xn Thank you
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 26/03/2021(UTC) Posts: 3 Location: Roma
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,357 Was thanked: 817 time(s) in 517 post(s)
|
Originally Posted by: Matteo_94 Hi,
can someone help me to copy this mathcad code in a SMath's one? I have some problems with the solution of Xn
Thank you
Hi. sigma.c fucntion is defined with an if clause. SMath can't integrate it, but you can use cases(): Now you can integrate: Best regards. Alvaro.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 26/03/2021(UTC) Posts: 3 Location: Roma
|
Thanks Alvaro. I made your correction, using the function cases(), but I have the same problem if I add other terms to fb(xn), for example if I add Ast*sigma sb(eps) and Asc*sigmasb(eps). How is it possible? Thanks verifica a flessione_prova2.sm (44kb) downloaded 5 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 14/09/2013(UTC) Posts: 90 Was thanked: 24 time(s) in 16 post(s)
|
Possibly an odd bracket problem? Here appears that Smath is making a group of "y+sigma bla bla" as object for the differential operator So, fb(x) could not be evaluated. I placed some brackets to clearly separate "y" from what follows in the equation, see picture below. It appears that with brackets, fb(x) can be evaluated (but I get an error on units). Maybe some other formula needs to be checked before? Ciao! Edited by user 30 March 2021 12:44:22(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 14/09/2013(UTC) Posts: 90 Was thanked: 24 time(s) in 16 post(s)
|
Splitted the equation in three contributions, it appears the the integral is not consistent with other two terms of the sum I think calculation should work, once you clear the unit issue which is hidden somewhere in other parts of the calculation. Ciao
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,128 Was thanked: 509 time(s) in 339 post(s)
|
I am pretty sure my units mismatch correction is not suitable. You should have to check this issue by yourself. But I had managed to solve your function problem. Rewriting it make function tick again. Regards verifica a flessione_prova2_rev.sm (46kb) downloaded 16 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,651 Location: Italy Was thanked: 1338 time(s) in 878 post(s)
|
I've had this pending in background so I'll share the solution even here. Aside the initial issues about if() and units, the integral fails when x_n is set as 0, since epsilon is something/0. Therefore solve range must exclude 0 or the function has to handle it. Happy Easter and take care, anyone. Edited by user 03 April 2021 14:11:18(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 |
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Davide Carpi Happy Easter and take care, anyone. Thanks Davide ... Your's all too ... Jean
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
Mathcad to SMath_function root and solve
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.