[Chennaipy] Query on numpy.logspace() in Python

Nithya Duraisamy nithyadurai87 at gmail.com
Tue Jul 6 02:18:06 EDT 2021


Hello all,

I am exploring logspace at numpy.

reading here
https://www.geeksforgeeks.org/numpy-logspace-python/


import numpy as geek
# base = 11
print("B\n", geek.logspace(2.0, 3.0, num=5, base = 11))

The above code gives below output

 [  121.           220.36039471   401.31159963   730.8527479   1331.        ]


Why results are not between 2 and 3 and above 100 ?

How to get these values manually using any calculator?

Please help to understand this.

Thanks.
Nithya


More information about the Chennaipy mailing list