Header Image
Creative Commons image courtesy of Flickr user StormPetrel1-
Recent Posts
Recent Comments
- In the Spotlight: MAT2540 – Discrete Structures and Algorithms II – The Open Road on Links
- OpenLab Workshop for Opening Gateways Fellows | 2018-2019 Opening Gateways Faculty Seminar on Final Exam Review
- Eric on Eric’s Final Review
- Kate Poirier on Hints/reminders from today’s class
- Kate Poirier on Final Exam Review
Archives
Categories
Meta
Test_1_review_Javier_Joya
This entry was posted in Test #1 Review. Bookmark the permalink.
Hi Javier. It looks like you and Benjamin chose the same question, so you can take a look at his post too. I think you’ve got some inequalities going in the wrong direction. For example, you have “if then ” but probably you only want to reassign smll when your is less than it.
I’d also switch from non-strict inequalities ( and ) to non-strict ones ( and ). This might not make a difference here, but the strict inequalities work to solve this problem, and are less likely to cause confusion. (Try to save the non-strict ones for when you really need them.)
Finally, I initially missed your assignment convention but I'm glad you made it explicit. On the test, PLEASE use for assignment and for equality.
I see what you are saying about my inequalities Professor…horrible habit since I am also doing the mistake in my Real Analysis course. Hence the > and < are stronger statements.