Skip to content

Cheatsheets for CM1015 Computational Mathematics #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 104 commits into from
Sep 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
4774722
init custom dir for ITP1
lamafab Apr 5, 2022
74c280f
init main for computational mathematics
lamafab Apr 19, 2022
cbc2c7e
add section for non-integer numbers
lamafab Apr 19, 2022
9eb01f3
add section for binary operations
lamafab Apr 19, 2022
636fe2e
init sequence section
lamafab Apr 22, 2022
552e726
expand series section
lamafab Apr 30, 2022
44054be
separate number bases and sequences into multiple files
lamafab May 15, 2022
d7a9a69
expand geometric arithmetic and infinite sequences
lamafab May 16, 2022
f28e01a
formatting
lamafab May 16, 2022
b4698aa
expand series, sigma notation and arithmetic series
lamafab May 16, 2022
4f515b8
expand geometric series
lamafab May 16, 2022
bfcfdba
expand infinite geometric series
lamafab May 24, 2022
12cc984
adjust formula in arithmetic series
lamafab May 27, 2022
3c1c26c
typo
lamafab May 27, 2022
162af13
add divisiblity and congruence doc
lamafab May 31, 2022
44509e8
add boilerplate for Trigonometry
lamafab May 31, 2022
468c723
cleanup trigonometry doc
lamafab May 31, 2022
eb7cef2
additional cleanups
lamafab May 31, 2022
43fca5f
fix formula in arithmetic series
lamafab Jun 4, 2022
ea6a36e
update modular arithmetic
lamafab Jun 4, 2022
a2e6ff0
add Graphs and Functions sheet
lamafab Jun 4, 2022
883b2f2
extend graphs and functions with images
lamafab Jun 4, 2022
6ec2b24
add README and Makefile
lamafab Jun 4, 2022
467f7ed
replace Makefile with bashscript
lamafab Jun 4, 2022
bd26a31
remove toc from files
lamafab Jun 4, 2022
3f83877
update png generation and readme
lamafab Jun 4, 2022
67205ce
add generated PNGs
lamafab Jun 4, 2022
5a1b581
fix image paths and build script
lamafab Jun 4, 2022
dbfdbed
set javascript delay for png generation
lamafab Jun 4, 2022
bab218e
update README
lamafab Jun 4, 2022
d4cb3c2
update README, format bash script
lamafab Jun 4, 2022
6531cfe
delete intro to programming
lamafab Jun 4, 2022
95b2f7e
fix remainder in Conversion from Decimal
lamafab Jun 5, 2022
e04292c
small cleanup in number bases
lamafab Jun 5, 2022
2982d5b
update png
lamafab Jun 5, 2022
64ad3d7
fix bracket format in graphs and functions
lamafab Jun 5, 2022
e47e76d
reverse rads to degree calculation
lamafab Jun 5, 2022
364e5c3
add type to numbers
lamafab Jun 5, 2022
8f86d47
fix some mistakes in Number Bases
lamafab Jun 6, 2022
0d4f00c
prefix with cheatsheet
lamafab Jun 6, 2022
9c26dcb
remove redundant info from Number Bases
lamafab Jun 6, 2022
7c46cf3
adjustments to units in trigonometry
lamafab Jun 6, 2022
73c0426
init and expand Kinematic section
lamafab Jun 6, 2022
0ad3539
rename graphs of functions and kinematics
lamafab Jun 6, 2022
500f0b3
update kinematics
lamafab Jul 7, 2022
11a145f
add trigonometrical functions and identities, expand sections
lamafab Jul 7, 2022
eec1ae1
merge Quadrants and Projections subsections
lamafab Jul 7, 2022
2f7abc9
expand identities subsection
lamafab Jul 9, 2022
44a5458
add sentence
lamafab Jul 9, 2022
87f5796
generate cheatsheet for trigonometrical functions, update build script
lamafab Jul 9, 2022
5e2c715
init Exponential and Logarithm Function cheatsheet
lamafab Jul 9, 2022
212d629
expand on exponential functions
lamafab Jul 9, 2022
1cf2375
complete logarithm subsection
lamafab Jul 9, 2022
3e017aa
generate cheatsheet
lamafab Jul 9, 2022
fdd3c63
update equivalent symbol
lamafab Jul 9, 2022
1b8c951
update cheatsheets
lamafab Jul 9, 2022
de21b8d
fix typos
lamafab Jul 9, 2022
0f1826e
start cheatsheet for gradients of curves and differentation, generate…
lamafab Jul 9, 2022
5d24e6b
cleanup exponential and logarithm functions
lamafab Jul 16, 2022
3943f88
remove inequalities section
lamafab Jul 16, 2022
77f46ec
fix spelling errors
lamafab Jul 16, 2022
c261981
rename asset dir
lamafab Jul 16, 2022
9d05e56
generate updated cheatsheets
lamafab Jul 16, 2022
da87fac
set doctype to article
lamafab Jul 16, 2022
8993b51
replace PNGs with PDFs
lamafab Jul 16, 2022
83767ee
update README
lamafab Jul 16, 2022
74fdb26
update links to cheatsheets in README
lamafab Jul 16, 2022
634518f
expand gradients and differentiations, add constant table, add exampl…
lamafab Jul 16, 2022
a01e4ed
add maximum and minimum graph
lamafab Jul 16, 2022
4512f38
update PDFs
lamafab Jul 16, 2022
6debbcd
formatting
lamafab Jul 16, 2022
da34027
update pdfs
lamafab Jul 16, 2022
276af68
add more formulas to negative graph
lamafab Jul 23, 2022
37ddbd7
add common trigonometrical identities
lamafab Jul 23, 2022
a307d72
update pdfs
lamafab Jul 23, 2022
b41f060
expand logarithm section
lamafab Jul 23, 2022
ac509d1
init Vectors and Matrices
lamafab Aug 9, 2022
005a667
complete Vector section
lamafab Aug 9, 2022
9da77c8
set alignment for images
lamafab Aug 11, 2022
54548b5
update cheatsheets
lamafab Aug 11, 2022
2f8c080
start with Matrices cheatsheet
lamafab Aug 11, 2022
3a250cd
complete matrices cheatsheet
lamafab Aug 11, 2022
a0480b9
update PDFs
lamafab Aug 11, 2022
50c0e49
typo
lamafab Aug 19, 2022
f80c82d
start cheatsheet for statistics
lamafab Aug 20, 2022
66fa0c0
start section on probabilities
lamafab Aug 21, 2022
3415c45
update PDFs
lamafab Aug 22, 2022
43700f1
update README
lamafab Aug 22, 2022
d756a01
expand probability
lamafab Aug 22, 2022
cf3934d
add subsection for the median
lamafab Aug 23, 2022
8309c0a
expand variance and standard deviation sections
lamafab Aug 23, 2022
d3c2276
clarify variance and standard deviation
lamafab Aug 23, 2022
939fc35
add section on combinatorics
lamafab Aug 23, 2022
d0c8cd2
generate pdfs
lamafab Aug 23, 2022
5f30f6d
expand on combinatorics and independent events
lamafab Aug 23, 2022
1c403bc
update probability pdf
lamafab Aug 23, 2022
9a411a1
fix typo
lamafab Aug 23, 2022
bf577ee
update probability pdf
lamafab Aug 23, 2022
957b13d
complete section for distinguishable permutations
lamafab Aug 24, 2022
1c56732
update probability cheatsheet pdf
lamafab Aug 24, 2022
ac41ab3
update README
lamafab Aug 24, 2022
2a2de17
remove deprecated cheatsheets
lamafab Aug 24, 2022
6f4130a
update pdfs
lamafab Sep 4, 2022
9d979f7
fix typo
lamafab Sep 5, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# About

Listed here is a collection of cheatsheet by topic. Those cheatsheets do not
explain the topics in depth, but rather serve as quick lookup documents.
Therefore, the course material provided by the lecturer should still be studied
and understood. Not everything that is tested at the mid-terms or final exams is
covered and the Author does not guarantee that the cheatsheets are free of
errors.

* [Number bases](./cheatsheet_number_bases.pdf)
* [Sequences and Series](./cheatsheet_sequence_series.pdf)
* [Modular Arithmetic](./cheatsheet_modular_arithmetic.pdf)
* [Trigonometry](./cheatsheet_trigonometry.pdf)
* [Graphs of Functions & Kinematics](./cheatsheet_graphs_functions_kinematics.pdf)
* [Trigonometrical Functions & Identities](./cheatsheet_trigonometrical_functions_identities.pdf)
* [Exponential & Logarithm Functions](./cheatsheet_exponential_logarithm_funcions.pdf)
* [Gradients of Curves & Differentiation](./cheatsheet_gradients_curves_differentiation.pdf)
* [Vectors](./cheatsheet_vectors.pdf)
* [Matrices](./cheatsheet_matrices.pdf)
* [Statistics](./cheatsheet_statistics.pdf)
* [Probability & Combinatorics](./cheatsheet_probability_combinatorics.pdf)

# Building

_NOTE_: This step is only necessary if you chose to modify the base docments.

The base documents are written in [AsciiDoc](https://asciidoc.org/) and can be
found in the `src/` directory.

The following dependencies must be installed (Ubuntu):

```console
$ apt install -y ruby-dev wkhtmltopdf
$ gem install asciidoctor
$ chmod +x build.sh
```

To build the documents (PDF version):

```console
$ ./build.sh pdf
```

Optionally, for the HTML version:

```console
$ ./build.sh html
```

and for the PNG version:

```console
$ ./build.sh png
```

The generated output can be deleted with `./build.sh clean`.

# Disclaimer

The Presented Documents ("cheatsheets") by the Author ("Fabio Lama") are
summaries of specific topics. The term "cheatsheet" implies that the Presented
Documents are intended to be used as learning aids or as references for
practicing and does not imply that the Presented Documents should be used for
inappropriate practices during exams such as cheating or other offences.

The Presented Documents are heavily based on the learning material provided by
the University of London, respectively the VLeBooks Collection database in the
Online Library, especially on the books:

* _Foundation maths (Harlow: Pearson, 2016) 6th edition by Croft, A. and R. Davison_
* _Precalculus with Limits (January 1, 2017) 4th edition by Ron Larson_

The Presented Documents may incorporate direct or indirect definitions,
examples, descriptions, graphs, sentences and/or other content used in those
provided materials. **At no point does the Author present the work or ideas
incorporated in the Presented Documents as their own.**
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#!/bin/bash

# Because `make` sucks.

gen_html() {
# Remove suffix and prefix
FILE=$1
OUT=${FILE%.adoc}
HTML_OUT="cheatsheet_${OUT}.html"

asciidoctor $FILE -o ${HTML_OUT}
}

# Change directory to src/ in order to have images included correctly.
cd "$(dirname "$0")/src/"

case $1 in
html)
for FILE in *.adoc
do
# Generate HTML file.
gen_html ${FILE}
done

# Move up from src/
mv *.html ../
;;
pdf)
for FILE in *.adoc
do
# Generate HTML file.
gen_html ${FILE}

# Convert HTML to PNG.
PDF_OUT="cheatsheet_${OUT}.pdf"
wkhtmltopdf \
--enable-local-file-access \
--javascript-delay 2000\
$HTML_OUT $PDF_OUT
done

# Move up from src/
mv *.pdf ../

# Cleanup temporarily generated HTML files.
rm *.html > /dev/null 2>&1
;;
png | img)
for FILE in *.adoc
do
# Generate HTML file.
gen_html ${FILE}

# Convert HTML to PNG.
IMG_OUT="cheatsheet_${OUT}.png"
wkhtmltopdf \
--enable-local-file-access \
--javascript-delay 2000\
$HTML_OUT $IMG_OUT
done

# Move up from src/
mv *.png ../

# Cleanup temporarily generated HTML files.
rm *.html > /dev/null 2>&1
;;
clean)
rm *.html > /dev/null 2>&1
rm *.png > /dev/null 2>&1
rm ../*.html > /dev/null 2>&1
rm ../*.png > /dev/null 2>&1
;;
*)
echo "Unrecognized command"
;;
esac
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
= Cheatsheet - Exponential & Logarithm Functions
Fabio Lama <fabio.lama@pm.me>
:description: Module: CM1015 Computational Mathematics, started 04. April 2022
:doctype: article
:sectnums: 4
:toclevels: 4
:stem:

== Exponential Expressions

An expression of the form stem:[a^x] is called an **exponential expression**,
where _a_ is the **base** and _x_ is the **exponent**,**power** or **index**.

NOTE: The most common exponential expression is stem:[e^x], where _e_ is the
constant _2.71828..._. Also known as "Euler's number". This number is found in
many natural phenomena.

== Exponential Functions

An exponential function has the form of stem:[y = e^x]. This function has important properties:

* _y_ is never negative.
* When stem:[x=0], then stem:[y = 1]
* As _x_ increases, then _y_ increases (**exponential growth**).

image::assets/exponential_logarithm_functions/exponential_function.png[align="center"]

== Logarithms

The logarithm is the inverse function to the exponentiation. The following two
equations are equivalent.

[stem]
++++
y = a^x hArr log_a (y) = x
++++

For example:

[stem]
++++
5^3 = 125 hArr log_5 (125) = 3
++++

Also, conventionally we define **natural logarithms** as:

[stem]
++++
log = log_10\
ln = log_e
++++

=== Calculating Logarithms to any Base

[stem]
++++
log_a X = (log_10 X)/(log_10 a)\
log_a X = (ln X)/(ln a)
++++

This also means that - for example:

[stem]
++++
log_5 (125) = (log (125))/(log (5))
++++

Additionally:

[stem]
++++
log_a a = 1
++++

=== Laws

**First Law**:

[stem]
++++
log A + log B = log AB
++++

**Second Law**:

[stem]
++++
log A - log B = log (A/B)
++++

Also note that:

[stem]
++++
log 1 = 0
++++

**Third Law**

[stem]
++++
n log A = log A^n
++++

such as stem:[3 log 2 = log 2^3 = log 8]. This applies for all stem:[n in RR].

Loading