兆(M)千(K)吉(G)在mathematica中怎么进行运算
mathematica吧
全部回复
仅看楼主
level 4
cfwengf
楼主
像1M这样的数据,如何让mma识别为1*10^6
2018年04月10日 13点04分
1
level 8
郁博士CasperYC
?Quantity
?Unit
2018年04月10日 19点04分
2
level 8
郁博士CasperYC
?UnitConvert
2018年04月10日 19点04分
3
level 8
郁博士CasperYC
UnitConvert[Quantity[1, "GB"], "MB"]
2018年04月10日 19点04分
4
bz201
不是1024M么
2018年04月11日 05点04分
郁博士CasperYC
@bz201
UnitConvert[Quantity[1, "GiB"], "MiB"]
2018年04月11日 15点04分
level 4
cfwengf
楼主
我最后直接用规则/.M->10^6
虽然感觉有点笨,但是实在搞不懂MMa中的单位运算
2018年04月11日 11点04分
5
郁博士CasperYC
UnitConvert[Quantity[1, "GiB"], "MiB"]
2018年04月11日 15点04分
level 8
郁博士CasperYC
UnitConvert[Quantity[1, "GiB"], "MiB"]
这个是"正确"的
2018年04月11日 15点04分
6
cfwengf
感谢
2018年04月12日 08点04分
郁博士CasperYC
@cfwengf
不客气
2018年04月14日 21点04分
1