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
Problem about sin function
Problem about sin function
Aug 4, 2008 at 4:30am UTC
mahedee
(1)
I don't gets actual value of sin function. Such as c++ compiler gives sin(0.18)is equal to 0.17903 but my calculater gives sin(0.18) is to 0.003141587485879563
So how can I get the actual value of sin function. Please help me.
Aug 4, 2008 at 5:55am UTC
mikeb570
(188)
Set your calculator to radians and they'll be the same. sin() takes radians so you have to convert.
radians = degrees * pi / 180
Aug 4, 2008 at 5:56am UTC
guestgulkan
(2942)
Ahh, you are confusing degrees and radians.
The arguments for Sin, Cos, etc should be given in
radians
( damn mike - I thought i was up early :-) )
Last edited on
Aug 4, 2008 at 5:57am UTC
Aug 4, 2008 at 6:21am UTC
mikeb570
(188)
You are up early, I'm just up late =)
Bedtime.
Topic archived. No new replies allowed.