# .coefficients output

I am trying to solve a 2nd order differential eqn using power series. I used the .coeffients to get all the expressions with the constants a_0, a_1, a_2, a_3, .... The differential equation is homogenous so all of the expressions of coefficients = 0 and i want to work out how to get the expression and set it = 0 in a seperate list so i can put the list through solve() to find a_2, a_3, ... How can i do this?

edit retag close merge delete

Could you please provide your current code (in particular the differential equation) ?

( 2019-01-03 19:15:25 +0200 )edit

Sort by ยป oldest newest most voted

I figured out how to do it. I added the solution_dict = True argument to the solve bit and then i created an empty list, used a for loop with .append(co[i][0] == 0) where co was the list of coefficients and it worked.

more

1

Congratulations on solving your problem. Would you share the complete code for a simple example for the benefit of other users?

( 2019-01-04 19:51:01 +0200 )edit