dharmatech / Symbolism

Computer Algebra and Symbolic Computation in C#
220 stars 31 forks source link

Potential typo in Cos #8

Open gregsdennis opened 8 years ago

gregsdennis commented 8 years ago

In Cos.CosProc() should

if (n == 2)
{
    if (Mod(k, 2) == 1) return 0;
}

be

if (n == 2)
{
    if (Mod(k, 4) == 1) return 0;
}

?

This would match the pattern of modding by n*2 and the Sin.SinProc() method.

gruckion commented 5 years ago

I will take a look at this soon