math_to_code
Simple math codes that were written in Python.
The reason why these codes were written in Python is that the Python codes are very similar to the pseudo codes, so they are really easy to read.
Thanks to Google translate
, you can still read and understand the contents even if you are not that familiar with the English language, I guess.
Follow the codes and explanations step by step, and you will understand the basics of math.
If you have any questions about the Math concept or codes below, contact me via .
This repository will deal with:
- Sets and propositions (집합과 명제 in Korean)
- Vectors and matrices (벡터와 행렬 in Korean)
- Functions and graphs
- Sequences (수열 in Korean)
- Limits and continuity of functions (함수의 극한과 연속 in Korean)
- Differential (미분 in Korean)
- Integral (적분 in Korean)
- Probability and statistics (확률과 통계 in Korean)
Table of contents
1. Sets and propositions
- set
- size of set
- in and not in
- issubset
- union
- intersection
- difference
- add
- judge of duplication
- remove
- clear
- relative prime
- test1
- test2
2. Vectors and matrices
- class of vector
- return value of vector location
- addition of vectors
- subtraction of vectors
- float multiplication of vectors
- size of vector
- vector normalization
- vector: comprehension check
- class of matrix
- returning and modifying of vector elements
- addition and subtraction of matrices
- multiplication of matrix by real number
- multiplication between matrices
- comparing two matrices
- identity matrix or not
- checking inverse and identity matrix or not
- getting the determinant of two by two matrix
3. Functions and graphs
- generate a dot graph
- generate a line graph 1
- generate a line graph 2
- graph for linear functions
- graph for quadratic functions
- graph for exponential functions
- graph for logarithm functions
- graph for trigonometric functions
- graph for circles
- composite function
- intersection of a function and its inverse function 1
- intersection of a function and its inverse function 2
4. Sequences
- arithmetic sequences
- sum of arithmetic sequences
- geometric sequences
- sum of geometric sequences
- handling general sequences 1
- handling general sequences 2
- difference sequences
- fibonacci sequences
- recursive functions
- tower of Hanoi
- fibonacci sequence - recursive