找回密码
 立即注册

QQ登录

只需一步,快速开始

gaopu

  • 25

    金币

  • 主题

  • 帖子

最新发帖
Leo
超级版主   /  发表于:2014-3-24 09:05:00
31#
回楼上俩帖子
你加或者不加界面,或者只有一个很原始的控制台界面,再或者图形界面布局丑到不忍直视,都不会影响比赛评分。
题目中暗表,只是希望提供一个界面,方便评判。如果真的是没有时间整这个事情,没有,也完全不是问题。
回复 使用道具 举报
daodao
论坛元老   /  发表于:2014-3-24 09:22:00
32#
回复 31楼Leo的帖子

Thanks
回复 使用道具 举报
azurefang
新手上路   /  发表于:2014-3-24 16:13:00
33#
回复 19楼Leo的帖子

In [190]: import cmath

In [191]: cmath.
cmath.acos      cmath.asinh     cmath.cos       cmath.exp       cmath.isnan     cmath.phase     cmath.rect      cmath.sqrt      
cmath.acosh     cmath.atan      cmath.cosh      cmath.isfinite  cmath.log       cmath.pi        cmath.sin       cmath.tan      
cmath.asin      cmath.atanh     cmath.e         cmath.isinf     cmath.log10     cmath.polar     cmath.sinh      cmath.tanh
回复 使用道具 举报
Leo
超级版主   /  发表于:2014-3-24 17:14:00
34#
回复 33楼azurefang的帖子

What's up?
cmath貌似属于Python标准模块的一部分。随意。
回复 使用道具 举报
changkunpeng
注册会员   /  发表于:2014-3-24 21:44:00
35#
回复 34楼Leo的帖子

说道第三方库,请问下python 的Decimal模块能用不?
因为自带的float会发生0.1+0.1+0.1-0.3!=0的bug。

Decimal模块是python的标准模块,但是使用之后精度问题什么的都能方便解决了。
回复 使用道具 举报
Leo
超级版主   /  发表于:2014-3-25 00:21:00
36#
回复 35楼changkunpeng的帖子

标准模块应该可以。话说Python中Decimal模块提供的运算精度能达到多少?求科普。
回复 使用道具 举报
changkunpeng
注册会员   /  发表于:2014-3-25 09:08:00
37#
回复 36楼Leo的帖子

这是document上的原话:
Unlike hardware based binary floating point, the decimal module has a user alterable precision (defaulting to 28 places) which can be as large as needed for a given problem。
它是使用十进制来存储、计算的,所以计算速度是folat的千分之一到万分之一之间,计算速度有点慢。。
回复 使用道具 举报
Leo
超级版主   /  发表于:2014-3-25 09:30:00
38#
回复 37楼changkunpeng的帖子

那就是和C#的Decimal类型类似,使用了四个int值存储数值,保留个别位表示符号和小数点位置。
最高精度可以达到29位。
回复 使用道具 举报
445241843
新手上路   /  发表于:2014-3-29 17:24:00
39#
那个估计方差  和总体方差的定义是啥  咋百度都没有定义
回复 使用道具 举报
Leo
超级版主   /  发表于:2014-3-31 09:27:00
40#
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部