r/ProgrammerHumor • • Oct 13 '26

Meme howProgrammingHasChanged

Post image
678 Upvotes

108 comments sorted by

View all comments

Show parent comment

5

u/CAD1997 Oct 14 '26

Mat::pow is O(log n)ish. powf is O(1) for any useful model; even a perfectly rounded result can be computed in a bounded maximum number of machine steps.

1

u/KrzysziekZ Oct 14 '26

Is that because n is bounded?