Add pyMath-all
This commit is contained in:
parent
a341328838
commit
2d7d0a0525
52
calculus.py
52
calculus.py
@ -270,34 +270,34 @@ if __name__ == '__main__':
|
|||||||
#exp = "2 * 3 * 3 * 5"
|
#exp = "2 * 3 * 3 * 5"
|
||||||
#test(exp)
|
#test(exp)
|
||||||
|
|
||||||
#exp = "2 * 3 + 3 * 5"
|
exp = "2 * 3 + 3 * 5"
|
||||||
#test(exp)
|
test(exp)
|
||||||
|
|
||||||
#exp = "2 * ( 3 + 4 ) + 3 * 5"
|
exp = "2 * ( 3 + 4 ) + 3 * 5"
|
||||||
#test(exp)
|
test(exp)
|
||||||
#
|
|
||||||
#exp = "2 * ( 3 + 4 ) + ( 3 - 4 ) * 5"
|
exp = "2 * ( 3 + 4 ) + ( 3 - 4 ) * 5"
|
||||||
#test(exp)
|
test(exp)
|
||||||
#
|
|
||||||
#exp = "2 * ( 2 - ( 3 + 4 ) ) + ( 3 - 4 ) * 5"
|
exp = "2 * ( 2 - ( 3 + 4 ) ) + ( 3 - 4 ) * 5"
|
||||||
#test(exp)
|
test(exp)
|
||||||
#
|
|
||||||
#exp = "2 * ( 2 - ( 3 + 4 ) ) + 5 * ( 3 - 4 )"
|
exp = "2 * ( 2 - ( 3 + 4 ) ) + 5 * ( 3 - 4 )"
|
||||||
#test(exp)
|
test(exp)
|
||||||
#
|
|
||||||
#exp = "2 + 5 * ( 3 - 4 )"
|
exp = "2 + 5 * ( 3 - 4 )"
|
||||||
#test(exp)
|
test(exp)
|
||||||
#
|
|
||||||
#exp = "( 2 + 5 ) * ( 3 - 4 )"
|
exp = "( 2 + 5 ) * ( 3 - 4 )"
|
||||||
#test(exp)
|
test(exp)
|
||||||
#
|
|
||||||
#exp = "( 2 + 5 ) * ( 3 * 4 )"
|
exp = "( 2 + 5 ) * ( 3 * 4 )"
|
||||||
#test(exp)
|
test(exp)
|
||||||
#
|
|
||||||
#exp = "( 2 + 5 ) / ( 3 * 4 )"
|
exp = "( 2 + 5 ) / ( 3 * 4 )"
|
||||||
#test(exp)
|
test(exp)
|
||||||
|
|
||||||
print(expand_list([1,2,['a','b','c'], 3, ['d','e']]))
|
#print(expand_list([1,2,['a','b','c'], 3, ['d','e']]))
|
||||||
|
|
||||||
## Ce denier pose un soucis. Pour le faire marcher il faudrai implémenter le calcul avec les fractions
|
## Ce denier pose un soucis. Pour le faire marcher il faudrai implémenter le calcul avec les fractions
|
||||||
#exp = "( 2 + 5 ) / 3 * 4"
|
#exp = "( 2 + 5 ) / 3 * 4"
|
||||||
|
Loading…
Reference in New Issue
Block a user