|
@ -102,4 +102,6 @@ def simplify_product_function(type, function): |
|
|
simplified_term = simplify_easy_math_function("v", term.strip()) |
|
|
simplified_term = simplify_easy_math_function("v", term.strip()) |
|
|
if not simplified_term or len(simplified_term) != 2: |
|
|
if not simplified_term or len(simplified_term) != 2: |
|
|
return False |
|
|
return False |
|
|
term_coefficient, term_variables = simplified_term |
|
|
|
|
|
|
|
|
term_coefficient, term_variables = simplified_term |
|
|
|
|
|
result_coefficient *= term_coefficient |
|
|
|
|
|
result_variables += term_variables |