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 Mido0  
#1 Posted : 05 April 2022 21:45:27(UTC)
Mido0


Rank: Advanced Member

Groups: Registered
Joined: 10/01/2017(UTC)
Posts: 31
Man
Canada
Location: Alberta

hi,
I used the Solve function a lot before but for some reason it does not work for this simple example.
I need to get the RayLeigh Damping factors alpha and beta using two frequencies, so two simple simultaneous equations should do it. tried using Solve but no luck.
Does anyone know why it is not solving?

Thanks in advance

Solve.jpg test.sm (6kb) downloaded 7 time(s).

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

Offline PompelmoTell  
#2 Posted : 05 April 2022 22:39:40(UTC)
PompelmoTell


Rank: Advanced Member

Groups: Registered
Joined: 23/12/2011(UTC)
Posts: 318
Man
Italy
Location: italy

Was thanked: 109 time(s) in 93 post(s)

test_sergio.sm (9kb) downloaded 26 time(s).
sergio

Edited by user 05 April 2022 22:45:15(UTC)  | Reason: Not specified

thanks 1 user thanked PompelmoTell for this useful post.
on 06/04/2022(UTC)
Offline overlord  
#3 Posted : 06 April 2022 00:24:50(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)
You can use roots() for your function. And a vectorize() can simplify it.
However, to use Assign() you will need this function to merge vars and solutions.

Regards

Assign_without_Maxima Solve().sm (8kb) downloaded 13 time(s).

2022-04-06_00-21.png
thanks 1 user thanked overlord for this useful post.
on 06/04/2022(UTC)
Offline Mido0  
#4 Posted : 06 April 2022 04:22:48(UTC)
Mido0


Rank: Advanced Member

Groups: Registered
Joined: 10/01/2017(UTC)
Posts: 31
Man
Canada
Location: Alberta

Thanks Overlord, PompelmoTell, greatly appreciated!!
Offline Kenny Lemens  
#5 Posted : 06 April 2022 16:28:07(UTC)
Kenny Lemens


Rank: Advanced Member

Groups: Registered
Joined: 11/01/2018(UTC)
Posts: 131
Man
United States
Location: Wisconsin

Was thanked: 58 time(s) in 37 post(s)
Greetings,

Another approach would be to use some elbow grease, you can substitute terms by hand and solve for 𝛼 and 𝛽:

Keypress (You can copy/paste the following into your worksheet):
Code:
α:{2*D*ω.1*ω.2}/{ω.1+ω.2}
β:α/{ω.1*ω.2}

*NOTE: ω.1 and ω.2 shown above are variables with subscript, they are not vectors ω[1 and ω[2; You should be able to substitute ω.1 for ω[1 if that serves your purposes.

- - - [SMath] Simultaneous Equations.jpg


- Kenny Lemens, P.E.
"No matter where you go, there you are." -Buckaroo Banzai

Hotkeys: https://en.smath.com/for...rce.ashx?a=45771&b=2
thanks 1 user thanked Kenny Lemens for this useful post.
on 06/04/2022(UTC)
Offline Ber7  
#6 Posted : 06 April 2022 17:40:36(UTC)
Ber7


Rank: Advanced Member

Groups: Registered
Joined: 15/07/2010(UTC)
Posts: 437
Man
Israel
Location: Beer-Sheva

Was thanked: 520 time(s) in 288 post(s)
If the damping coefficients are denoted by α1 and α2, you can use the function al_nlegsoive
test.sm (7kb) downloaded 9 time(s).
test.png
thanks 2 users thanked Ber7 for this useful post.
on 06/04/2022(UTC),  on 06/04/2022(UTC)
Offline Jean Giraud  
#7 Posted : 07 April 2022 17:08:53(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)
...

FindRoot.PNG
thanks 1 user thanked Jean Giraud for this useful post.
on 07/04/2022(UTC)
Offline Jean Giraud  
#8 Posted : 07 April 2022 19:43:03(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)
... more in there from native Smath code.

Solve FindRoot FORUM.sm (11kb) downloaded 14 time(s).
Offline overlord  
#9 Posted : 07 April 2022 23:27:55(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)
solving with uni's latest addition mathcad blocks;
you wouldn't need Eq: actually, but it can be shown.

mathblock.sm (6kb) downloaded 14 time(s).

2022-04-07_23-26.png

Edited by user 07 April 2022 23:29:29(UTC)  | Reason: Not specified

thanks 1 user thanked overlord for this useful post.
on 10/04/2022(UTC)
Offline overlord  
#10 Posted : 08 April 2022 00:19:34(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)
I think this is the most sophisticated method of my way.
It can get unknowns from equation, solve them.
In the end assigns numerical values to unknowns.
You don't need to define alpha or beta or any variable.
All process is automatic.

Regards

mathblock_v2.sm (6kb) downloaded 15 time(s).

2022-04-08_01-54.png

There is also this way for guess define.

2022-04-08_01-57.png

Edited by user 08 April 2022 01:58:41(UTC)  | Reason: Not specified

Offline Ber7  
#11 Posted : 08 April 2022 08:19:42(UTC)
Ber7


Rank: Advanced Member

Groups: Registered
Joined: 15/07/2010(UTC)
Posts: 437
Man
Israel
Location: Beer-Sheva

Was thanked: 520 time(s) in 288 post(s)
Originally Posted by: overlord Go to Quoted Post
I think this is the most sophisticated method of my way.
It can get unknowns from equation, solve them.
In the end assigns numerical values to unknowns.
You don't need to define alpha or beta or any variable.
All process is automatic.

Regards
There is also this way for guess define.


2022-04-08_01-57.png

This is good, but for a system of linear equations(our case), the guess can be arbitrary.

Edited by user 08 April 2022 08:30:49(UTC)  | Reason: Not specified

Offline mkraska  
#12 Posted : 09 April 2022 02:04:07(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
And finally a version with Solve() and list injection region:

mathblock_Solve.png
mathblock_Solve.sm (5kb) downloaded 14 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 09/04/2022(UTC)
Offline Kenny Lemens  
#13 Posted : 11 April 2022 15:57:44(UTC)
Kenny Lemens


Rank: Advanced Member

Groups: Registered
Joined: 11/01/2018(UTC)
Posts: 131
Man
United States
Location: Wisconsin

Was thanked: 58 time(s) in 37 post(s)
Greetings,

If plugins are considered, you can also consider the use of Maple:
- - - [SMath] Maple - Simulatneous Equ..jpg

In the image I posted, the 'equal sign' shown on those two equations are actually symbolic equals; keypress: [ctrl] + [.] instead of keypress [=].

Kenny Lemens, P.E.
"No matter where you go, there you are." -Buckaroo Banzai

Hotkeys: https://en.smath.com/for...rce.ashx?a=45771&b=2
Offline Razonar  
#14 Posted : 11 April 2022 22:44:08(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 isol solution, using only the Mathcad block plugin.

img1.png

isol_example.sm (69kb) downloaded 22 time(s).
isol_example.pdf (35kb) downloaded 9 time(s).

Best regards.
Alvaro.
thanks 1 user thanked Razonar for this useful post.
on 12/04/2022(UTC)
Offline Mido0  
#15 Posted : 14 April 2022 18:10:17(UTC)
Mido0


Rank: Advanced Member

Groups: Registered
Joined: 10/01/2017(UTC)
Posts: 31
Man
Canada
Location: Alberta

Thank you all for the feedback, is there a literature or manual to explain the Mathcad block plugin?
Thanks
Offline Jean Giraud  
#16 Posted : 14 April 2022 20:54:00(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: Mido0 Go to Quoted Post
Thank you all for the feedback, is there a literature or manual to explain the Mathcad block plugin ?

For that particular example, maple is an algebraic export.
Mathcad block has not yet been exemplified in Smath Community
of what it can do vs what native Smath can't.
Cheers ... Jean.

Codes Solve.sm (13kb) downloaded 9 time(s).
Offline Jean Giraud  
#17 Posted : 15 April 2022 01:43:45(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)
Exercise the Mathcad bloc

MathBloc Test.PNG
Offline overlord  
#18 Posted : 15 April 2022 02:19:07(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: Mido0 Go to Quoted Post
Thank you all for the feedback, is there a literature or manual to explain the Mathcad block plugin?
Thanks

We have what Viacheslav provided us.
There are some samples or functions too which individual users uploaded.
You can look the extension page for some examples.
And there are some samples in forum topic that users posted.
It may be a small bunch, but we try to understand its capabilities.
This feature/plugin is also new to us.

Regards

https://en.smath.com/forum/yaf_postst726_Mathcad-Toolbox.aspx
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.