Skip to content

Instantly share code, notes, and snippets.

View yohanesnuwara's full-sized avatar
:octocat:

yohanesnuwara yohanesnuwara

:octocat:
View GitHub Profile

Problem

A lot of GitHub projects need to have pretty math formulas in READMEs, wikis or other markdown pages. The desired approach would be to just write inline LaTeX-style formulas like this:

$e^{i \pi} = -1$

Unfortunately, GitHub does not support inline formulas. The issue is tracked here.

Investigation

@yohanesnuwara
yohanesnuwara / TDMAsolver.py
Created March 7, 2020 06:48 — forked from cbellei/TDMAsolver.py
Tridiagonal Matrix Algorithm solver in Python
import numpy as np
## Tri Diagonal Matrix Algorithm(a.k.a Thomas algorithm) solver
def TDMAsolver(a, b, c, d):
'''
TDMA solver, a b c d can be NumPy array type or Python list type.
refer to http://en.wikipedia.org/wiki/Tridiagonal_matrix_algorithm
and to http://www.cfd-online.com/Wiki/Tridiagonal_matrix_algorithm_-_TDMA_(Thomas_algorithm)
'''
nf = len(d) # number of equations
@yohanesnuwara
yohanesnuwara / marmousi_fatiando_scalar.ipynb
Created January 18, 2020 08:13 — forked from eusoubrasileiro/marmousi_fatiando_scalar.ipynb
Running scalar wave equation marmousi data set from madagascar.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.