Skip to content

Instantly share code, notes, and snippets.

\begin{wrapfig}{r}{1.5in}
\centering
\includegraphics[width=1.5in]{trapezoid.eps}
\end{wrapfig}
this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this
[dk0r@i7-3700 HW_1]$ git push origin master --force
error: cannot run ssh: No such file or directory
fatal: unable to fork
[dk0r@i7-3700 HW_1]$ git branch --set-upstream master origin
The --set-upstream flag is deprecated and will be removed. Consider using --track or --set-upstream-to
fatal: Not a valid object name: 'origin'.
[dk0r@i7-3700 HW_1]$ git remote -v
origin ssh://git@github.com/dk0r/comp-phys.git (fetch)
origin ssh://git@github.com/dk0r/comp-phys.git (push)
myData = Import["/home/dk0r/git/comp-phys/HW_2/monteCarlo5D.csv"]
A very large output was generated. Here is a sample of it:
{{51.8016, 17.5137, 12.128, 26.5672, 18.9167, 29.6628, 15.5693,
14.631, 29.5548, 15.7986, 22.0019, 16.9033, 11.9629, 26.4593,
25.0134, 17.5532, 16.7358, 15.6342, 19.1976, 15.9499, 18.9843,
19.405, 14.483, 17.2249, 18.6962, 21.9118, 21.0314, 15.8798,
16.9585, 20.718, <<49940>>, 18.8296, 18.8024, 18.7704, 18.8338,
18.7739, 18.7342, 18.651, 18.7502, 18.6692, 18.8616, 18.9056,
18.8616, 18.6958, 18.6877, 18.7043, 18.7276, 18.7655, 18.6905,
Original data set:
32365
234
23
163
125
1253
125
\begin{figure}[h!]
\caption{10,000 Pseudo Random Numbers from http://random.org}
\includegraphics[scale=.75]{randomOrg.eps}
\label{randOrg}
\end{figure}
I would like to test numerical recipe's version 3 (nm3) implementation of runge kutta 4 (rk4).
The example ODE that I would like to test is: dy/dx = 3yx^(2)y; initial conditions: x_0=1, y_0=2
This is a separable ODE and therefore the solution is y = (2/e)*e^(x^3) or 2*e^[(x^3)-1]
I would like to pick h = 0.1
Therefore, via rk4:
y_1 = y_0 + h* Fourth-Order-Taylor(x_0, y_0, h)
@dk0r
dk0r / gist:5096019
Last active December 14, 2015 13:48
I would like to test numerical recipe's version 3 (nm3) implementation of runge kutta 4 (rk4).
The example ODE that I would like to test is: 2y'' + 3y' + 5y = 11e^(-x)
initial conditions: y(0)= 7, y'(0)= 13, h = 1/4
I've completed the first rk4() iteration by hand. It is located at the following link:
https://dl.dropbox.com/s/xz7ok9hrwvrjdsj/rk4_ode.pdf?token_hash=AAFIV21CREVvkM8IkvxJ2UusutwnCOW4rwDWsthWCHD_7Q&dl=1
--------------------------------------------------------------------------------------------------------------------