I'm having some issues with the cos and sin functions. The expected result is for both to move from zero to one as the angel moves around the circle. The 45 degree (1/4pi radians) point in each quadrant should be .707

So the expected result is to go 1(0)-> .707 -> 0(1). I see this for radians. Degrees seems to be borked.

**Code:**

Cosine Check

0

Degrees 0.0 sin 1.0

Radians 0.00pi sin_r 1.0

1

Degrees 45.0 sin -0.5918127259718502

Radians 0.25pi sin_r 0.7071067811865476

2

Degrees 90.0 sin -0.2995153947555356

Radians 0.50pi sin_r 6.123233995736766E-17

3

Degrees 135.0 sin 0.9463267704531728

Radians 0.75pi sin_r -0.7071067811865475

4

Degrees 180.0 sin -0.8205810566088714

Radians 1.00pi sin_r -1.0

5

Degrees 225.0 sin 0.02493385353255689

Radians 1.25pi sin_r -0.7071067811865477

6

Degrees 270.0 sin 0.7910687129526641

Radians 1.50pi sin_r -1.8369701987210297E-16

7

Degrees 315.0 sin -0.9612629164203338

Radians 1.75pi sin_r 0.7071067811865474

Sine Check

0

Degrees 0.0 sin 0.0

Radians 0.00pi sin_r 0.0

1

Degrees 45.0 sin 0.8060754911159176

Radians 0.25pi sin_r 0.7071067811865475

2

Degrees 90.0 sin -0.9540914674728181

Radians 0.50pi sin_r 1.0

3

Degrees 135.0 sin 0.3232114532680857

Radians 0.75pi sin_r 0.7071067811865476

4

Degrees 180.0 sin 0.5715301650260188

Radians 1.00pi sin_r 1.2246467991473532E-16

5

Degrees 225.0 sin -0.9996891031455815

Radians 1.25pi sin_r -0.7071067811865475

6

Degrees 270.0 sin 0.6117273014893283

Radians 1.50pi sin_r -1.0

7

Degrees 315.0 sin 0.27563309945482667

Radians 1.75pi sin_r -0.7071067811865477

Macros

**Code:**

Cosine Check<br>

[h:d=0.0]

[h:di=45.0]

[h:r=0.0]

[h:ri=0.25]

[r,for(i, 0, 8,1,"<br>"), code:{

[i]<br>

Degrees [i*di] sin [da=math.cos(di*i)]<br>

Radians [i*ri]pi sin_r [math.cos_r(ri*i*math.pi())]<br>

}]

**Code:**

Sine Check<br>

[h:d=0.0]

[h:di=45.0]

[h:r=0.0]

[h:ri=0.25]

[r,for(i, 0, 8,1,"<br>"), code:{

[i]<br>

Degrees [i*di] sin [da=math.sin(di*i)]<br>

Radians [i*ri]pi sin_r [math.sin_r(ri*i*math.pi())]<br>

}]