sine

Realistic page turn speed

I have written some page turning software simulating a magazine. Currently the speed of the page turning is linear, and I want to make it more realistic with acceleration and deceleration. At the start of the animation it should be slow, half way through it should have reached max speed, then it returns to a slow speed by the end of th...

How to use a Sine / Cosine wave to return an oscillating number

I'm new to Java programming, I am programming Java 1.6 with Android. I have a simple function that makes a number go up and down between 0 and 200. I would like to put this into a Sine function but keep getting errors with what I've been trying. I want my program to update an int (Number1) via a sine wave y axis. Any ideas change the...

MDX Sine Function

Can I use the sine function within MDX? I would like to know the sine of a measure. ...

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 ...

__CIasin and Is Arcsine much slower than sine in .NET?

I've been running som eprofile tests of a slow area of code. This is with Visual Studio 2008 and .NET 2 (fully patched). About 32% of my computation is used by the Haversine formula. This requires two sines, two cosines, a square root, and an arc sine - all using the standard .NET Math library (ie. Math.Sin, Math.Asin, Math.Sqrt). I've b...