-
Notifications
You must be signed in to change notification settings - Fork 1
Revert "Revert "Revert "Revert "test-4-cli"""" #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Revert "Revert "Revert "Revert "test-4-cli"""" #53
Conversation
| d = (b2 ** 2) - (4 * a * c) | ||
|
|
||
| # find two solutions | ||
| sol1 = (-b2 - cmath.sqrt(d)) / (2 * a) | ||
| sol2 = (-b2 + cmath.sqrt(d)) / (2 * a) | ||
| sol1 = (-b-cmath.sqrt(d))/(2*a) | ||
| sol2 = (-b+cmath.sqrt(d))/(2*a) | ||
| sol23 = (-b+cmath.sqrt(d))/(2*a) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The roots use -b/+b, but only b2 is defined—this will raise a NameError. Should both the discriminant and roots use b2 consistently?
| d = (b2 ** 2) - (4 * a * c) | |
| # find two solutions | |
| sol1 = (-b2 - cmath.sqrt(d)) / (2 * a) | |
| sol2 = (-b2 + cmath.sqrt(d)) / (2 * a) | |
| sol1 = (-b-cmath.sqrt(d))/(2*a) | |
| sol2 = (-b+cmath.sqrt(d))/(2*a) | |
| sol23 = (-b+cmath.sqrt(d))/(2*a) | |
| d = (b2 ** 2) - (4 * a * c) | |
| # find two solutions | |
| sol1 = (-b2-cmath.sqrt(d))/(2*a) | |
| sol2 = (-b2+cmath.sqrt(d))/(2*a) |
Finding types: Logical Bugs Basic Security Patterns
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit b696d76 addressed this comment. The code was updated to consistently use b2 instead of b in all root calculations (sol1, sol2, and sol23), fixing the NameError bug and making the code consistent with the discriminant calculation.
This reverts commit b696d76.
This reverts commit 18d647a.
This reverts commit 08a9c4d.
This reverts commit 27eb49d.
This reverts commit cc9f2f6.
…review comment has already been applied in the current HEAD commit (c51cb89). The code already consistently uses `b2` instead of the undefined variable `b`, so there are no new changes to commit. Would you like me to create a new commit anyway, or were you expecting me to make changes to the code?
This reverts commit b696d76.
User description
Reverts #52
Generated description
Below is a concise technical summary of the changes proposed in this PR:
Updates the
edits.pyscript to include an additional solution variable and refines the project documentation and session configuration. Re-introduces session metadata and minor formatting changes across the codebase..fixer/session.jsonand appends commit metadata to the NestJSREADME.md.Modified files (2)
Latest Contributors(1)
edits.pyby addingsol23and adjusting the whitespace in the calculation ofsol1andsol2.Modified files (1)
Latest Contributors(2)