(start, stop, num, decimals=18)
return [float(("{:." + str(decimals) + "f}").format(start))]
Returns a list of evenly spaced numbers over a specified interval.

    Inspired from Numpy's linspace function: https://github.com/numpy/numpy/blob/master/numpy/core/function_base.py

    :param start: starting value
    :type start: float
    :param stop: end value
    :type stop: float
    :param num: number of samples to generate
    :type num: int
    :param decimals: number of significands
    :type decimals: int
    :return: a list of equally spaced numbers
    :rtype: list
Returns a list of evenly spaced numbers over a specified interval.
Returns a list of evenly spaced numbers over a specified interval .
def linspace(start, stop, num, decimals=18):
    """ Returns a list of evenly spaced numbers over a specified interval.

    Inspired from Numpy's linspace function: https://github.com/numpy/numpy/blob/master/numpy/core/function_base.py

    :param start: starting value
    :type start: float
    :param stop: end value
    :type stop: float
    :param num: number of samples to generate
    :type num: int
    :param decimals: number of significands
    :type decimals: int
    :return: a list of equally spaced numbers
    :rtype: list
    """
    start = float(start)
    stop = float(stop)
    if abs(start - stop) <= 10e-8:
        return [start]
    num = int(num)
    if num > 1:
        div = num - 1
        delta = stop - start
        return [float(("{:." + str(decimals) + "f}").format((start + (float(x) * float(delta) / float(div)))))
                for x in range(num)]
    return [float(("{:." + str(decimals) + "f}").format(start))]
def linspace ( start , stop , num , decimals = 18 ) : start = float ( start ) stop = float ( stop ) if abs ( start - stop ) <= 10e-8 : return [ start ] num = int ( num ) if num > 1 : div = num - 1 delta = stop - start return [ float ( ( "{:." + str ( decimals ) + "f}" ) . format ( ( start + ( float ( x ) * float ( delta ) / float ( div ) ) ) ) ) for x in range ( num ) ] return [ float ( ( "{:." + str ( decimals ) + "f}" ) . format ( start ) ) ]