solving simultaneous equations with Solve

solving simultaneous equations with Solve - Solve() Maxima not working - Сообщения

#1 Опубликовано: 05.04.2022 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 Опубликовано: 05.04.2022 16:39:40
sergio

sergio

115 сообщений из 329 понравились пользователям.

Группа: User

Показать спойлер


test_sergio.sm (8 КиБ) скачан 50 раз(а).
sergio
1 пользователям понравился этот пост
Mo 05.04.2022 22:22:00
#3 Опубликовано: 05.04.2022 18:24:50
overlord

overlord

552 сообщений из 1332 понравились пользователям.

Группа: 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 КиБ) скачан 42 раз(а).

2022-04-06_00-21.png
1 пользователям понравился этот пост
Mo 05.04.2022 22:22:00
#4 Опубликовано: 05.04.2022 22:22:48
Mo

Mo

0 сообщений из 34 понравились пользователям.

Группа: User

Thanks Overlord, PompelmoTell, greatly appreciated!!
#5 Опубликовано: 06.04.2022 10:28:07
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

74 сообщений из 164 понравились пользователям.

Группа: 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 06.04.2022 11:57:00
#6 Опубликовано: 06.04.2022 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 КиБ) скачан 31 раз(а).
test.png
2 пользователям понравился этот пост
sergio 06.04.2022 12:26:00, Mo 06.04.2022 11:57:00
#7 Опубликовано: 07.04.2022 11:08:53
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

...

FindRoot.PNG
1 пользователям понравился этот пост
Fridel Selitsky 07.04.2022 11:54:00
#8 Опубликовано: 07.04.2022 13:43:03
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

... more in there from native Smath code.

Solve FindRoot FORUM.sm (10 КиБ) скачан 36 раз(а).
#9 Опубликовано: 07.04.2022 17:27:55
overlord

overlord

552 сообщений из 1332 понравились пользователям.

Группа: Moderator

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

mathblock.sm (5 КиБ) скачан 37 раз(а).

2022-04-07_23-26.png
1 пользователям понравился этот пост
Mo 09.04.2022 22:28:00
#10 Опубликовано: 07.04.2022 18:19:34
overlord

overlord

552 сообщений из 1332 понравились пользователям.

Группа: 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 КиБ) скачан 31 раз(а).

2022-04-08_01-54.png

There is also this way for guess define.

2022-04-08_01-57.png
#11 Опубликовано: 08.04.2022 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 Опубликовано: 08.04.2022 20:04:07
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

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

mathblock_Solve.png
mathblock_Solve.sm (4 КиБ) скачан 38 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
sergio 09.04.2022 04:48:00
#13 Опубликовано: 11.04.2022 09:57:44
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

74 сообщений из 164 понравились пользователям.

Группа: 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 Опубликовано: 11.04.2022 16:44:08
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

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

img1.png

isol_example.sm (68 КиБ) скачан 44 раз(а).
isol_example.pdf (34 КиБ) скачан 30 раз(а).

Best regards.
Alvaro.
1 пользователям понравился этот пост
sergio 12.04.2022 05:01:00
#15 Опубликовано: 14.04.2022 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 Опубликовано: 14.04.2022 14:54:00
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 КиБ) скачан 27 раз(а).
#17 Опубликовано: 14.04.2022 19:43:45
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Exercise the Mathcad bloc

MathBloc Test.PNG
#18 Опубликовано: 14.04.2022 20:19:07
overlord

overlord

552 сообщений из 1332 понравились пользователям.

Группа: 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
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений