如何用Python3的for循环生成5阶Hibert矩阵?
python3实现:
nums=[1,2,3,4,5]
for i in nums:
for j in nums:
hilbert=round(1/(i+j-1),5)
if j==5:
print(hilbert,end="\n")
else:
print(hilbert,end=" ")
|
楼主: 我是小趴菜
|
445
1
[数据挖掘工具] 如何用Python3的for循环生成5阶Hibert矩阵? |
|
教授 35%
-
|
| ||
|
|
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


