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 sefc  
#1 Posted : 11 February 2014 06:33:45(UTC)
sefc

Rank: Newbie

Groups: Registered
Joined: 23/01/2014(UTC)
Posts: 4
United States

Hello,

I am very new to Smath Studio and programming in general. I have been able solve systems directly in Maxima, but am having difficulty doing it through the plugin for Smath. Could someone please give me some tips for how to solve a simple system such as a car accelerating from a stop?

Say I know the distance and time that a car accelerates and I want to determine the acceleration and velocity. Obviously this is a very simple example to do by hand, but I want to understand the technique for how to solve this in Smath using Maxima.

Equations:
d=1/2*a*^2
v=sqrt(2*a*d)

Knowns(t,d)

Unknowns(v,a)

Thanks for the help!

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

Offline omorr  
#2 Posted : 11 February 2014 10:56:40(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello,

Just look at the SMath Active Book by Martin Kraska and you will find under Maxima plugin the answer. For instance, you can use Algsys() function

L:Algsys(mat(d≡1/2*a*t^2,v≡sqrt(2*a*d),2,1),mat(v,a,2,1))

Assign(L)=sys(sys(2*abs(d)/abs(t),2*d/{t^2},2,1),1,1)

v={2*abs(d)}/abs(t) a={2*d}/{t^2}

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 11/02/2014(UTC)
Offline sefc  
#3 Posted : 11 February 2014 19:46:40(UTC)
sefc

Rank: Newbie

Groups: Registered
Joined: 23/01/2014(UTC)
Posts: 4
United States

Great, thank you so much omorr!
Offline sefc  
#4 Posted : 12 February 2014 03:53:18(UTC)
sefc

Rank: Newbie

Groups: Registered
Joined: 23/01/2014(UTC)
Posts: 4
United States

I went home and tried using that function tonight and keep getting an error message that the d and v are "not defined". Like I said, I am new to this and I am not quite sure what my mistake is. I really appreciate the help!

Offline mkraska  
#5 Posted : 12 February 2014 03:59:34(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 1124 time(s) in 721 post(s)
That is because you try to get a numeric result. If you use -> (evaluate symbolically) then you get the correct result.
You also can switch evaluation mode via context menu (right mouse button), entry "Optimization"
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 10/04/2018(UTC)
Offline sefc  
#6 Posted : 12 February 2014 07:35:08(UTC)
sefc

Rank: Newbie

Groups: Registered
Joined: 23/01/2014(UTC)
Posts: 4
United States

Wow, thank you both so much! That was super helpful. I need to go brush up on the basics.

Thanks again!
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.