""" for floating point numbers use linspace and logspace from numpy!"""
import numpy as np
r5 = np.linspace(0,2,9)
print(r5)
output:
[0. 0.25 0.5 0.75 1. 1.25 1.5 1.75 2. ]
The syntax for linspace is
linspace ( <startvalue>, <stopvalue>, <number_of_values> )
import numpy as np
r5 = np.linspace(0,2,9)
print(r5)
output:
[0. 0.25 0.5 0.75 1. 1.25 1.5 1.75 2. ]
The syntax for linspace is
linspace ( <startvalue>, <stopvalue>, <number_of_values> )
No comments:
Post a Comment