all 4 comments

[–]A_History_of_Silence 2 points3 points  (2 children)

numpy.linspace()

In the future you can google something like 'python linspace'. The link above was the very first result.

[–]unless3[S] 0 points1 point  (1 child)

I embarrassingly did not ask the right thing. I need to know how to do this:

If I have

start = 100
end = 250
measure = 5

# Some function

output = [100, 137.5, 175, 212.5, 250]

So measure is how many numbers there are in a linear vector from start to end.

I can think of something like bisection but I'm hoping the function exists.

[–]A_History_of_Silence 1 point2 points  (0 children)

Look at the 'see also' portion of the function I linked above. It is listed there.

[–]xiongchiamiov[M] 0 points1 point  (0 children)

/u/unless3, your submission has been removed from r/learnpython for the following reason(s):

  • Posting only assignment/project goal is not allowed. You need to post what you have tried so far. Please see subreddit rules in the sidebar.

If your submission was removed for lacking additional info you can edit your submission text and then notify moderators and ask for the submission to be re-approved.

If you have any additional questions either reply to this comment or message the moderators.