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

Counting trig ops as measure() function to fu() in sympy
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?

Categories

HOME
httparty
fabricjs
design-patterns
deep-learning
linkedin
wakanda
3d
themes
jsf-2.2
big-o
nested-if
regular-language
maxscript
android-json
angularfire2
recordrtc
computer-science
p2p
project
google-schemas
reactive-programming
alamofire
onedrive-api
shared-libraries
parameter-passing
xmonad
breadth-first-search
googlebot
poedit
gulp-watch
ios10.2
has-and-belongs-to-many
underscore.js
linked-data
firebase-analytics
intersystems-cache
gp
git-squash
laravel-eloquent
mailkit
dynamic-jasper
getpixel
fossil
sim-toolkit
alphabetical
reactivekit
tex
loading
c9.io
levenshtein-distance
facebook-pixel
bluez
x-ray
appdomain
vibrate
hadoop-2.7.2
myspace
signalr.client
rspec2
firebase-security
jclouds
shopping
halcon
mobiledoc-kit
computer-architecture
poppler
dnssec
cwrsync
ms-access-2000
bufferedinputstream
j-security-check
fits
dot.js
browserify-shim
crowd
structuremap3
entry-point
raygun
lambda-architecture
ios8-extension
artemis
sphinxql
breakout
beaker-testing
nebula
composite-component
android-sdk-2.3
device-width
correlated-subquery
database-create
catransform3d
http-daemon
maven-1
interprocess
visualj#
firefox-3

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