Question: solve system of eqs in terms of other variables

How do I solve sol1 in terms of DC and T (and tau)?
restart

eq1 := x2 = x1+(A-x1)*(1-exp(-ton/tau))

 

 

eq2 := x1 = x2*exp(-toff/tau)

 

eq3 := T = ton+toff

 

NULL

eq4 := DC = ton/T

 

sol1 := simplify(`assuming`([solve({eq1, eq2}, {x1, x2})], [`and`(`and`(`and`(`and`(A > 0, tau > 0), ton > 0), toff > 0), T > 0)]))

{x1 = A*(exp(-ton/tau)-1)*exp(-toff/tau)/(exp((-toff-ton)/tau)-1), x2 = (exp(-ton/tau)-1)*A/(exp((-toff-ton)/tau)-1)}

(5)

Thank youNULL

Download dutycycle.mw

Please Wait...