trigonometry


2 Different Radians constant calcuations whats the difference?


Most commonly I see in programs that convert radians to degrees and degrees to radians for trigonometry people always use two different ways to get the radian constant.
double PI = 3.14159265358979;
double Radians = (2 * PI) / 360;
Most commonly I see the one shown below:
double Radians = PI / 180;
From my understanding they both seem to generate the same value, but it seems that the one with 360 looks better. After all it's the angle for a full circle and the other one uses the 180 which is half the circle, also I always learned that PI is for calculating distances in circles so multiplying it by 2 makes no sense to me.
Only thing I can understand from this is that it's some kind of scaling going on here to generate same results.
But shouldn't they both give a little difference anyway?
Since PI is a irrational number, meaning the 180 variant should be less precise?
Yeah my math logic are not good sorry about that.
I think it's just preferential. The first way more closely maps to what you might have learned in school algebra ("there are 2*PI radians in a circle") - it makes explicit what the calculation is. The 2nd way is a reduction of the first. On a modern compiler, both should be equally efficient (though I'd use floating point constants instead of ints). Bottom line: no important difference.

Related Links

Find a coordinate along a path
Angle calculation resulting in strange behavior
Shift angle orientation using atan2
estimate angle between two lines y = 1000x and y = 999x
Need help revising a simple formula to make it universal
SWIFT trig functions
Simplifying atan(tan(a+b))
2 Different Radians constant calcuations whats the difference?
Trigonometry & Sunset
Calculating collisions with Radians incrementing
How do arbitrary-precision libraries like mpmath evaluate simple trigonometric functions?
How can I calculate the angle
Finding Shortest Distance Between Two Parallel Lines, With Arbitrary Point [closed]
how to convert depth in Z-cordinate
How can I simplify this expression with trigonometric in Maple?
Require trigonometry assistance with ship/wave movement

Categories

HOME
windows
apache-jena
switch-statement
gembox-spreadsheet
babeljs
jetty
jax-ws
webix
modal-dialog
extjs4.2
jxl
ipmitool
rtf
code-generation
onedrive-api
zerobrane
3nf
libusb
internationalization
alpacajs
vuejs
jersey-1.0
poedit
ios10.2
perlbrew
data.stackexchange.com
android-sharedpreferences
openmdao
jaws
magento-1.8
dotspatial
postback
catch-unit-test
fiware-cygnus
navigator
cin
p4merge
spring-mvc-test
ogc
apollostack
drupal-theming
magento-2.0.7
fclose
netbeans6.8
bluez
posixct
payara-micro
avx
quicktime
gpg-signature
sandcastle
stripe-connect
latin
dotnetnuke-7
mta
ng-grid
installshield-2010
php-socket
project-organization
turbo-prolog
highland.js
fuelcms
evolus-pencil
zscript
dot.js
mmwormhole
cryptographichashfunction
ejb-2.x
spy++
encryption-asymmetric
jqmodal
parallel-testing
alternate
mbunit
gpars
ui-select2
time.h
dolby-audio-api
jquery-1.9
pagedown
http-status-code-410
resource-management
robotlegs
nokia-s40
sentestingkit
qtconcurrent
usertype
lr
entitydatasource
jqote
w3c-geolocation
xui
quotation-marks
svk
uideviceorientation
non-clustered-index
murmurhash
web-application-project
dsoframer
ifilter
blind

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App