(Reveal.js Cheatsheet)
Reveal.js is a tool for creating good-looking HTML presentations, authored by Hakim El Hattab.
For an example of a reveal.js presentation, see here.
Org-Reveal exports your Org documents to reveal.js presentations.
With Org-reveal, you can create beautiful presentations with 3D effects from simple but powerful Org contents.
You can also install the latest developing version of org-reveal directly from GitHub.
Please download the latest Org-reveal package from the Org-reveal GitHub page. Or clone the GitHub repository:
git clone https://github.com/yjwen/org-reveal.git
Copy ox-reveal.el
to one of your Emacs's load-path
, and add the following statement to your .emacs
file.
(require 'ox-reveal)
Note: It is suggested to use the Org-mode git repository in pair with the GitHub org-reveal. Please get the Org-mode git repository by:
$ git clone https://code.orgmode.org/bzg/org-mode
Follow the online instruction for building and installing Org-mode.
function x = fpi(g, x0, n)
% FPI x = fpi(g, x0, n)
% Computes approximate solution of g(x)=x
% Input:
% g function handle
% x0 initial guess
% n number of iteration steps
x = x0;
for k = 1:n
x = g(x);
end
end
f = @(x) x.^2 - 4*x + 3.5;
g = @(x) x - f(x);
fplot(g, [2 3], 'r');
hold on
plot([2 3], [2 3], 'k--')
x = 2.1;
y = g(x);
for k = 1:5
arrow([x y], [y y], 'b');
x = y; y = g(x);
arrow([x x], [x y], 'b');
end
Assume we have a simple Org file as below:
* H1
* H2
** H2.1
*** H2.1.1
* H3
If HLevel is 1, the default value, headings H2.1 and H2.1.1 will be mapped to vertical slides below the slides of heading H2.
If HLevel is changed to 2, slides of heading H2.1 will be changed to the main horizontal queue, and slides of heading H2.1.1 will be a vertical slide below it.
The Lorenz system is \(\begin{aligned} \dot{x} & = \sigma(y-x) \\ \dot{y} & = \rho x - y - xz \\ \dot{z} & = -\beta z + xy \end{aligned}\)
The rootfinding problem \(f(x) = x^3 + x - 1 = 0\) can be transformed to various fixed point problems:
Note that all \(g_j(x) = x\) are equivalent to \(f(x)=0\). However, not all these find a fixed point of \(g\), that is, a root of \(f\) on the computer.
Exercise. Run fpi
with \(g_j\) and \(x_0 = 0.5\). Which fixed point iterations converge?
Pros
Cons
Given data points \(\{ (x_i, y_i) \mid i \in \NN[1,m]\}\), pick a form for the ``fitting'' function \(f(x)\) and minimize its total error in representing the data.
Below are 5-year averages of the worldwide temperature anomaly as compared to the 1951-1980 average (source: NASA).
Year | Anomaly (\(^{\circ}C\)) |
---|---|
1955 | -0.0480 |
1960 | -0.0180 |
1965 | -0.0360 |
1970 | -0.0120 |
1975 | -0.0040 |
1980 | 0.1180 |
1985 | 0.2100 |
1990 | 0.3320 |
1995 | 0.3340 |
2000 | 0.4560 |
In this discussion: \vs
\vs Since the fitting function is linear in unknown coefficients and the 2-norm is minimized, this method of approximation is called the linear least squares (LLS) approximation.