Equation solving

Equation solving - Basic info - Сообщения

#1 Опубликовано: 15.05.2021 15:35:53
Mateusz

Mateusz

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

Группа: User

Hi,
First of all hello to all
I'am a new forum user as well as the SMath, too.
So: I have a question-> please see the below input deck (I don't know how to input png file :/ )

m:=850kg
G:=m*ge

L:=2.4m
LF:=1.3m
LR:=L-LF

solve(GFA*L=G*LR,GFA)

off course ge is the gravity. The above input don't give me solution. Could you help me??
I hope that attachment file will be correctly attached

test.sm (4 КиБ) скачан 32 раз(а).

best regards,
Astroneus
#2 Опубликовано: 15.05.2021 16:18:00
overlord

overlord

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

Группа: Moderator

Wrote

Hi,
First of all hello to all
I'am a new forum user as well as the SMath, too.
So: I have a question-> please see the below input deck (I don't know how to input png file :/ )

m:=850kg
G:=m*ge

L:=2.4m
LF:=1.3m
LR:=L-LF

solve(GFA*L=G*LR,GFA)

off course ge is the gravity. The above input don't give me solution. Could you help me??
I hope that attachment file will be correctly attached

test.sm (4 КиБ) скачан 32 раз(а).

best regards,
Astroneus


solve() calculates between -20/+20 unless different range is not specified.
This was your wrong doing here, result is way over 20. A well guessed range gives the result.
roots() must calculate without units like solve(), however you can fool functions by adding the unit of result.
Findroot() can calculate with unit but you have to give a starting guess value.

test_solve.sm (6 КиБ) скачан 32 раз(а).

test_solve.png
#3 Опубликовано: 15.05.2021 17:01:27
Mateusz

Mateusz

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

Группа: User

Wonderful !

Thankyou for quick reply. Answering to your question: I didn't use simple way due to learning purpose This was just simply example.

Btw. I installed the Maxima and I turn on the plugin in SMath. Could you tell me how to define the above equation for symbolic solution i.e. considering the GFa ???


Best regards,
Astroneus
#4 Опубликовано: 15.05.2021 18:44:10
overlord

overlord

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

Группа: Moderator

Wrote

Wonderful !

Thankyou for quick reply. Answering to your question: I didn't use simple way due to learning purpose This was just simply example.

Btw. I installed the Maxima and I turn on the plugin in SMath. Could you tell me how to define the above equation for symbolic solution i.e. considering the GFa ???


Best regards,
Astroneus


I use linux, maxima plugin doesn't work for us. Can't show you as smath example.
However I have maxima as cli and it can solve your function
Maple plugin can solve as you asked too if optimization is set to symbolic.
The idea is same, way of doing it and result shouldn't differ on maxima plugin.

Regards

2021-05-16_00-38_1.png
#5 Опубликовано: 15.05.2021 19:18:01
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Wrote

...
Btw. I installed the Maxima and I turn on the plugin in SMath. Could you tell me how to define the above equation for symbolic solution i.e. considering the GFa ???
...



Mi Astroneus. If you have Maxima, you can use Solve(). For learn about it (and a lot of things about Maxima and SMath) you can download the "Interactive SMath Handbook" by M. Kraska. Under Tools menu choose the interactive books option. If you don't have it, try to change "Local storage" to "Online gallery". The you can open it. Solve it's under Mathematics / Solving Non-Linear Equations / Solve.

Clipboard01.jpg

Best regards.
Alvaro.
#6 Опубликовано: 15.05.2021 21:02:37
overlord

overlord

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

Группа: Moderator

Wrote

If you have Maxima, you can use Solve().


Alvaro is right (like always), I have totally forgot maxima plugins's Solve() function cause I am not using windows for daily basis in a looong time.
There are also solvers like al_nleqsolve() or others in solving libraries/ plugins. You can find necessary informations for them in Reference Book, as Alvaro already mentioned.
1 пользователям понравился этот пост
Alvaro Diaz Falconi 16.05.2021 21:45:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений