Silly question, I guess… So:
linspace() has been replaced by
range(). But what about
I tried to do it manually as, e.g.,
10.^(range(-2,stop=2,length=50)), but that doesn’t work.
- Is there a built-in new function for
- What is the way to use dot-notation and raise a scalar to an array?
I can do it as:
v = range(-2,stop=2,length=50) [10^i for i in v]
but that seems kind of clumsy??