Maxima - Solving Systems

Maxima - Solving Systems - Messages

#1 Posted: 2/10/2014 11:33:45 PM
sefc

sefc

0 likes in 4 posts.

Group: User

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!
#2 Posted: 2/11/2014 3:56:40 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

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

[MATH=eng]L:Algsys(mat(d≡1/2*a*t^2,v≡sqrt(2*a*d),2,1),mat(v,a,2,1))[/MATH]

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

[MATH=eng]v={2*abs(d)}/abs(t)[/MATH] [MATH=eng]a={2*d}/{t^2}[/MATH]

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 users liked this post
Davide Carpi 2/11/2014 5:05:00 AM
#3 Posted: 2/11/2014 12:46:40 PM
sefc

sefc

0 likes in 4 posts.

Group: User

Great, thank you so much omorr!
#4 Posted: 2/11/2014 8:53:18 PM
sefc

sefc

0 likes in 4 posts.

Group: User

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!

#5 Posted: 2/11/2014 8:59:34 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

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://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
rafaeljr 4/9/2018 7:39:00 PM
#6 Posted: 2/12/2014 12:35:08 AM
sefc

sefc

0 likes in 4 posts.

Group: User

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

Thanks again!
  • New Posts New Posts
  • No New Posts No New Posts