已定义double类型的变量r和theta,分别表示图中圆半径和圆心角。下列表达式中可以求出弦长s的是( )。
double
r
theta
s
r * cos(theta)
r * cos(theta / 2) * 2
r * sin(theta)
r * sin(theta / 2) * 2