Ask Your Question
0

Equations solving

asked 2015-01-11 20:16:36 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

Hi everybody, i've got this two equations:

eqq0: V_f*cos(delta(t))=v(t)
eqq1: V_f*sin(delta(t))=l*diff(psi(t))

I need to isolate V_f from the first equation, obtaining V_f=v(t)/cos(delta(t)) and substitute it in the second equation. Then i have to isolate diff(psi(t))=[v(t)*tan(delta(t))]/l.

I did :

a=solve (eqq0,V_f)
V_ff=a.right()

but it says "AttributeError: 'Sequence_generic' object has no attribute 'right'"

How can i solve this two equations?

Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-01-11 20:21:36 +0100

daniele gravatar image

updated 2015-01-11 20:22:15 +0100

ciao Silvia,

use, e.g.,

a[0].right()

to get the RHS of the first solution. Indeed, solve returns a list of solutions.

edit flag offensive delete link more

Comments

It works! Grazie mille! ;)

Now i substituted that value in the second equation doing eqq1.left().subs(V_f==V_ff)

but when i do

solve(eqq1,diff(psi))

it gives me diff(psi(t))=V_f*sin(delta(t))/l

like i never did that substitution before.

What can i do to have diff(psi(t))=[v(t)*tan(delta(t))]/l as a solution?

Silvia gravatar imageSilvia ( 2015-01-11 21:27:36 +0100 )edit

Be sure to redefine eqq1 with the substituted expression. That is, eqq1=eqq1.left().subs(V_f==V_ff).

calc314 gravatar imagecalc314 ( 2015-01-11 22:12:02 +0100 )edit

I redefined eqq1, but doing like this it ignores the left part of the equation, so eqq1 becomes just sin(delta(t))*v/cos(delta(t))

Silvia gravatar imageSilvia ( 2015-01-11 22:25:55 +0100 )edit

Ok i got it, i just had to writeeqq1=eqq1.subs(V_f==V_ff)

Silvia gravatar imageSilvia ( 2015-01-11 22:29:02 +0100 )edit

Now the problem is that when i do solve(eqq1,diff(psi(t))) he doesn't solve it (it gives me [ ]), and if i do solve(eqq1,diff(psi)) is says No differentiation variable specified.

What's wrong?

Silvia gravatar imageSilvia ( 2015-01-11 22:34:34 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-01-11 20:16:36 +0100

Seen: 1,032 times

Last updated: Jan 11 '15