Processing math: 100%
Ask Your Question
0

Substitution

asked 4 years ago

Cyrille gravatar image

updated 4 years ago

tmonteil gravatar image

After some calculation I arrive to the following equation $\frac{Dp - D+ I}{D(P-1)}$.

Whichever be the command I use I cannot put it as $\frac{D(p - 1)+ I}{D(P-1)}oras1-\frac{I}{D*(P-1)}or1-\frac{I}{D}\frac{1}{(P-1)}$.

This last equation is the one of interest since I would like to solve 1ID1(P1)==0 according to DI.

Is there a way to use solve() acording to DI ? I have tried to substitue x with a form of substitute()for it, but it was an echec. I understand that substitue a ratio of 2 variables for one is a little bit complex.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 4 years ago

tmonteil gravatar image

updated 4 years ago

You can add a new variable to model D/I and solve a system of equations :

sage: var('D,P,I,z')
sage: e = (D*P - D + I)/(D*(P - 1))
sage: e
(D*p - D + I)/(D*(P - 1))
sage: solve([e == 0, z == D/I], z, D)
[[z == -1/(P - 1), D == -I/(P - 1)]]
Preview: (hide)
link

Comments

Thank tmonteil. When I read your solution I feel stupid. This is so simple.

Cyrille gravatar imageCyrille ( 4 years ago )

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 4 years ago

Seen: 792 times

Last updated: May 18 '20