Top "Trigonometry" questions

Trigonometry is a branch of mathematics that studies triangles and the relationships between their sides and the angles between sides

Why can cosine similarity between two vectors be negative?

I have 2 vectors with 11 dimentions. a <- c(-0.012813841, -0.024518383, -0.002765056, 0.079496744, 0.063928973, 0.476156960, 0.122111977, 0.322930189, 0.400701256, 0.454048860, 0.525526219) b <- c(0.64175768, 0.54625694, 0.40728261, 0.24819750, 0.09406221, 0.16681692, -0.04211932, -0.07130129, -0.08182200, -0.08266852, …

r similarity negative-number trigonometry
In C++ finding sinx value with Taylor's Series

I am trying to write a block of codes in C++ that calculates sinX value with Taylor's series. #include <…

c++ trigonometry taylor-series
Calculating degrees between 2 points with inverse Y axis

I'm creating a simple 2D game in javascript/canvas. I need to figure out the angle of a certain object …

javascript math trigonometry degrees
Rotate normal vector onto axis plane

I have a set of data points in 3D space which apparently all fall onto a specific plane. I use …

vector geometry rotation trigonometry
Calculating if an angle is between two angles

So I am making a little game where I am checking if a character can "see" another where character A …

math trigonometry
How do I generate a sine wave using Python?

I'm trying to generate a sine wave of a given frequency for a given duration and then write it into …

python numpy scipy waveform trigonometry
Calculating the Viewing Frustum in a 3D Space

I have drawn diagram after diagram of how to calculate the bounding points of the viewing frustum in a three-dimensional …

3d geometry trigonometry lwjgl frustum
Convert lat/lon to pixel coordinate?

I'm trying to convert a lat/lon pair to a pixel coordinate. I have found this mercator projection but I …

javascript geometry trigonometry projection
Cosine Similarity

I calculated tf/idf values of two documents. The following are the tf/idf values: 1.txt 0.0 0.5 2.txt 0.0 0.5 The documents are …

java similarity trigonometry tf-idf dot-product
Why is sin(180) not zero when using python and numpy?

Does anyone know why the below doesn't equal 0? import numpy as np np.sin(np.radians(180)) or: np.sin(np.…

python numpy trigonometry