2021-06-15

This is a sample Python script.

Press Shift+F10 to execute it or replace it with your code.

Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.

def print_hi(name):
# Use a breakpoint in the code line below to debug your script.
print(f’Hi, {name}’) # Press Ctrl+F8 to toggle the breakpoint.

Press the green button in the gutter to run the script.

if name == ‘main’:
print_hi(‘PyCharm’)

See PyCharm help at https://www.jetbrains.com/help/pycharm/

#球磨个数在标准正态分布里的z值(mean为0,standard deviation为1)
from scipy.stats import norm
from pylab import plot,fill_between,show,text,netrc
from numpy array, linspace, zeros#准备好你要用的东西
alpha=array([-1,1,-2,2,-3,3])
x=norm.cdf(alpha,0,1)#该点左边在正态分布曲线下的面积
print(‘z分别为’,x)
y=linspace(-3,3,100); z=norm.cdf(y,0,1)
rc(‘font’,size=16); rc(‘text’,usetex=True)
plot(y,z)
y2=linspace(x[-1],4,100); Z2=norm.cdf(y2);
y1=[0]*len[x2]
fill_between(y2,y1,z2,color=‘r’)#补齐点

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值