Skip to content

Instantly share code, notes, and snippets.

View ketch's full-sized avatar

David Ketcheson ketch

View GitHub Profile
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.
import numpy as np
def find_min_poly(x, d, n):
"""Find the polynomial that minimizes max|p(x)| over the given
range of x values and among polynomials of the form
x^n + a_d x^d + a_{d-1} x^{d-1} + ... + a_0
Inputs:
#!/usr/bin/env python
# encoding: utf-8
import numpy as np
def setup(use_petsc=False,outdir='./_output',solver_type='classic'):
from clawpack import riemann
from clawpack import pyclaw
#solver = pyclaw.ClawSolver2D(riemann.vc_advection_2D)
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.
@ketch
ketch / polo_demo.ipynb
Last active August 29, 2015 14:14
Examples of what you can do with https://github.com/ketch/polo, a tool for comparing datasets across multiple dimensions. #PyClaw #plotting
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ketch
ketch / griddle_plotting_examples.ipynb
Last active August 29, 2015 14:13
Examples of usage of `griddle.plot`; see https://github.com/ketch/griddle.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.