Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline OchkovVF  
#1 Posted : 03 June 2023 14:48:30(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 318
Man
Russian Federation

Was thanked: 17 time(s) in 17 post(s)
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
Kerimov-Cvetkov-Velichko-1-7.pdf (96kb) downloaded 8 time(s). Kerimov-Cvetkov-Velichko-1-7.pdf (96kb) downloaded 7 time(s). Kerimov-Cvetkov-Velichko-1-7.mcdx (951kb) downloaded 3 time(s).
Kerimov-Cvetkov-Velichko-1-7.png

Edited by user 03 June 2023 14:58:49(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline overlord  
#2 Posted : 03 June 2023 21:37:44(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,125
Turkey

Was thanked: 506 time(s) in 337 post(s)
Originally Posted by: OchkovVF Go to Quoted Post
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).
thanks 3 users thanked overlord for this useful post.
on 03/06/2023(UTC),  on 04/06/2023(UTC),  on 04/06/2023(UTC)
Offline Razonar  
#3 Posted : 04 June 2023 08:18:41(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

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.

Click to enlarge

Kerimov-Cvetkov-Velichko-1-7 - nSol.sm (18kb) downloaded 21 time(s).

Best regards.
Alvaro.
thanks 2 users thanked Razonar for this useful post.
on 04/06/2023(UTC),  on 04/06/2023(UTC)
Offline overlord  
#4 Posted : 04 June 2023 16:00:56(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,125
Turkey

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

2023-06-04_15-58.png
thanks 2 users thanked overlord for this useful post.
on 04/06/2023(UTC),  on 04/06/2023(UTC)
Offline overlord  
#5 Posted : 05 June 2023 06:08:21(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,125
Turkey

Was thanked: 506 time(s) in 337 post(s)
Here is a paper-friendly version.
Also check how variable guess points are assigned.

Regards

2023-06-05_06-05.png
thanks 1 user thanked overlord for this useful post.
on 05/06/2023(UTC)
Offline OchkovVF  
#6 Posted : 05 June 2023 08:24:02(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 318
Man
Russian Federation

Was thanked: 17 time(s) in 17 post(s)
Originally Posted by: overlord Go to Quoted Post
Here is a paper-friendly version.
Also check how variable guess points are assigned.

Regards

2023-06-05_06-05.png

Thanks!
Send please the sm file.

Offline Jean Giraud  
#7 Posted : 05 June 2023 17:08:24(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Hello Valery,
In some application(s), you can associate FindRoot with epsilon.

Solve Diophantine Chemical Balance epsilon.sm (107kb) downloaded 10 time(s).
thanks 1 user thanked Jean Giraud for this useful post.
on 05/06/2023(UTC)
Offline overlord  
#8 Posted : 05 June 2023 23:39:04(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,125
Turkey

Was thanked: 506 time(s) in 337 post(s)
Originally Posted by: OchkovVF Go to Quoted Post
Thanks!
Send please the sm file.

solvewithunits.sm (15kb) downloaded 17 time(s).
Offline netsonicyxf  
#9 Posted : 26 June 2023 08:33:01(UTC)
netsonicyxf


Rank: Advanced Member

Groups: Registered
Joined: 10/03/2020(UTC)
Posts: 67

Was thanked: 1 time(s) in 1 post(s)
Please help, why can't find root for this simple equation?
2.png1.png
root.sm (21kb) downloaded 8 time(s).
Offline Davide Carpi  
#10 Posted : 26 June 2023 11:54:06(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
Location: Italy

Was thanked: 1323 time(s) in 873 post(s)
Originally Posted by: netsonicyxf Go to Quoted Post
why can't find root for this simple equation?


Because there aren't unknows

2023-06-26 10_49_28-SMath Solver - [root.sm_].png
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Jean Giraud  
#11 Posted : 26 June 2023 14:45:01(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: netsonicyxf Go to Quoted Post
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) ...

NLroots.PNG
Offline Jean Giraud  
#12 Posted : 26 June 2023 14:55:02(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Try ... roots[(sin(x)-Gamma(x),x,1]

In that case and similar ones,
RootSecant algorithm will spits out 15 decimals, instantaneous.
Cheers ... Jean.

Offline netsonicyxf  
#13 Posted : 26 June 2023 16:06:59(UTC)
netsonicyxf


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 Go to Quoted Post
Originally Posted by: netsonicyxf Go to Quoted Post
why can't find root for this simple equation?


Because there aren't unknows

2023-06-26 10_49_28-SMath Solver - [root.sm_].png


Thanks Davide.
Now I put "N" as unknown in the Eq. But it can't be solved either.
1.png

root.sm (20kb) downloaded 5 time(s).

Edited by user 26 June 2023 16:08:32(UTC)  | Reason: Not specified

Offline Davide Carpi  
#14 Posted : 26 June 2023 16:58:58(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
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)

2023-06-26 15_55_45-SMath Solver - [root_r1.sm].png

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
thanks 1 user thanked Davide Carpi for this useful post.
on 26/06/2023(UTC)
Users browsing this topic
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.