Posts

Showing posts from December, 2020

PYTHON PROGRAMMING. PART II: PYTHON OBJECTS AND DATA STRUCTURE BASICS. UNIT 4: LIST

        PYTHON PROGRAMMING PART II : PYTHON OBJECTS AND DATA STRUCTURE BASICS UNIT 4: LIST I. Definition     Lists are constructed with brackets [] and commas separating every element in the list.     Assigning a list:               my_list = [1,2,3]               list2 = ['string', 1, 5.3]     len()  function tells how many items are in the sequence of the list.             print( len(my_list) )                    => 3 II. Indexing and slicing     Let:               my_list = ['one', 'two', 'three', 4, 5]             print( my_list[0] )                    => 'one'           ...

SINGLE VARIABLE CALCULUS. PART I: DIFFERENTIATION. PART A: DEFINITION AND BASIC RULES. UNIT 0: LIMITS REVIEW. PART 3: Limit of quotients

Image
    SINGLE VARIABLE CALCULUS PART I: DIFFERENTIATION PART A: DEFINITION AND BASIC RULES UNIT 0: LIMITS REVIEW PART 3: Limit of quotients Limit of quotients I. Limit Law for Division    Limits and division                                      Limit Law for Division         If  $$\lim↙{x→a}f(x) = L$$ and  $$\lim↙{x→a}g(x) = M$$ then:     If $M$ ≠$0$ , then $$\lim↙{x→a}{f(x)}/{g(x)} = L/M$$      If $M = 0$ but $L  ≠ 0$, then $$\lim↙{x→a}{f(x)}/{g(x)} = L/M$$ does not exist     If both $M = 0$ and $L = 0$ then $$\lim↙{x→a}{f(x)}/{g(x)} = L/M$$ might exist or not. More work is needed to determine whether the last type of limit exist, and what it is if it does exist. Using the Division Law Infinite Limits Infinite Limits 2

PYTHON PROGRAMMING. PART II: PYTHON OBJECTS AND DATA STRUCTURE BASICS. UNIT 3: STRING. PART II: STRING FORMATTING

Image
      PYTHON PROGRAMMING   PART II : PYTHON OBJECTS AND DATA STRUCTURE BASICS UNIT 3: STRING PART 2: STRING FORMATTING     In Python, we are having 3 methods to format strings, up to now. They are: - Formatting with placeholders - Formatting with the .format() method - Formatting with Formatted-string (f-string) ( introduced in Python 3.6) I. Formatting with placeholders:        - Use modulo % (string formatting operator)                    print( "Inject %s text here, and %s text here"%('some', 'more' )                         => Inject some text here, and more text here          - You can also pass variables .                   x = 'khiem'                     p...

ANNOUNCEMENT

 ANNOUNCEMENT Sorry guys, due to my final exam, I have not updated any new posts since last week. Tomorrow, I'll be posting new posts again! 

SINGLE VARIABLE CALCULUS. PART I: DIFFERENTIATION. PART A: DEFINITION AND BASIC RULES. UNIT 0: LIMITS REVIEW. PART 2: Continuity

Image
  SINGLE VARIABLE CALCULUS PART I: DIFFERENTIATION PART A: DEFINITION AND BASIC RULES UNIT 0: LIMITS REVIEW PART 2: Continuity I. Definition of continuity at a point     We say that a function $f$    is continuous at a point $x = a$ if     In particular, if $f(a)$ or the limit of $f(x)$ when $x$ approaches $a$ fails, the function is discontinuous at $x = a$.     We say that the function $f$ is right-continuous at point $x = a$ if     Familiarly, we have the left-continuous at point $x = a$ : II. Types of Discontinuities:     There are only two types:         1. If there are a left-hand limit and right-hand limit at point $x = a$, but they are not equal, then we say that there is a jump discontinuity at point $x = a$.         2. If the overall limit of $f(x)$ when x approaches a exists, but $f(a)$ does not equal to that limit, then there is a removable discontin...

PYTHON PROGRAMMING. PART II: PYTHON OBJECTS AND DATA STRUCTURE BASICS. UNIT 3: STRING. PART I: BASICS OF STRING

Image
                                               PYTHON PROGRAMMING   PART II : PYTHON OBJECTS AND DATA STRUCTURE BASICS UNIT 3: STRING PART I: BASICS OF STRING I. Definition     Strings are used to represent and manipulate a sequence of characters.     Example: "Khiem", "Hello World", "Yesterday, all my trouble seems so far away". II. String basics   1. String indexing and slicing       a) String indexing             We know that strings are sequences of characters so we can use indexes to call parts of the string!                  Let s = "John"                 We have: s[0] = "J"                      ...

SINGLE VARIABLE CALCULUS. PART I: DIFFERENTIATION. PART A: DEFINITION AND BASIC RULES. UNIT 0: LIMITS REVIEW. PART 1: Introduction to limits

Image
SINGLE VARIABLE CALCULUS PART I: DIFFERENTIATION PART A: DEFINITION AND BASIC RULES PART 1: INTRODUCTION TO LIMITS UNIT 0: LIMITS REVIEW I. Definition of left-hand and right-hand side limits                                   Suppose $f(x)$ gets really close to $R$ for values of $x$ that get really close to (but are not equal to) a from the right. Then we say $R$ is the right-hand limit of the function $f(x)$ as x approaches a from the right.           We write:             or Similarly, with $L$ on the left-hand side, we have the left-hand side limit. II. Possible limit behaviors      There are many possible limits to behaviors.           · The right-hand and left-hand limits may both exist and be equal.           · ...

PYTHON PROGRAMMING PART II: PYTHON OBJECTS AND DATA STRUCTURE BASICS UNIT 2: NUMBERS

PYTHON PROGRAMMING   PART II: PYTHON OBJECTS AND DATA STRUCTURE BASICS UNIT 2: NUMBERS I. Types of numbers in Python     Python has plenty of types of numbers, and in this post, we will only mention about two common types: integer and floating-point numbers .     What are integers? Integers are just whole numbers . For example 2,-5,...     Floating point numbers are numbers with a decimal point or use an exponential to express. Some circumstances are 3.5, 7.8939, -4.37, 6E4  II. Basic Arithmetics     You have already known about all the basic arithmetic, but let me remind you about this knowledge.     Addition:          print( 5+6 )           ->11     Subtraction:          print( 4.7-2.1 )         -> 2.6     Multiplication:          print( 3*5 )      ...

PYTHON PROGRAMMING PART II: PYTHON OBJECTS AND DATA STRUCTURE BASICS UNIT 1: INTRODUCTION TO PYTHON DATA TYPES

Image
  PYTHON PROGRAMMING PART II: PYTHON OBJECTS AND DATA STRUCTURE BASICS UNIT 1: INTRODUCTION TO PYTHON DATA TYPES      This post should help you memorize all of Python's Data Types. Remember, there are some of Python's unique data types.     T his table should help you:     Maybe there are some new types if you are newly movers from other languages. But do not worry, we are going to discuss these types in later posts.

PART I. PYTHON SET UP

Image
PYTHON PROGRAMMING   PART I: PYTHON SET UP I. Python downloading and installing.     Python is a programming language that is being used in many aspects of programming. These aspects are Web Applications, Software Developing, and especially Artificial Intelligent and Data Science.     Well-known for its readability and simple syntax, Python is always a beginner's choice as it is easy to learn.     You may download the newest version of Python on its website:  https://www.python.org     To download Python, you should click on the Downloads tab and "Download Python" afterward.     After downloading the software, install it on your computer, just follow all the steps. II. Python IDEs     Congratulations! You have just installed Python, one of the most used programming languages. Now, I would like to discuss IDEs, which are Integrated Development Environment, or you might start deeper research  here .     ...

Introduction to Single Variable Calculus

 This is the Syllabus of Single Variable Calculus. Overall, this blog would improve your Calculus knowledge. (Notably, this blog is based on MIT 18.01, all posts are written by the author - khiemtonthat)  I. Differentiation     0. Limits Review         P1: Introduction to Limits         P2: Continuity         P3: Limit of quotients      1.Definition and Basic Rules     2. Implicit Differentiation and Inverse Function Differentiation     3. Applications of Differentiation.               a) Approximation and Curve Sketching               b) Optimization, Related Rates and Newton's Method               c) Mean Value Theorem, Antiderivative and Differential Equations   II. Integration     1. Definition of Definite Integral and Fir...