Mathcad to SMath_function root and solve

Mathcad to SMath_function root and solve - Сообщения

#1 Опубликовано: 26.03.2021 06:59:33
matteo

matteo

0 сообщений из 5 понравились пользователям.

Группа: 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

Файл не найден.Файл не найден.
#2 Опубликовано: 26.03.2021 10:09:07
matteo

matteo

0 сообщений из 5 понравились пользователям.

Группа: User

ok,

thanks

verifica a flessione_prova.sm (43 КиБ) скачан 39 раз(а).
#3 Опубликовано: 26.03.2021 12:52:12
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: 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 Опубликовано: 30.03.2021 04:10:19
matteo

matteo

0 сообщений из 5 понравились пользователям.

Группа: 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 КиБ) скачан 34 раз(а).


Cattura.PNG
#5 Опубликовано: 30.03.2021 06:37:01
fedeghi

fedeghi

25 сообщений из 112 понравились пользователям.

Группа: 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 Опубликовано: 30.03.2021 06:54:56
fedeghi

fedeghi

25 сообщений из 112 понравились пользователям.

Группа: 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 Опубликовано: 30.03.2021 08:03:34
overlord

overlord

552 сообщений из 1332 понравились пользователям.

Группа: 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 КиБ) скачан 38 раз(а).

2021-03-30_14-00.png
#8 Опубликовано: 03.04.2021 08:06:31
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: 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 Опубликовано: 03.04.2021 18:45:13
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

Happy Easter and take care, anyone.


Thanks Davide ... Your's all too ... Jean
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений