Commit a6b893c
committed
Fix sympy coefficient typing issue in SymbolicOperator
When adding a new term to a SymbolicOperator with a sympy coefficient, the coefficient was being cast to a float. This was because the default value for a new term was 0.0, which is a float. This commit changes the default value to 0, which is an integer. This ensures that the type of the coefficient is preserved when adding new terms.1 parent fb7bc39 commit a6b893c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
| 436 | + | |
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| |||
0 commit comments