Skip to content

Commit 90feebd

Browse files
authored
Update dual_number_automatic_differentiation.py
1 parent 108e9ca commit 90feebd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maths/dual_number_automatic_differentiation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(self, real, rank):
1919
def __repr__(self):
2020
return (
2121
f"{self.real}+"
22-
f"{'+'.join('{dual}E{n}'.format(dual, n) for n, dual in enumerate(self.duals, 1))}"
22+
f"{'+'.join('{}E{}'.format(dual, n) for n, dual in enumerate(self.duals, 1))}"
2323
)
2424

2525
def reduce(self):

0 commit comments

Comments
 (0)