Skip to content

Instantly share code, notes, and snippets.

B=c(-160,-35,-4.2,9,16.9,21.3)
Badj=B/(1e6)
T=c(100,200,300,400,500,600)
R=8.31
Radj=8.31e6
P=1.013e5
(P/Radj)*(B/T)
(P/R)*(Badj/T)
@TobiasBouma
TobiasBouma / stirlerr
Created June 11, 2014 13:21
stirlerr
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{fpu}
\makeatletter
\pgfmathdeclarefunction{qnorm}{4}{%
\begingroup
\pgfkeys{/pgf/fpu,/pgf/fpu/output format=fixed}
\pgfmathparse{#1}
\edef\p{\pgfmathresult}
\pgfmathparse{#2}
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{fpu}
\makeatletter
\pgfmathdeclarefunction{qnorm}{4}{%
\begingroup
\pgfkeys{/pgf/fpu,/pgf/fpu/output format=fixed}
\pgfmathparse{#1}
\edef\p{\pgfmathresult}
\pgfmathparse{#2}
@TobiasBouma
TobiasBouma / gist:3e8ef15ec8acd2d18dc6
Last active August 29, 2015 14:02
interactive.tex
\documentclass{article}
\usepackage{longtable}
\usepackage{imakeidx}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{ragged2e}
\usepackage{xcolor}
\usepackage{array}
\usepackage{geometry}
\usepackage{minted}
\documentclass{article}
\usepackage{longtable}
\usepackage{imakeidx}
\usepackage{multirow}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{ragged2e}
\usepackage{xcolor}
\usepackage{array}
\usepackage{geometry}
\documentclass{article}
\usepackage{color}
\makeatletter
\newcommand\metafunc[1]{{
\count@\z@
Number of arguments: \the\@tempcntb \par
\@tempcnta\z@\relax
\@tempcntb=\@count@
\@for\tmp:=#1\do{\advance\count@\@ne}
@TobiasBouma
TobiasBouma / Interactive page style in user-defined environment
Last active August 29, 2015 14:01
Interactive page style in user-defined environment
\documentclass[12pt]{article}
\usepackage{etoolbox,totcount}
\usepackage{marginnote}
\usepackage{pbox}
\usepackage[heightrounded]{geometry}
\usepackage[toc,titletoc,page]{appendix}
\usepackage{blindtext}
\newrobustcmd{\PreviousSectionTitle}{}%
\newrobustcmd{\CurrentSectionTitle}%
% pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/W32TeX)
% pdflatex $synctexoption --enable-write18 -interaction=nonstopmode $fullname
% GNUplot implementation from: http://www.tatsuromatsuoka.com/gnuplot/Eng/winbin/
% Add GNUplot directory to system %PATH% during installation
\documentclass[10pt]{article}
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
% % % % % % % % % % % % % % % P A C K A G E S % % % % % % % % % % % % % % %
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % %