Mathcad to SMath_function root and solve

Mathcad to SMath_function root and solve - Mensajes

#1 Publicado: 26/3/2021 6:59:33
matteo

matteo

0 me gusta en 5 mensajes.

Grupo: 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

Archivo no encontrado.Archivo no encontrado.
#2 Publicado: 26/3/2021 10:09:07
matteo

matteo

0 me gusta en 5 mensajes.

Grupo: User

ok,

thanks

verifica a flessione_prova.sm (43,07 KiB) descargado 1367 vez(es).
#3 Publicado: 26/3/2021 12:52:12
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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 Publicado: 30/3/2021 4:10:19
matteo

matteo

0 me gusta en 5 mensajes.

Grupo: 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,79 KiB) descargado 1278 vez(es).


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

fedeghi

25 me gusta en 112 mensajes.

Grupo: 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 Publicado: 30/3/2021 6:54:56
fedeghi

fedeghi

25 me gusta en 112 mensajes.

Grupo: 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 Publicado: 30/3/2021 8:03:34
overlord

overlord

600 me gusta en 1.381 mensajes.

Grupo: 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,02 KiB) descargado 1364 vez(es).

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

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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 Publicado: 3/4/2021 18:45:13
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

Happy Easter and take care, anyone.


Thanks Davide ... Your's all too ... Jean
  • Nuevos mensajes
  • Sin mensajes nuevos