python - logarithmic spaced values below 1 -


I 0.001 - 1000 (x axis) would like to plot values, logarithmic scale on the border; When I try:

  np x = np.logspace (0.001, import as 1000, 11)  

I have under 1 Can not get value; Is there a way I'm down to 1 and create logarithmic differential values ​​(up to 0.001)

The upper and lower boundaries should be passed in the form of exponents, see. Let's say that you are working in base 10, in the form of a limit of log10 (0.001) == -3 and log10 (1000) == 3 Use:

np.logspace (-3, 3, 11) import numerically

Results: < / p>

  [1.00000000e- 03 3.98107171e-03 1.58489319e-02 6.30957344e-02 2.51188643e-01 1.00000000e + 00 3.98107171e + 00 1.5848 9 319e + 01 6.30957344e + 01 2.51188643e + 02 1.00000000 E + 03]  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -