Mathcad to SMath_function root and solve

Mathcad to SMath_function root and solve - Messages

#1 Posted: 3/26/2021 6:59:33 AM
matteo

matteo

0 likes in 5 posts.

Group: User

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

File not found.File not found.
#2 Posted: 3/26/2021 10:09:07 AM
matteo

matteo

0 likes in 5 posts.

Group: User

ok,

thanks

verifica a flessione_prova.sm (43 KiB) downloaded 39 time(s).
#3 Posted: 3/26/2021 12:52:12 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

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.
#4 Posted: 3/30/2021 4:10:19 AM
matteo

matteo

0 likes in 5 posts.

Group: User

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?

Thanksverifica a flessione_prova2.sm (43 KiB) downloaded 34 time(s).


Cattura.PNG
#5 Posted: 3/30/2021 6:37:01 AM
fedeghi

fedeghi

25 likes in 112 posts.

Group: User

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!
#6 Posted: 3/30/2021 6:54:56 AM
fedeghi

fedeghi

25 likes in 112 posts.

Group: User

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
#7 Posted: 3/30/2021 8:03:34 AM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

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 (45 KiB) downloaded 38 time(s).

2021-03-30_14-00.png
#8 Posted: 4/3/2021 8:06:31 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

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.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#9 Posted: 4/3/2021 6:45:13 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Happy Easter and take care, anyone.


Thanks Davide ... Your's all too ... Jean
  • New Posts New Posts
  • No New Posts No New Posts