We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 108e9ca commit 90feebdCopy full SHA for 90feebd
maths/dual_number_automatic_differentiation.py
@@ -19,7 +19,7 @@ def __init__(self, real, rank):
19
def __repr__(self):
20
return (
21
f"{self.real}+"
22
- f"{'+'.join('{dual}E{n}'.format(dual, n) for n, dual in enumerate(self.duals, 1))}"
+ f"{'+'.join('{}E{}'.format(dual, n) for n, dual in enumerate(self.duals, 1))}"
23
)
24
25
def reduce(self):
0 commit comments