This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass[11pt]{article} | |
| \input{embedvideo.tex} | |
| \usepackage{sectsty} | |
| \usepackage{graphicx} | |
| \usepackage{hyperref} | |
| \usepackage{amsmath} | |
| \usepackage{amssymb} | |
| \usepackage[caption=false]{subfig} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import networkx as nx | |
| import matplotlib.pyplot as plt | |
| import pandas as pd | |
| class Node: | |
| def __init__(self, name): | |
| self.name = name | |
| def getName(self): | |
| return self.name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from matplotlib import animation | |
| class BuffonsNeedle: | |
| def __init__(self, interline_length = 10, nlines = 10): | |
| # Buffon Needle Experiment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def get_pendulum_deriv(t, params, g, l, a): | |
| _theta = params[0] | |
| _omega = params[1] | |
| d_theta = _omega | |
| d_omega = -(g/l)*np.sin(_theta) - (a*d_theta) | |
| return d_theta, d_omega | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def get_deriv(t, state, g, mu, ad): | |
| _pos_x = state[0] | |
| _pos_y = state[1] | |
| _vel = state[2] | |
| d_pos_x = _vel | |
| d_pos_y = 0 | |
| d_vel = - mu*g*t - ad*_vel if _vel > 0 else 0.0# Infinitesmly Small Acceleration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def get_deriv(t, state, g, mu, ad): | |
| _pos_x = state[0] | |
| _pos_y = state[1] | |
| _vel = state[2] | |
| d_pos_x = _vel | |
| d_pos_y = 0 | |
| d_vel = - mu*g*t - ad*_vel if _vel > 0 else 0.0# Infinitesmly Small Acceleration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def get_deriv(t, state, g, mu, ad): | |
| _pos_x = state[0] | |
| _pos_y = state[1] | |
| _vel = state[2] | |
| d_pos_x = _vel | |
| d_pos_y = 0 | |
| d_vel = - mu*g*t - ad*_vel if _vel > 0 else 0.0# Infinitesmly Small Acceleration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def get_deriv(t, state, g, mu, ad): | |
| _pos_x = state[0] | |
| _pos_y = state[1] | |
| _vel = state[2] | |
| d_pos_x = _vel | |
| d_pos_y = 0 | |
| d_vel = - mu*g*t - ad*_vel if _vel > 0 else 0.0# Infinitesmly Small Acceleration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def get_deriv(t, state, g, mu, ad): | |
| _pos_x = state[0] | |
| _pos_y = state[1] | |
| _vel = state[2] | |
| d_pos_x = _vel | |
| d_pos_y = 0 | |
| d_vel = - mu*g*t - ad*_vel if _vel > 0 else 0.0# Infinitesmly Small Acceleration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def get_deriv(t, state, g, mu, ad): | |
| _pos_x = state[0] | |
| _pos_y = state[1] | |
| _vel = state[2] | |
| d_pos_x = _vel | |
| d_pos_y = 0 | |
| d_vel = - mu*g*t - ad*_vel if _vel > 0 else 0.0# Infinitesmly Small Acceleration |
NewerOlder