MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x58u7b/howprogramminghaschanged/pgn8ktj/?context=3
r/ProgrammerHumor • u/shizzy0 • Oct 13 '26
108 comments sorted by
View all comments
Show parent comment
5
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.
Mat::pow
powf
1 u/KrzysziekZ Oct 14 '26 Is that because n is bounded?
1
Is that because n is bounded?
View all comments
Show parent comment
5
u/CAD1997 Oct 14 '26
Mat::powis O(log n)ish.powfis O(1) for any useful model; even a perfectly rounded result can be computed in a bounded maximum number of machine steps.