solving simultaneous equations with Solve

solving simultaneous equations with Solve - Solve() Maxima not working - 消息

#1 已发布: 2022/4/5 15:45:27
Mo

Mo

0个赞,共34个帖子。

组: User

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

未找到文件。未找到文件。
#2 已发布: 2022/4/5 16:39:40
sergio

sergio

127个赞,共342个帖子。

组: User

显示剧透


test_sergio.sm (8.05 KiB)已下载 1265 次。
sergio
1位用户喜欢此帖子
Mo 2022/4/5 22:22:00
#3 已发布: 2022/4/5 18:24:50
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

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 (7.36 KiB)已下载 1334 次。

2022-04-06_00-21.png
1位用户喜欢此帖子
Mo 2022/4/5 22:22:00
#4 已发布: 2022/4/5 22:22:48
Mo

Mo

0个赞,共34个帖子。

组: User

Thanks Overlord, PompelmoTell, greatly appreciated!!
#5 已发布: 2022/4/6 10:28:07
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

85个赞,共181个帖子。

组: User

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):
α:{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 BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
1位用户喜欢此帖子
Mo 2022/4/6 11:57:00
#6 已发布: 2022/4/6 11:40:36
Fridel Selitsky

Fridel Selitsky

520个赞,共451个帖子。

组: User

If the damping coefficients are denoted by α1 and α2, you can use the function al_nlegsoive
test.sm (6.99 KiB)已下载 1351 次。
test.png
2位用户喜欢此帖子
sergio 2022/4/6 12:26:00, Mo 2022/4/6 11:57:00
#7 已发布: 2022/4/7 11:08:53
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

...

FindRoot.PNG
1位用户喜欢此帖子
Fridel Selitsky 2022/4/7 11:54:00
#8 已发布: 2022/4/7 13:43:03
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

... more in there from native Smath code.

Solve FindRoot FORUM.sm (10.9 KiB)已下载 1330 次。
#9 已发布: 2022/4/7 17:27:55
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

solving with uni's latest addition mathcad blocks;
you wouldn't need Eq: actually, but it can be shown.

mathblock.sm (5.15 KiB)已下载 1330 次。

2022-04-07_23-26.png
1位用户喜欢此帖子
Mo 2022/4/9 22:28:00
#10 已发布: 2022/4/7 18:19:34
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

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 (5.19 KiB)已下载 1341 次。

2022-04-08_01-54.png

There is also this way for guess define.

2022-04-08_01-57.png
#11 已发布: 2022/4/8 02:19:42
Fridel Selitsky

Fridel Selitsky

520个赞,共451个帖子。

组: User

Wrote

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.
#12 已发布: 2022/4/8 20:04:07
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

And finally a version with Solve() and list injection region:

mathblock_Solve.png
mathblock_Solve.sm (4.86 KiB)已下载 1298 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
sergio 2022/4/9 04:48:00
#13 已发布: 2022/4/11 09:57:44
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

85个赞,共181个帖子。

组: User

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 BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
#14 已发布: 2022/4/11 16:44:08
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi. The isol solution, using only the Mathcad block plugin.

img1.png

isol_example.sm (68.13 KiB)已下载 1279 次。
isol_example.pdf (34.57 KiB)已下载 741 次。

Best regards.
Alvaro.
1位用户喜欢此帖子
sergio 2022/4/12 05:01:00
#15 已发布: 2022/4/14 12:10:17
Mo

Mo

0个赞,共34个帖子。

组: User

Thank you all for the feedback, is there a literature or manual to explain the Mathcad block plugin?
Thanks
#16 已发布: 2022/4/14 14:54:00
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

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 (12.46 KiB)已下载 1321 次。
#17 已发布: 2022/4/14 19:43:45
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Exercise the Mathcad bloc

MathBloc Test.PNG
#18 已发布: 2022/4/14 20:19:07
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Wrote

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
  • 有新帖
  • 无新帖