Thursday, September 10, 2020

Procedure to create an array using logspace function in python

 Procedure to create an array using logspace function in python


 

  Procedure to create an array using

        logspace function in python

============================================================

 

The logspace() function is somewhat similar to that

of a linspace() function .The linspace function creates

an array of evenly spaced numerical points on a linear

scale of numbers . Similarly, a logspace function can

be used to create an array of evenly spaced points but

on a logarithmic scale . Below is the expression for

usage of the logspace() function :

 

logspace(start,stop,0)

 

The logspace() function starts at a value which is 10 to

the power of 'start' and it ends at a value which is 10 to

the power of 'stop' . If 'n' is not specified , then its value

is taken by default as 50.

 

 

 


No comments:

Post a Comment

Durga Puja in Odisha

 Durga Puja in Odisha