题目内容
1.执行如图所示的程序框图,则输出S的结果是( )| A. | $\frac{\sqrt{3}}{2}$ | B. | $\sqrt{3}$ | C. | $\frac{1+\sqrt{3}}{2}$ | D. | $\frac{1-\sqrt{3}}{2}$ |
分析 根据执行循环的n值,可得算法的功能是求S的值,再根据正弦函数的周期性,即可求出S的值.
解答 解:由程序框图知:执行循环的条件是n<26,
算法的功能是求S=sin$\frac{π}{3}$+sin$\frac{2π}{3}$+sinπ+sin$\frac{4π}{3}$+sin$\frac{5π}{3}$+…+sin$\frac{25π}{3}$的值,
且sin$\frac{nπ}{3}$是以6为周期的数列;
所以输出的S=$\frac{\sqrt{3}}{2}$+$\frac{\sqrt{3}}{2}$+0-$\frac{\sqrt{3}}{2}$-$\frac{\sqrt{3}}{2}$+…+$\frac{\sqrt{3}}{2}$=$\frac{\sqrt{3}}{2}$.
故选:A.
点评 本题考查了当型循环结构的程序框图,根据框图的流程判断算法的功能是解题的关键.
练习册系列答案
相关题目
13.下列选项中小于tan$\frac{π}{6}$的是( )
| A. | sin$\frac{π}{4}$ | B. | cos$\frac{π}{3}$ | C. | sin$\frac{π}{2}$ | D. | cos$\frac{π}{6}$ |
9.若实数a,b∈{1,2},则在不等式x+y-3≥0表示的平面区域内的点P(a,b)共有( )
| A. | 1个 | B. | 2个 | C. | 3个 | D. | 4个 |
6.化简cos222.5°-sin222.5°的值为( )
| A. | $\frac{{\sqrt{3}}}{2}$ | B. | 1 | C. | -$\frac{{\sqrt{2}}}{2}$ | D. | $\frac{{\sqrt{2}}}{2}$ |
13.将函数h(x)=2sin(2x+$\frac{π}{4}$)的图象向右平移$\frac{π}{4}$个单位,再向上平移2个单位,得到函数f(x)的图象,则函数f(x)的图象( )
| A. | 关于直线x=0对称 | B. | 关于直线x=π对称 | C. | 关于点($\frac{π}{8}$,0)对称 | D. | 关于点($\frac{π}{8}$,2)对称 |
10.若0<α<$\frac{π}{2}$,cos($\frac{π}{3}$+α)=$\frac{1}{3}$,则cosα( )
| A. | $\frac{2\sqrt{2}+\sqrt{3}}{6}$ | B. | $\frac{2\sqrt{6}-1}{6}$ | C. | $\frac{2\sqrt{6}+1}{6}$ | D. | $\frac{2\sqrt{2}-\sqrt{3}}{6}$ |