1 pagine (14 elementi)
solve & roots with units - Messaggi
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,4 KiB) scaricato 1426 volta(e).
3 utenti hanno apprezzato questo post
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,97 KiB) scaricato 1458 volta(e).
Best regards.
Alvaro.
Kerimov-Cvetkov-Velichko-1-7 - nSol.sm (17,97 KiB) scaricato 1458 volta(e).
Best regards.
Alvaro.
2 utenti hanno apprezzato questo post
2 utenti hanno apprezzato questo post
Hello Valery,
In some application(s), you can associate FindRoot with epsilon.
Solve Diophantine Chemical Balance epsilon.sm (106,1 KiB) scaricato 1489 volta(e).
In some application(s), you can associate FindRoot with epsilon.
Solve Diophantine Chemical Balance epsilon.sm (106,1 KiB) scaricato 1489 volta(e).
1 utenti hanno apprezzato questo post
Valery Ochkov 05/06/2023 11:26:00
Please help, why can't find root for this simple equation?
File non trovato.File non trovato.
root.sm (20,2 KiB) scaricato 1394 volta(e).
File non trovato.File non trovato.
root.sm (20,2 KiB) scaricato 1394 volta(e).
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) ...
WroteTry ... roots[(sin(x)-Gamma(x),x,1]
In that case and similar ones,
RootSecant algorithm will spits out 15 decimals, instantaneous.
Cheers ... Jean.
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,41 KiB) scaricato 1361 volta(e).
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](/it-IT/files/Download/KcnuBb/2023-06-26-15_55_45-SMath-Solver---[root_r1.sm].png)
root_r1.sm (24,03 KiB) scaricato 1430 volta(e).
![2023-06-26 15_55_45-SMath Solver - [root_r1.sm].png](/it-IT/files/Download/KcnuBb/2023-06-26-15_55_45-SMath-Solver---[root_r1.sm].png)
root_r1.sm (24,03 KiB) scaricato 1430 volta(e).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 utenti hanno apprezzato questo post
netsonicyxf 26/06/2023 12:18:00
1 pagine (14 elementi)
- Nuovi post
- Nessun nuovo post



![2023-06-26 10_49_28-SMath Solver - [root.sm_].png](/it-IT/files/Download/M4RRUF/2023-06-26-10_49_28-SMath-Solver---[root.sm_].png)