cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Algorithm and code planning
Algorithm and code planning
May 22, 2021 at 3:52pm UTC
cppf4life
(4)
Hello, I am currently trying to write some code based on finding roots with Extended Horner and Bairstow's Method.
To be honest, I am totally lost and don't really have a clue how to proceed.
https://imgur.com/a/h8ijpah
I have posted a link to the route diagram the program is supposed to be built around. Any suggestions and pointers are greatly appreciated.
I have a function for the matrix scanner, so that part is okay, but the following portion is where i am lost.
May 22, 2021 at 4:30pm UTC
lastchance
(6980)
Well, you were actually given a solution in your previous thread
http://www.cplusplus.com/forum/beginner/278185/#msg1200902
It just has different names for variables, that's all (because it was coded from the Wikipedia explanation).
May 22, 2021 at 4:46pm UTC
cppf4life
(4)
Yes, I see.
I just can't quite figure out to get the calculations based of a user chosen p and q value (u and v, based on wiki).
May 22, 2021 at 7:05pm UTC
jonnin
(11441)
does literally just replacing the equation for u and v with cin statements not give you what you are asking? (if not, explain why not?). (line 77 of the provided code)
Last edited on
May 22, 2021 at 7:06pm UTC
Topic archived. No new replies allowed.