SMath Studio Forum
»
SMath Studio
»
Questions
»
Mathcad to SMath_function root and solve
![Matteo_94 Matteo_94](/forum/images/noavatar.gif) Rank: Newbie
Groups: Registered
Joined: 26/03/2021(UTC) Posts: 3 ![Italy Italy](/forum/Content/images/flags/IT.png) 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 ![Cattura2.PNG](/forum/resource.ashx?a=37096&b=2) ![codice Mathcad.JPG](/forum/resource.ashx?a=37095&b=2)
|
|
|
|
![Matteo_94 Matteo_94](/forum/images/noavatar.gif) Rank: Newbie
Groups: Registered
Joined: 26/03/2021(UTC) Posts: 3 ![Italy Italy](/forum/Content/images/flags/IT.png) Location: Roma
|
|
|
|
|
![Razonar Razonar](/forum/images/noavatar.gif) ![](/forum/Images/Ranks/Advanced-Member.png) Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,370 ![Uruguay Uruguay](/forum/Content/images/flags/UY.png) Was thanked: 830 time(s) in 526 post(s)
|
Originally Posted by: Matteo_94 ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) 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(): ![Clipboard01.jpg](/forum/resource.ashx?a=37100&b=2) Now you can integrate: ![Clipboard02.jpg](/forum/resource.ashx?a=37101&b=2) Best regards. Alvaro.
|
|
|
|
![Matteo_94 Matteo_94](/forum/images/noavatar.gif) Rank: Newbie
Groups: Registered
Joined: 26/03/2021(UTC) Posts: 3 ![Italy Italy](/forum/Content/images/flags/IT.png) 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).![Cattura.PNG](/forum/resource.ashx?a=37165&b=2)
|
|
|
|
![fedeghi fedeghi](/forum/resource.ashx?url=http%3a%2f%2fen.smath.com%2fforum%2fUploads%2f2922.png&width=100&height=100) ![](/forum/Images/Ranks/Advanced-Member.png) Rank: Advanced Member Groups: Registered
Joined: 14/09/2013(UTC) Posts: 90 ![Italy Italy](/forum/Content/images/flags/IT.png) 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. ![Immagine 2021-03-30 113047.png](/forum/resource.ashx?a=37166&b=2) 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? ![Immagine 2021-03-30 113139.png](/forum/resource.ashx?a=37167&b=2) Ciao! Edited by user 30 March 2021 12:44:22(UTC)
| Reason: Not specified
|
|
|
|
![fedeghi fedeghi](/forum/resource.ashx?url=http%3a%2f%2fen.smath.com%2fforum%2fUploads%2f2922.png&width=100&height=100) ![](/forum/Images/Ranks/Advanced-Member.png) Rank: Advanced Member Groups: Registered
Joined: 14/09/2013(UTC) Posts: 90 ![Italy Italy](/forum/Content/images/flags/IT.png) 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. ![Immagine 2021-03-30 115153.png](/forum/resource.ashx?a=37168&b=2) Ciao
|
|
|
|
![overlord overlord](/forum/images/noavatar.gif) ![](/forum/Images/Ranks/Advanced-Member.png) Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,129 ![Turkey Turkey](/forum/Content/images/flags/TR.png) Was thanked: 510 time(s) in 340 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).![2021-03-30_14-00.png](/forum/resource.ashx?a=37170&b=2)
|
|
|
|
![Davide Carpi Davide Carpi](/forum/resource.ashx?u=1544) ![](/forum/Images/Ranks/Advanced-Member.png) Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,654 ![Man Man](/forum/Themes/yafvision/male.gif) ![Italy Italy](/forum/Content/images/flags/IT.png) Location: Italy Was thanked: 1340 time(s) in 879 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. ![2021-04-03 13_04_33-Window.png](/forum/resource.ashx?a=37193&b=2) 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 |
|
|
|
![Jean Giraud Jean Giraud](/forum/resource.ashx?url=http%3a%2f%2fen.smath.info%2fforum%2fUploads%2f9678.PNG&width=100&height=100) Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 ![Canada Canada](/forum/Content/images/flags/CA.png) Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Davide Carpi ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) 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.