Frustrating excel problem with COS

  • Thread starter Thread starter tommy060289
  • Start date Start date
  • Tags Tags
    Cos Excel
Click For Summary

Discussion Overview

The discussion revolves around a problem encountered by a user while using Excel to calculate the cosine of an angle, specifically regarding the interpretation of input values in radians versus degrees. The scope includes technical explanations and proposed solutions for handling trigonometric calculations in Excel.

Discussion Character

  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant, Tom, reports a discrepancy between the cosine value calculated by a calculator and Excel, suggesting that Excel interprets the input in radians rather than degrees.
  • Another participant suggests appending *(Pi()/180) to convert degrees to radians for the calculation.
  • A different participant proposes using the RADIANS() function to convert degrees to radians directly in the cosine function: COS(RADIANS(angle_in_degrees)).
  • It is noted that the input value of 9.863 is assumed to be in radians by Excel, which is clarified by another participant.
  • There is mention of a DEGREES() function for converting radians back to degrees when needed.

Areas of Agreement / Disagreement

Participants generally agree on the interpretation of the input value in radians and propose various methods to address the issue, but there is no consensus on a single preferred solution.

Contextual Notes

Participants discuss the limitations of Excel's handling of angle measurements and the implications for users with numerous calculations, but specific assumptions or dependencies on definitions are not fully explored.

tommy060289
Messages
20
Reaction score
0
Dear all,

I am currently using excel to work out some values for incident solar radiation but I am running into a rather frustrating problem when I try to do the following:

=COS(9.863)

my calculator tells me correctly this is 0.985.

however, when I put this in excel it decides it actually equals 0.905, which is obviously wrong.

I've gathered this is an issue with excel giving the answer in Rads rather than degrees but I can not figure out how you force excel to output the correct answer (in degrees) and since I have thousands of calculations it isn't feasible for me to alter every one manually.

Cheers,

Tom
 
Computer science news on Phys.org
No worries, figured I can get it to change by adding:

*(Pi()/180) on the end
 
You can also use the RADIANS() function: COS(RADIANS(angle_in_degrees)).

And if you ever need to go the other way, there's a DEGREES() function: DEGREES(ACOS(x)).
 
tommy060289 said:
I've gathered this is an issue with excel giving the answer in Rads rather than degrees but I can not figure out how you force excel to output the correct answer (in degrees) and since I have thousands of calculations it isn't feasible for me to alter every one manually.
Just to clarify, hopefully you realize the output result of =cos(9.863) is not in radians, it is the input number 9.863 that Excel assumes is in radians.

jtbell said:
You can also use the RADIANS() function: COS(RADIANS(angle_in_degrees)).

And if you ever need to go the other way, there's a DEGREES() function: DEGREES(ACOS(x)).
I didn't know that, thanks for the tip!
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
8K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
7
Views
3K
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
14
Views
5K
Replies
11
Views
29K