Instantly share code, notes, and snippets.

# Pierre Haessig pierre-haessig

Last active November 12, 2021 15:14
Numerical implementation of the formula for the partial sum of a geometric series when ratio equals one. See https://math.stackexchange.com/questions/4288069/formula-for-the-partial-sum-of-a-geometric-series-when-ratio-equals-one
This file contains 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
 # Comparison of three numerical implementation of the formula for the partial sum of a geometric series # when ratio equals (or is close to) one. # See https://math.stackexchange.com/questions/4288069/formula-for-the-partial-sum-of-a-geometric-series-when-ratio-equals-one from math import expm1, log1p def SN_def(a,N): return sum(a**n for n in range(N)) def SN_form(a,N):
Created July 19, 2021 12:11
NLopt+ForwardDiff single call to simulator (using caching and DiffResults)
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Last active July 19, 2021 10:25
Marp tools concept maps
This file contains 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
 7Vxbd6M2EP41nNM+2AeEDfZjNol3t03a9GS33fZNBmFrA4gKObb311cSEubmmMT4sl3nIYZBGoTmm/kGjWzDvo5W7ylM5vfER6EBTH9l2DcGAJbj2vxDSNZKMh64mWRGsa9kG8Ej/oaU0FTSBfZRWmrICAkZTspCj8Qx8lhJBikly3KzgITluyZwhmqCRw+Gdelf2GdzJbWc8ebCB4Rnc3XrEVDPF0HdWD1JOoc+WRZE9q1hX1NCWHYUra5RKGZPz0vWb7Llaj4wimLWpsNyGU/Wd+k/nz892uDL6Btc9YKerezzDMOFemI1WrbWU4B8PiPqlFA2JzMSw/B2I31HySL2kbiPyc82be4ISbjQ4sKviLG1Mi9cMMJFcxaF6mpAYjaBEQ4FTD7GDFElfCQL6ok+c8a4xcHQvuL/+DOKf6JB2p8RMgsRTHDa90gkL3ipbDoJMpX8MFdanzU1kam+07ap0uiDdIbYS1OatROzVriBssl7RCLEKB+TSVEIGX4u4wwquM7ydhuL8gNl1NcYeFgzsI8CHHOfarLzHZxyDy7ZBoZ4FvNjD6kpfEaUYe4hV+pChH0/gwFK8Tc4lfoEEBKCuYGE8uE7Y3izzc51k7wMVX57tDIanF/duuRfpSlXvXpm33KtQdZXBSYF+9ZGUcofxCMWNIOS0kp/EgQph07VpPkAm6z8OUX09+lXEdqAGWbWybzUCZkwF
Created May 25, 2018 16:09
Experiment with the ability to modify a constraint of an existing optimization problem modeled with JuMP
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created October 24, 2016 16:06
first test of Altair viz package on the diamonds dataset
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created May 26, 2016 11:28
Matplotlib markers disappear bug when using seaborn-notebook style (mpl 1.5.1)
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created July 13, 2015 15:42
Image plot with a logit scale -- example of a transition matrix