We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I try to multiply two polynomials like this: https://github.com/CyberPotat42/SUAI-Labs/blob/619dbbbf28ac68fabacb6bf25052866939f0047d/Semester_2/Lab_9/main.cpp#L84-L95
This works great!
x - 1 x - 2 x^2 - 3x + 2
But when i try to multiply them in a loop: https://github.com/CyberPotat42/SUAI-Labs/blob/619dbbbf28ac68fabacb6bf25052866939f0047d/Semester_2/Lab_9/main.cpp#L105-L118
Then for some reason the wrong answer is given:
input n = 2 input 2 numbers: 1 2 x - 1 x - 2 x^2 - 4x + 4
Perhaps this is due to incorrect handling of pointers or a memory leak I think it's time for me to sleep 💤
The text was updated successfully, but these errors were encountered:
issue #20 fixed (incorrect handling of pointers)
9685122
I was right, it was the wrong pointer handling - I used the same array in two polynomials at the same time
Sorry, something went wrong.
potat-dev
No branches or pull requests
When I try to multiply two polynomials like this:
https://github.com/CyberPotat42/SUAI-Labs/blob/619dbbbf28ac68fabacb6bf25052866939f0047d/Semester_2/Lab_9/main.cpp#L84-L95
This works great!
But when i try to multiply them in a loop:
https://github.com/CyberPotat42/SUAI-Labs/blob/619dbbbf28ac68fabacb6bf25052866939f0047d/Semester_2/Lab_9/main.cpp#L105-L118
Then for some reason the wrong answer is given:
Perhaps this is due to incorrect handling of pointers or a memory leak
I think it's time for me to sleep 💤
The text was updated successfully, but these errors were encountered: