Re: sine and modulus ?



quasi :

On Sun, 19 Oct 2008 15:54:30 EDT, amy666
<tommy1729@xxxxxxxxxxx>
wrote:

quasi wrote :

On Sun, 19 Oct 2008 07:17:44 EDT, amy666
<tommy1729@xxxxxxxxxxx>
wrote:

im thinking about a sine defined for modulus
algebra.

Sounds like fun.

sin(a) mod p = b mod p

cos(a) mod p = c mod p

b^2 + c^2 = 1 mod p

where the sine and cosine can be computed by
their
taylor series expanded at 0 and mod p.

But regardless of the modulus, the coefficients of
the
Taylor series are eventually all undefined
(division by 0).

huh ?

mod p is chosen such that all elements have
multiplicative inverses ...

All _nonzero_ elements have multiplicative inverses.

What is the Taylor series for sin(x)? (over the
reals)

x - x^3/3! + x^5/5! - ...

computing divisions and powers is no problem in modulus.



Now try it (mod 2). Next try (mod 3).

Do you see a problem?

i havent tried anything but there are only a few possible problems :

1) convergeance problems

even the lim of the average might not converge

2) the taylor series might be considered not to be a sine at all since :

2a) sin^2 + cos^2 =/= 1

2b) sin is not periodic

2c) sin does not satisfy its addition formula's , multiplication formula's , ...

2d) the related addition formula's cannot be computed if sqrt(1-x^2) cant be computed ...

and the alike ...


i dont think a sine and cosine exists that get satisfies all the conditions ...

we probably will have to choose some ...

most logical choices - seem to me - :

1) sine and cosine = its taylor series

or

2) sine and cosine = satisfies addition formula

( i believe it follows from both that sin^2 + cos^2 = 1 )


but im also intrested in what others ( like quasi ) think of it ...


quasi

regards

tommy1729
.



Relevant Pages

  • Re: Sine code for ANSI C
    ... >> Now try computing the exponential of the next larger representable ... definition of where "this" cuts in for sine. ... > who would complain, and what would be the particular application ... > relative error, ...
    (comp.lang.c)
  • Re: Fourier Series Tutorial
    ... parts being sine and cosine waves of all frequencies that ... you mention that it is a tool to go from thinking of a wave ... root of the sum of the squares of its X and Y components. ... cosine components. ...
    (sci.electronics.design)
  • Re: Need source for math posters and such?
    ... Taking Trig and and Calculus next fall. ... I've found the unit circle interpretation to be ... functions (sine and cosine). ...
    (sci.math)
  • Re: Einstein swinging from a rope
    ... Without being technical as you ask, the rate of change of sine is cosine. ... electrons etc., renders them space-time phenomena. ... is also made of what we are perceiving. ...
    (sci.physics.relativity)
  • Re: Fourier Series Tutorial
    ... parts being sine and cosine waves of all frequencies that ... you mention that it is a tool to go from thinking of a wave ... root of the sum of the squares of its X and Y components. ... cosine components. ...
    (sci.electronics.design)