Given that
Σm = 1 to 44 cos mo
y = ---------------
Σm = 1 to 44 sin mo
Find the value of floor(100y)
pi = Atn(1) * 4
dr = pi / 180#
num = 0: den = 0
For m = 1 To 44
num = num + Cos(m * dr)
Next
For m = 1 To 44
den = den + Sin(m * dr)
Next
Text1.Text = Text1.Text & num / den & crlf
finds y ~= 2.41421356237309, which happens to be 1 + sqrt(2).
So floor(100*y) = 241.
|
Posted by Charlie
on 2014-12-17 13:44:55 |