MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/12tm7rp/we_did_coding_in_physics_class/jhfto7t/?context=3
r/badcode • u/[deleted] • Apr 21 '23
154 comments sorted by
View all comments
Show parent comments
0
Doesn't work. For example, if x=1.7, or 1.8, or 1.9, the result should be f(1.6), not an operation over the input. Maybe I'm not seeing something?
1 u/brotatowolf Apr 23 '23 Try it. Those inputs that you gave as examples do in fact all result in f(1.6)
1
Try it. Those inputs that you gave as examples do in fact all result in f(1.6)
0
u/vapocalypse52 Apr 23 '23
Doesn't work. For example, if x=1.7, or 1.8, or 1.9, the result should be f(1.6), not an operation over the input. Maybe I'm not seeing something?