A unit of measurement for angles, which are two lines or rays diverging from a common point. Questions here regard angles measurements, arguments for trigonometric functions, geometry, etc.
Questions tagged [degrees]
264 questions
2
votes
1 answer
Is Scratch's (sin of (n)) function incorrect, or am I doing something wrong?
I found a double pendulum ODEs simulation on Desmos, credit to @AlexRLJones, and I am trying to recreate it entirely in Scratch.
While writing the code, I noticed that when I put sin(θ₁) with θ₁=50 on either Desmos or a calculator (on Google, my…

aedanp07
- 21
- 1
2
votes
1 answer
Using excel built-in functions with a variable
I am an excel noob trying to make a custom excel function that uses degrees while calculating sin of an angle.
Public Function SIND(number As Double)
Formula = "SIN(RADIANS(number))"
Formula = Replace(Formula, "number", number)
SIND =…

ertucode
- 560
- 2
- 13
2
votes
2 answers
Calculating angle when sine is known
How can I calculate the angle in degrees when Math.Sin is known? Asine will work? and multiply it by 180 and divide by pi?

redfrogsbinary
- 619
- 5
- 13
- 26
2
votes
1 answer
Actionscript3.0 - Why the value of Math.cos(35.26) is Minus?
trace(Math.cos(45));
//0.5253219888177297
trace(Math.cos(30));
//0.15425144988758405
trace(Math.cos(35.264));
//-0.7606511017750149
I'm confused. Do I need to lean Math at the Middle School?

webnoon
- 945
- 3
- 9
- 18
2
votes
2 answers
Calculate sine curve in C
I want to get a periodic value that moves between 0 and a specified height (in my case that's 40) from the sine curve.
But I am messing something up, because my value goes all the way to 79 instead of the expected 40. What am I doing wrong?
This is…

Kyu96
- 1,159
- 2
- 17
- 35
2
votes
1 answer
Rotating zombies to face player
I am trying to rotate a horde of zombies to face a player. I have been trying to figure it out myself for some time but I can't seem to figure it out.
I am using the following code currently to rotate zombies:
public void calculateAngle() {
…

Shane
- 25
- 4
2
votes
3 answers
Confused about degrees and OpenGL/GLUT camera movement/rotation
NOTICE: I have edited the question below which is more relevant to my real issue than the text right below, you can skip this if you but I'll leave it here for historic reasons.
To see if I get this right, a float in C is the same as a value in…

rfgamaral
- 16,546
- 57
- 163
- 275
2
votes
1 answer
Calculate degree of a subgraph using r igraph
I know the degree of my global graph, but now I need to find the degrees of nodes within a subgraph. So, John has 4 friends in his school, but three friends in his class. How do I instruct igraph to count those three friends in his class, but not…

NBK
- 887
- 9
- 20
2
votes
1 answer
How to compute the sum of degree of two vertexs in each edge in graphx
I have a graph like this:
val vertexArray = Array(
(1L, ("Alice", 28)),
(2L, ("Bob", 27)),
(3L, ("Charlie", 65)),
(4L, ("David", 42)),
(5L, ("Ed", 55)))
val edges = sc.parallelize(Array(
…

Bin Teng
- 23
- 4
2
votes
0 answers
C++ Intersection of range of degrees
Is there a known algorithm for finding if there exists an intersection between two ranges of degrees? It must be circular.
Ex. does 330 - 40 intersect with 20-50? (yes)
I know that, in general for a set of ranges, if the max of the mins is less…

Riptyde4
- 5,134
- 8
- 30
- 57
2
votes
2 answers
Calculating Outdegree and Indegree of Adjacency list
Question
Calculate time complexity in calculating Outdegree and Indegree of Adjacency list.
My Approach/Doubt
Let Adj[] be an array of size V where V=No. of vertices in a directed graph
for representing adjacency list.
I know that ,
Outdegree of…

laura
- 359
- 2
- 6
- 17
2
votes
1 answer
Calculating SD of compass directions using Circular
My goal is to calculate a mean and standard deviation for a series of compass degrees. Since I may cross the 360/ 0 mark, I can't use the a standard mean or sd calculation.
I've been using the circular packing in R, which seems to give me the…

Vinterwoo
- 3,843
- 6
- 36
- 55
2
votes
3 answers
Reshaping EPA wind speed & direction data with dcast in R
I am trying to convert long format wind data into wide format. Both wind speed and wind direction are listed within the Parameter.Name column. These values need to be cast by both Local.Site.Name, and Date.Local variables.
If there are multiple…

philiporlando
- 941
- 4
- 19
- 31
2
votes
3 answers
Move in degrees pygame
I am making a utility for myself to easily translate degrees to x and y cordinates in my games and I got stuck on a problem; trying to move the player in degrees across the screen. I found multiple formulas that didn't work and I need some help.…

jotjern
- 460
- 5
- 18
2
votes
1 answer
Degrees conversion isn't working with inverse trignometry
I'm creating a calculator strictly using JavaScript and I found myself with a problem while creating the inverse functions of the trigonometry stuff. Everything worked while using radians, but in degrees, I got the wrong answers.
I wish it was as…

Gnago
- 27
- 7