split_solution_terms function

Split solution expression into terms