1 страниц (14 вхождений)
solve & roots with units - Сообщения
#1 Опубликовано: 03.06.2023 08:48:30
#2 Опубликовано: 03.06.2023 15:37:44
WroteI can it solve in Mathcad - see please mcdx and pdf files
I try solve it (heat transfer) in SMath - see sm file
Help please
SMath symbolic solving of integration is not capable as Mathcad.
Thus integrals can't be used with numeric solvers.
However, you can use a little trick to solve them.
Using maple or maxima plugins is the key.
Here is your problem solved with various ways, roots() and Findroot().
Regards
solvewithunits.sm (23 КиБ) скачан 44 раз(а).
3 пользователям понравился этот пост
#3 Опубликовано: 04.06.2023 02:18:41
Hi. The attached have an al_nleqsol wrapper for a Mathcad block with units, that can accept SMath's integrals too.

Kerimov-Cvetkov-Velichko-1-7 - nSol.sm (17 КиБ) скачан 49 раз(а).
Best regards.
Alvaro.
Kerimov-Cvetkov-Velichko-1-7 - nSol.sm (17 КиБ) скачан 49 раз(а).
Best regards.
Alvaro.
2 пользователям понравился этот пост
#5 Опубликовано: 05.06.2023 00:08:21
1 пользователям понравился этот пост
Valery Ochkov 05.06.2023 02:23:00
#6 Опубликовано: 05.06.2023 02:24:02
#7 Опубликовано: 05.06.2023 11:08:24
Hello Valery,
In some application(s), you can associate FindRoot with epsilon.
Solve Diophantine Chemical Balance epsilon.sm (106 КиБ) скачан 34 раз(а).
In some application(s), you can associate FindRoot with epsilon.
Solve Diophantine Chemical Balance epsilon.sm (106 КиБ) скачан 34 раз(а).
1 пользователям понравился этот пост
Valery Ochkov 05.06.2023 11:26:00
#8 Опубликовано: 05.06.2023 17:39:04
#9 Опубликовано: 26.06.2023 02:33:01
Please help, why can't find root for this simple equation?
Файл не найден.Файл не найден.
root.sm (20 КиБ) скачан 26 раз(а).
Файл не найден.Файл не найден.
root.sm (20 КиБ) скачан 26 раз(а).
#10 Опубликовано: 26.06.2023 05:54:06
#11 Опубликовано: 26.06.2023 08:45:01
WrotePlease help,
why can't find root for this simple equation ?
roots solves wrt scalar function(s)
In this example, both functions are scalar wrt 'x'.
Try ... roots[(sin(x)-Gamma(x),x,1]
'x not defined' ... Gamma(x) is not scalar wrt 'x'
Few more numerical functions are not scalar
erf(x), erf(x,n) ... erfc(x), erfc(x,n) ...
#12 Опубликовано: 26.06.2023 08:55:02
WroteTry ... roots[(sin(x)-Gamma(x),x,1]
In that case and similar ones,
RootSecant algorithm will spits out 15 decimals, instantaneous.
Cheers ... Jean.
#13 Опубликовано: 26.06.2023 10:06:59
WroteWrotewhy can't find root for this simple equation?
Because there aren't unknows
Thanks Davide.
Now I put "N" as unknown in the Eq. But it can't be solved either.
root.sm (19 КиБ) скачан 21 раз(а).
#14 Опубликовано: 26.06.2023 10:58:58
You have to play a little with the precision, especially if there are units involved; in this case, seems that 10^-3 mm is a stable target (10^-2 works too, but in some case it returns the guess value, meaning that is "close enough" for the algorithm - you can see in the plot that 0kN to 200kN is in +0.02/-0.02mm range)
![2023-06-26 15_55_45-SMath Solver - [root_r1.sm].png](/ru-RU/file/KcnuBb/2023-06-26-15_55_45-SMath-Solver---_root_r1_sm__png)
root_r1.sm (24 КиБ) скачан 27 раз(а).
root_r1.sm (24 КиБ) скачан 27 раз(а).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
netsonicyxf 26.06.2023 12:18:00
1 страниц (14 вхождений)
-
Новые сообщения
-
Нет новых сообщений