Skip to content

Commit 04260cb

Browse files
committed
Refactoring. Using black code style
1 parent 3790fd6 commit 04260cb

File tree

1 file changed

+11
-3
lines changed
  • solution_of_expression__sympy__parser

1 file changed

+11
-3
lines changed
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33

4-
__author__ = 'ipetrash'
4+
__author__ = "ipetrash"
55

66

7-
from sympy.parsing.sympy_parser import parse_expr, standard_transformations, implicit_multiplication_application
7+
from sympy.parsing.sympy_parser import (
8+
parse_expr,
9+
standard_transformations,
10+
implicit_multiplication_application,
11+
)
812
from sympy import *
913

14+
1015
input_str = "(x+1)(y+1)+(x+1)y+xy"
1116
transformations = standard_transformations + (implicit_multiplication_application,)
12-
print(expand(parse_expr(input_str, transformations=transformations))) # 3*x*y + x + 2*y + 1
17+
print(
18+
expand(parse_expr(input_str, transformations=transformations))
19+
)
20+
# 3*x*y + x + 2*y + 1

0 commit comments

Comments
 (0)