tic toc in subfunctions
0 个评论
采纳的回答
2 个评论
Hold two pillows, one in each hand, at the same height, and release the two of them simultaneously. Which one hit the floor first? If you repeat again, does the same one hit the floor first? If you try a few more times? Which of the two pillows falls faster? Now switch hands and try again; does the answer stay the same?
Were you even able to tell the difference in falling speed? If not then does that mean there is no difference in falling speed, or does it just mean that you were not equipped to measure the difference?
If the same pillow did not always hit the floor first, does that mean that there is a difference in falling speed? Or does it mean that your mental control over releasing objects with both hands is not precise?
If you are having trouble telling which pillow falls faster, does that mean there is no difference in falling speed? After all, didn't someone prove that all objects fall at the same speed? No... the "same speed" applies only in vacuum where there is no air resistance, and you probably didn't hold the pillows exactly the same way each time, and there were probably small breezes... and maybe one of the pillows is more aerodynamic but you did not allow them to fall long enough to be able to tell the difference.
Now if you want to make this experiment more relevant to what happens on a computer, add to this mix a toddler who is wandering around near you, grabbing things and looking like they might put them in their mouth, at risk of knocking things over, and you have to mind the toddler while you are doing the experiments. Oh and sometimes you catch an odor and need to interrupt what you are doing while the pillows are falling to check the toddler's diaper.
You are using a general purpose computer, not a specialized device configured to only run your two routines. Sometimes you just can't tell whether one thing is faster than another, not without a lot of effort to build precise repeatable measurements. And that can mean that the two are the same speed but your measuring system has jitter (inconsistencies), or it can mean that the two are not the same speed but your measuring system is not fast enough to tell them apart.
更多回答(0 个)
另请参阅
类别
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!