Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Matteo_94  
#1 Posted : 26 March 2021 12:59:33(UTC)
Matteo_94

Rank: Newbie

Groups: Registered
Joined: 26/03/2021(UTC)
Posts: 3
Italy
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.PNGcodice Mathcad.JPG

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Matteo_94  
#2 Posted : 26 March 2021 16:09:07(UTC)
Matteo_94

Rank: Newbie

Groups: Registered
Joined: 26/03/2021(UTC)
Posts: 3
Italy
Location: Roma

ok,

thanks

verifica a flessione_prova.sm (44kb) downloaded 10 time(s).
Offline Razonar  
#3 Posted : 26 March 2021 18:52:12(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,357
Uruguay

Was thanked: 817 time(s) in 517 post(s)
Originally Posted by: Matteo_94 Go to Quoted Post
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

Now you can integrate:

Clipboard02.jpg

Best regards.
Alvaro.
Offline Matteo_94  
#4 Posted : 30 March 2021 10:10:19(UTC)
Matteo_94

Rank: Newbie

Groups: Registered
Joined: 26/03/2021(UTC)
Posts: 3
Italy
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
Offline fedeghi  
#5 Posted : 30 March 2021 12:37:01(UTC)
fedeghi


Rank: Advanced Member

Groups: Registered
Joined: 14/09/2013(UTC)
Posts: 90
Italy

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


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

Ciao!

Edited by user 30 March 2021 12:44:22(UTC)  | Reason: Not specified

Offline fedeghi  
#6 Posted : 30 March 2021 12:54:56(UTC)
fedeghi


Rank: Advanced Member

Groups: Registered
Joined: 14/09/2013(UTC)
Posts: 90
Italy

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

Ciao
Offline overlord  
#7 Posted : 30 March 2021 14:03:34(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

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).

2021-03-30_14-00.png
Offline Davide Carpi  
#8 Posted : 03 April 2021 14:06:31(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,651
Man
Italy
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.

2021-04-03 13_04_33-Window.png



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
Offline Jean Giraud  
#9 Posted : 04 April 2021 00:45:13(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Davide Carpi Go to Quoted Post
Happy Easter and take care, anyone.

Thanks Davide ... Your's all too ... Jean
Users browsing this topic
Guest
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.