cosine

Interpolate x, y, z coordinates on a sphere using points from two spin vectors?

I want to plot 3D points in real time that lie upon the surface of a unit sphere (r = 1). There are two spin vectors at work here. One vector rotates around the Y axis, it's X and Z values are calculated using the cos() and sin() of a circle that lies completely on the X/Z plane with all Y values being equal to 0. The other rotates ...

using cosine and sin to find missing angles

how can i use cosine and sine in my iphone application to find the missing value of angles? if i have a float that contains a number, how can i get the cosine of that angle. i used this example however it gave me errors double x1float = (cos(pfloat)); ...

Assistance with Lua Cosine, wrong results returned

Ok, first up, this is NOT for a class, test, or other student type activity. I'm a scripter for a game, and am trying to implement the math library for all to use, and unfortunately, all I have available to me is very basic lua. The implemented version cannot be changed, and does not include any libraries. For those wondering, its for ...

n-gram sentence similarity with cosine similarity measurement

Hi all, I have been working on a project about sentence similarity. I know it has been asked many times in SO, but I just want to know if my problem can be accomplished by the method I use by the way that I am doing it, or I should change my approach to the problem. Roughly speaking, the system is supposed to split all sentences of an ar...