// calc sine of angle theta, expressed in radians
double
s
=
Math
.
sin
(
theta
)
;