Is 'e' always the same? I'm trying to do:
amount = principle * e^(rate * time)
where rate is an annual interest rate, time is in years, and e is 2.71823.
Thanks for the help,
Tarls.
Type: Posts; User: Tarls
Is 'e' always the same? I'm trying to do:
amount = principle * e^(rate * time)
where rate is an annual interest rate, time is in years, and e is 2.71823.
Thanks for the help,
Tarls.
Hey,
Could anyone please explain how to use the <cmath> function exp()? I could really use the help.
Thanks,
Tarls.
Hey, thanks guys, you explained it better than my lecturer ever did! ;) You should all become teachers.
I just compiled it and didn't get any scary error messages, so that's gotta be a good sign....
Okay, well this is what I have... as for what compiler I'm using, and this is probably going to sound really stupid, I don't know!! I'm using Tera Term to connect to the turing system at my...
Hey, thanks, I'll give it a try!
That'd be great, only I've screwed the code up so much it doesn't really make a whole lot of sense anymore! :rolleyes:
This is what I'm trying (with little success and a whole lot of frustration)...
I keep getting this when I try to compile my program:
name lookup of `month' changed for new ISO `for' scoping
temp.cpp:16: using obsolete binding at `month'
Does anyone know what this...
Hey all,
I'm having a bit of trouble (ie. tearing my hair out in frustration) with repetition and selection.
I have to design a program that allows the user to input the amount of money...
Hey, looks good to me! So that's a 'struct'?
<<If both angles are in degrees you can use integer divison and modulous >>
Ah, that's what I was trying to figure out!!
Wow, that was quick. :)
<<Overload the add operator to increment the next highest value when it reaches 60 ie if seconds ==60 ++minutes seconds=0>>
Okay, I think I get that...
I've just...
Hey everyone,
I could really do with some help. I need to write a program that calculates the sum of two angles, in degrees, minutes & seconds. (60 secs to a minute, 60 mins to a degree, 360...