Skip to content

Instantly share code, notes, and snippets.

View kvedala's full-sized avatar

Krishna Vedala kvedala

View GitHub Profile
@kvedala
kvedala / fast polynomial roots.ipynb
Last active April 29, 2020 03:02
Durand-Kerner Roots - Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kvedala
kvedala / fibonacci_fast.c
Last active November 17, 2019 23:37
Fast Fibonacci number
/**
@file Fibonacci_fast.c
@author: Krishna Vedala
@date 2 October, 2019
@brief Compute \f$m^{mth}\f$ Fibonacci number using the formulae:
\f{eqnarray*}{
F_{2n-1} &=& F_n^2 + F_{n-1}^2 \\
F_{2n} &=& F_n\left(2F_{n-1} + F_n\right)
\f}
*/
@kvedala
kvedala / notebook.ipynb
Last active May 15, 2020 00:51
Hill Cypher - Python and Cython
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kvedala
kvedala / LU Decomposition.ipynb
Last active June 8, 2020 18:19
LU Decomposition
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kvedala
kvedala / Madelbrot optimization.ipynb
Last active April 29, 2020 03:13
Mandelbrot optimization
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kvedala
kvedala / complex exponentials.py
Created August 23, 2017 16:04
Complex exponentials
import numpy as np
from matplotlib import pyplot as plt
from mpl_toolkits.axes_grid.axislines import SubplotZero
from matplotlib.transforms import BlendedGenericTransform
plt.rcParams['svg.fonttype'] = 'none'
A = complex(.5,.75)
pows = [0]*11
real = [0]*11
imag = [0]*11