Click here to Skip to main content
15,906,569 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: multithreading Pin
Ravi Bhavnani24-Mar-03 2:08
professionalRavi Bhavnani24-Mar-03 2:08 
Generalaccessing union inside struct Pin
M. Agamawi24-Mar-03 1:20
M. Agamawi24-Mar-03 1:20 
GeneralRe: accessing union inside struct Pin
_Theo_24-Mar-03 1:43
_Theo_24-Mar-03 1:43 
GeneralRe: accessing union inside struct Pin
M. Agamawi24-Mar-03 1:48
M. Agamawi24-Mar-03 1:48 
GeneralRe: accessing union inside struct Pin
_Theo_24-Mar-03 2:03
_Theo_24-Mar-03 2:03 
GeneralRe: accessing union inside struct Pin
Anonymous24-Mar-03 2:14
Anonymous24-Mar-03 2:14 
GeneralRe: accessing union inside struct Pin
jbarton24-Mar-03 3:50
jbarton24-Mar-03 3:50 
GeneralPrecision Problem Pin
emrosa24-Mar-03 1:02
emrosa24-Mar-03 1:02 
Hi...I'm working with trigonometric functions in visual C++ V6.0.

I have this program that converts degrees to radians, applies some direct trigonometric functions, and then some inverse functions.

The inverse function I'm using is the ATAN2(y,x). I have checked the function and it uses the definition of pi=3.141592653589793116E00.

The examples given in the MSN documentation uses pi=3.1415926535 giving the correct results.

Then, I was using the last definition of pi to convert degrees to radians and viceversa, but using also the atan2(y,x) function, and I'm getting that:

cos(90. degrees)=-3.4914833611094e-15

Then, because the definition of pi is different in the conversion and the function, I have decided to make it uniform, as I cannot change the definition of pi in the atan2() function, I decided to change the definition of pi used for the conversions, however, I ave got the following:

cos(90. degrees)=-6.1230317691119e-017

Which is less than the previous result, but still is not correct.

Is there anyway to avoid this situation?
Thanks,

Eric Manuel Rosales Pena Alfaro
PhD student
Unversity of Essex
Wivenhoe Park
Colchester, CO4 3SQ
Essex, Uk
email: emrosa@essex.ac.uk
tel: +44-01206-87311
GeneralRe: Precision Problem Pin
Jambolo25-Mar-03 17:00
Jambolo25-Mar-03 17:00 
QuestionHow to smooth fonts Pin
Ph@ntom24-Mar-03 0:13
Ph@ntom24-Mar-03 0:13 
GeneralReading MessageBox Pin
udayGovekar23-Mar-03 23:54
udayGovekar23-Mar-03 23:54 
GeneralRe: Reading MessageBox Pin
_Theo_24-Mar-03 1:01
_Theo_24-Mar-03 1:01 
GeneralRe: Reading MessageBox Pin
udayGovekar24-Mar-03 1:20
udayGovekar24-Mar-03 1:20 
GeneralRe: Reading MessageBox Pin
jhwurmbach24-Mar-03 1:26
jhwurmbach24-Mar-03 1:26 
GeneralRe: Reading MessageBox Pin
_Theo_24-Mar-03 1:27
_Theo_24-Mar-03 1:27 
GeneralRe: Reading MessageBox Pin
Brian Delahunty24-Mar-03 4:26
Brian Delahunty24-Mar-03 4:26 
GeneralOwner Drawn Menus Pin
Mihir Gore23-Mar-03 23:44
Mihir Gore23-Mar-03 23:44 
GeneralRe: Owner Drawn Menus Pin
Roger Allen24-Mar-03 1:23
Roger Allen24-Mar-03 1:23 
GeneralCMyListCtrl - Limit subitem charactercount Pin
JensB23-Mar-03 23:41
JensB23-Mar-03 23:41 
GeneralRe: CMyListCtrl - Limit subitem charactercount Pin
Roger Allen24-Mar-03 1:25
Roger Allen24-Mar-03 1:25 
GeneralRe: CMyListCtrl - Limit subitem charactercount Pin
JensB24-Mar-03 2:28
JensB24-Mar-03 2:28 
GeneralUndo/Redo in DHTML Control Pin
Reservoir Dog23-Mar-03 23:37
Reservoir Dog23-Mar-03 23:37 
GeneralNeed YOUR help!!! Pin
Sharkky23-Mar-03 23:28
Sharkky23-Mar-03 23:28 
GeneralRe: Need YOUR help!!! Pin
DodgyG23-Mar-03 23:30
DodgyG23-Mar-03 23:30 
GeneralRe: Need YOUR help!!! Pin
Sharkky24-Mar-03 1:36
Sharkky24-Mar-03 1:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.