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 Astroneus  
#1 Posted : 15 May 2021 21:35:53(UTC)
Astroneus

Rank: Newbie

Groups: Registered
Joined: 15/05/2021(UTC)
Posts: 8
Poland
Location: Warsaw

Hi,
First of all hello to allGood
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 Wink

test.sm (5kb) downloaded 7 time(s).

best regards,
Astroneus

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

Offline overlord  
#2 Posted : 15 May 2021 22:18:00(UTC)
overlord


Rank: Advanced Member

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

Was thanked: 506 time(s) in 337 post(s)
Originally Posted by: Astroneus Go to Quoted Post
Hi,
First of all hello to allGood
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 Wink

test.sm (5kb) downloaded 7 time(s).

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 (7kb) downloaded 6 time(s).

test_solve.png
Offline Astroneus  
#3 Posted : 15 May 2021 23:01:27(UTC)
Astroneus

Rank: Newbie

Groups: Registered
Joined: 15/05/2021(UTC)
Posts: 8
Poland
Location: Warsaw

Wonderful !

Thankyou for quick reply. Answering to your question: I didn't use simple way due to learning purpose Wink 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
Offline overlord  
#4 Posted : 16 May 2021 00:44:10(UTC)
overlord


Rank: Advanced Member

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

Was thanked: 506 time(s) in 337 post(s)
Originally Posted by: Astroneus Go to Quoted Post
Wonderful !

Thankyou for quick reply. Answering to your question: I didn't use simple way due to learning purpose Wink 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
Offline Razonar  
#5 Posted : 16 May 2021 01:18:01(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)
Originally Posted by: Astroneus Go to Quoted Post
...
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.
Offline overlord  
#6 Posted : 16 May 2021 03:02:37(UTC)
overlord


Rank: Advanced Member

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

Was thanked: 506 time(s) in 337 post(s)
Originally Posted by: Razonar Go to Quoted Post
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.
thanks 1 user thanked overlord for this useful post.
on 17/05/2021(UTC)
Users browsing this topic
Similar Topics
Quadratic Equation Solving Trouble (Questions)
by Paul_Caughlin 09/02/2011 22:07:36(UTC)
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.