combine_like_terms fixes

This commit is contained in:
lukew3
2020-10-23 13:50:32 -04:00
parent 6d3a543075
commit 8b220c8421
3 changed files with 4 additions and 3 deletions

View File

@@ -109,3 +109,4 @@ from .is_leap_year import *
from .minutes_to_hours import * from .minutes_to_hours import *
from .decimal_to_bcd import * from .decimal_to_bcd import *
from .circumference import * from .circumference import *
from .combine_like_terms import *

View File

@@ -41,5 +41,5 @@ def combineTerms(string):
return final_string return final_string
combineLikeTerm = Generator("Combine Like terms", 102, "nx^m+lx^k+bx^m", combine_like_terms = Generator("Combine Like terms", 105, "nx^m+lx^k+bx^m",
"(n+b)x^m+lx^k", likeTermCombineFunc) "(n+b)x^m+lx^k", likeTermCombineFunc)

View File

@@ -11,4 +11,4 @@ for item in list:
# print(mathgen.getGenList()) # print(mathgen.getGenList())
print(mathgen.decimal_to_roman_numerals()) print(mathgen.decimal_to_roman_numerals())
print(mathgen.genById(104)) print(mathgen.genById(105))