me to solve this problem?
Hi. Did you try to debug your code? Set some braeakpints and watch the variables.
What do you mean? if-condition doesn't enter true case?
yes, I did it didn't show any warnings or errors
Debugging isn't for watching errors! If you had errors, your code wouldn't compile.
actually fnew is printed 0.04 and the condition is that if fnew is less than 0.00001 we have the root, I don't know why it doesn't work
yes, I know that. I use codeblocks debugger actually about 3 times😅
Sit back, take a deep breath and think about what you're doing. Sometimes you're tired and you can't implement the algorithm that exists in your mind. Again, if your code compiled successfully, it's your turn to find out how to get the desired result. (with tools like debuggers,.. )
thx for your advice I've been doing that for about 4 days😅
Don't blame yourself. You'll have lots of experience during your journey in programming and they'll help you become master step by step:)
Обсуждают сегодня