5
我试图使用numpy.logspace()
生成从1e-10
到1e-14
50个值。错误使用numpy.logspace():如何生成数字均匀隔开对数
http://docs.scipy.org/doc/numpy/reference/generated/numpy.logspace.html
import numpy as np
x = np.logspace(1e-10, 1e-14, num=50)
print x
我得到的输出是不正确的:
[ 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.
1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.
1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.]
我有什么其他选择?