Skip to content

Instantly share code, notes, and snippets.

View SouthEndMusic's full-sized avatar

Bart de Koning SouthEndMusic

View GitHub Profile
@SouthEndMusic
SouthEndMusic / GaussTuran.jl
Last active July 21, 2024 20:43
Proof of concept of deriving Gauss-Turán Quadratures
using Integrals
using Optim
using PreallocationTools
using ForwardDiff
using Base.Threads
#################################################
## Automatic higher order derivatives
"""
"""
I'ts >not< this: https://ds055uzetaobb.cloudfront.net/brioche/uploads/lRC3MIbnUy-germany_map_2.png?width=1200 ,
i.e. it is not the classical map graph.
"""
import matplotlib.pyplot as plt
import numpy as np
def get_polygon_centroid(points,