Oh yeah!! Thanks. I haven't used that since the begining of last semester so I forgot it. Thank you so much for the help :)
Type: Posts; User: hottiefee
Oh yeah!! Thanks. I haven't used that since the begining of last semester so I forgot it. Thank you so much for the help :)
Awesome. It's working now :) Thanks! The only thing is how do I set it to where it always shows the answer with 6 decimal places? I tried setpresicion(7) but that displays 7 digits instead of 6...
That didn't change anything that I can see. The answer still comes out to -1.#INF. Even when I try sqroot(16) I get the same answer (-1.#INF not 4). Why would I change TOLERANCE to 100? Since the...
Okay I think I have everything done, but how do you set a tolerance? Like I have to set a tolerance of 10^-6 (6 decimal places). Would it be like:
#define TOLERANCE 10^-6
? That's what I...
Thanks. :)
Alright I think I get it. I'll work on it some more... I'll let ya know how it goes tomorrow prob.
Thats what I thought but the end of the instructions said test your program on sqroot(2) 3rd root(7) and 3rd root(-1)... I just asked my professor because that didn't make sense to me.
How will I know what f(x) is if the user only enters the number to find the nth root of and n (the degree of the root)?
Yeah. I'm starting to feel overwhelmed... :( lol I usually get these program fast but I'm stuck on this one... I know f(x) is the function of the curve, I think, so how do I even get that equation? ...
How can you calculate a derivative in c++? I know how on paper but don't know how to type it up...
lol alright thanks. :) Ill let ya know how it goes.. workin on it now.
Hey everyone. I am trying to write a program using Newtons Method. I know there is no code here, but that's my problem... I don't know where to start. I know the method is similar to bisection so...