trigonometry


Arctan > 1 newbie question


It has been quite some time since I've had to compute the theta of an angle. But given a right angle:
|
|
b |
-----------------
a
I'm trying to compute theta (the slope of the angle). My understanding of trigonometry (as rusty as it is) is that theta = arctan(b/a). So if b = 50 and a = 1811. Then using the windows calculator, 50 / 1811 = 0.027609055770292655991165102153506. Therefore the arctan(b/a) = 1.5814806205083755492980816356377. If my math is correct, how do I translate this value into the slope of the angle? It should be around 30-40 degrees, right?
atan2(y, x)
will return you the angle in radians (and successfully cope with the cases where x and/or y are 0).
To convert to degrees apply the following formula:
double degrees = radians * (180 / PI)
Where PI is 3.141592... or math.pi in c#
If you use a C dialect then there a useful function for just this purpose
atan2(y, x);

Related Links

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]
Issues with bullet entry points for “shoulder mounted” guns

Categories

HOME
shell
assembly
c++11
phpmyadmin
formal-languages
3d
rsa
swt
camera
sitecore
grafana
alarm
parameters
vsm
p2p
sendgrid-api-v3
project
categorical-data
nancy
libusb
altera
screen-readers
gruntfile
modbus-tcp
job-scheduling
google-picker
google-container-registry
shortest-path
babel
ios10.2
aggregation
game-theory
pic32
android-sharedpreferences
android-maps
firebase-analytics
bringtofront
custom-controls
jbutton
memory-address
hard-drive
installscript
lubridate
reactivekit
tex
node-mssql
metaprogramming
urlsession
magento-1.9.3
subclipse
install.packages
show-hide
phpdbg
textsum
hammer.js
launchctl
manova
custom-font
wpas
er-diagram
meteor-packages
hadoop-2.7.2
latin
burrows-wheeler-transform
vorpal.js
appscale
ellucian-scribe
aspen
false-sharing
cycle2
httpruntime.cache
spring-retry
state-restoration
boomerang
linklabel
gocql
r-package
dllimport
roadkill-wiki
video-player
.bash-profile
evolus-pencil
android-broadcast
umlgraph
ssis-data-flow
sql-scripts
gii
verold
jquery-slider
dct
spring-remoting
radiant
extjs2
sbcl
xmltodict
hidapi
kogrid
wp7test
asplinkbutton
wimax
boost-signals
denied
promotion-code
fsevents
rmdir
uipagecontrol
cdonts
qglwidget
aspmenu
opml
nstokenfield
cfwindow
echo3
glui
appliance

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