कक्षा 6–8Computationनियोजित
Programming for mathematics
Writing short Python programs that use variables, loops, conditionals and functions to explore mathematics: generating sequences, testing conjectures on many cases, and representing numbers in binary.
math.comp.programming-intro
इस विषय का पाठ अभी लिखा नहीं गया है। नीचे दी गई रूपरेखा पाठ्यक्रम-मानचित्र का हिस्सा है और इसकी समीक्षा नहीं हुई है।
इस पर आधारित
9 अनिवार्य पूर्वापेक्षाएँ (बिल्कुल नीचे तक)
आप सीखेंगे
- Write programs with variables, loops, conditionals and functions to compute sums, tables and sequences.
- Use a program to test a conjecture on many cases, and explain why this is evidence but not proof.
- Convert between decimal and binary representations, by hand and in code.
परिभाषा
- A program variable names a stored value that can change while the program runs.
- A program function takes inputs (arguments) and returns an output, possibly with other effects.
- In base 2, the digits 0 and 1 count ones, twos, fours, eights and so on.
प्रमेय
- Every positive whole number has exactly one binary representation without leading zeros.
- Checking a statement for the first million cases is experimental evidence, not a proof.
- Floating-point numbers are approximations: in Python, 0.1 + 0.2 == 0.3 evaluates to False.
आम भ्रांतियाँ
- Reading '=' in a program (assignment) as mathematical equality.
- Believing a program that runs without errors must compute the right answer.
- Assuming computer arithmetic with decimals is exact.
आगे ले जाता है
वैकल्पिक खोजें
- Numerical analysis Floating-point rounding, visible in 0.1 + 0.2, is studied systematically in numerical analysis.
- Experimental mathematics: conjectures and counterexamples Computer experiments suggest conjectures and find counterexamples in research mathematics.
- ← Functions
अधिगम पथ
आगे पढ़ने के लिए
- Allen B. Downey, Think Python