Rank: Advanced Member Groups: Registered, Advanced Member Joined: 06/04/2023(UTC) Posts: 318 Was thanked: 17 time(s) in 17 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,125 Was thanked: 506 time(s) in 337 post(s)
|
Originally Posted by: OchkovVF I 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 (24kb) downloaded 23 time(s).
|
3 users thanked overlord for this useful post.
|
on 03/06/2023(UTC), on 04/06/2023(UTC), on 04/06/2023(UTC)
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
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 (18kb) downloaded 21 time(s).Best regards. Alvaro.
|
2 users thanked Razonar for this useful post.
|
on 04/06/2023(UTC), on 04/06/2023(UTC)
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,125 Was thanked: 506 time(s) in 337 post(s)
|
Actually, you don't need to find Tc2 first hand. Findroot() can solve with all three equations at once. All important is the order of unknowns. Regards
|
2 users thanked overlord for this useful post.
|
on 04/06/2023(UTC), on 04/06/2023(UTC)
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,125 Was thanked: 506 time(s) in 337 post(s)
|
Here is a paper-friendly version. Also check how variable guess points are assigned. Regards
|
1 user thanked overlord for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 06/04/2023(UTC) Posts: 318 Was thanked: 17 time(s) in 17 post(s)
|
Originally Posted by: overlord Here is a paper-friendly version. Also check how variable guess points are assigned. Regards Thanks! Send please the sm file.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
|
1 user thanked Jean Giraud for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,125 Was thanked: 506 time(s) in 337 post(s)
|
Originally Posted by: OchkovVF Thanks! Send please the sm file. solvewithunits.sm (15kb) downloaded 17 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/03/2020(UTC) Posts: 67
Was thanked: 1 time(s) in 1 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,639 Location: Italy Was thanked: 1323 time(s) in 873 post(s)
|
Originally Posted by: netsonicyxf why can't find root for this simple equation? Because there aren't unknows |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
Originally Posted by: netsonicyxf Please 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) ...
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
Originally Posted by: Jean Giraud Try ... roots[(sin(x)-Gamma(x),x,1] In that case and similar ones, RootSecant algorithm will spits out 15 decimals, instantaneous. Cheers ... Jean.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/03/2020(UTC) Posts: 67
Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: Davide Carpi Originally Posted by: netsonicyxf why 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 (20kb) downloaded 5 time(s).Edited by user 26 June 2023 16:08:32(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,639 Location: Italy Was thanked: 1323 time(s) in 873 post(s)
|
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) root_r1.sm (25kb) downloaded 6 time(s).Edited by user 27 June 2023 11:18:01(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.