第1题:
与y=(x>0?1:x<0?-1:0):的功能相同的if语句是( )
A.if(x>0)y=1; else if(x<0)y=-1; else y=0; else y=0;
B.if(x) if(x>0)y=1; else if(x<0)y=-1;
C.y=-1; if(x) if(x>0)y=1; else if(x==0)y=0; else y=-1;
D.y=0; if(x>=0) if(x>0)y=1; else y=-1:
第2题:
第3题:
第4题:
设随机变量X和Y相互独立,且X~N(0,1),Y~N(1,1),则()
第5题:
第6题:
1/5
1/7
-1/7
-1/5
第7题:
1
-1
1/7
-1/7
第8题:
x+y+1=0
x-y-1=0
x+y-1=0
x-y+1=0
第9题:
ex
-ex
e-x
-e-x
第10题:
第11题:
第12题:
-x-y=0
x-y-1=0
x-y=0
x+y=0
第13题:
第14题:
第15题:
以下不能实现符号函数y=sgn(x)的程序段是()。
第16题:
第17题:
1
2
3
4
第18题:
xy+sinx-siny
xy+sinx+siny
x/y+sinx-cosy
x/y+sinx+cosy
第19题:
if x>0 then y=1 else if x=0 then y=0 else y= -1
if x>0 then y=1 else if x<0 then y= -1 else y=0
if x>=0 then if x=0 then y=0 else y= -1 else y=1
if x<>0 then if x<0 then y= -1 else y= 1 else y=0
第20题:
第21题:
第22题:
2π
π
eπ/4
πeπ/4
第23题:
ln1
0
sin1
1
第24题:
0
1
2
e