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

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
Trigonometry - Find where two curves intersect
How to calculate point 'along' unit circle radian [closed]

Categories

HOME
xml
apache-jena
phpmyadmin
static
switch-statement
rds
web-hosting
ado.net
echo
angularfire2
odoo-8
nstableheaderview
accessibility
fabric.io
enthought
gson
android-securityexception
automatic-ref-counting
cumulocity
video-editing
foreign-keys
connector
charles
asp.net-core-webapi
event-store
qliksense
epsilon
expressionengine3
moses
angularjs-components
delimiter
angular-translate
nsurl
mockjax
jbutton
code-snippets
biztalk-rule-engine
slacktextviewcontroller
video-capture
raft
apic
git-rewrite-history
sessionstorage
railstutorial.org
verifiable-c
datacachefactory
tcc
xmldocument
show-hide
apache-spark-dataset
opennms
term
gitlist
yii2-api
java-6
quicktime
lsyncd
branch-prediction
rocks
visual-studio-2008-sp1
flex4.6
mta
beamer
model-associations
cfchart
cortex-m
spring-retry
video-player
coda
toolkit
atoi
uncompress
amiga
dronekit-android
keyup
teamcity-9.1
xmltype
mass-assignment
android-vibration
punycode
paw
trdion2011
personalization
renderer
file-not-found
extjs2
dsym
drupal-nodes
time.h
pdfviewer
vfs
saleslogix
paginator
usertype
apache-commons-dbutils
procedures
inline-formset
appledoc
blender-2.49
cfwindow
skype4java
mathematical-typesetting
image-capture

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