Skip to content

Instantly share code, notes, and snippets.

View tomeaton17's full-sized avatar

Tom Eaton tomeaton17

View GitHub Profile
@tomeaton17
tomeaton17 / coefficients.py
Created September 12, 2017 11:04
Calculates the Steinhart-Hart coefficients given 3 known resistance temperature pairs.
"""
Calculates the Steinhart-Hart coefficients for given resistance and temperature pairs.
"""
import sys
import math
titleString = """\
______ _ __ __ __ __ __ _____ _______ _ __
/ __/ /____ (_)__ / / ___ _____/ /_____/ // /__ _____/ /_ / ___/__ ___ / _/ _(_)___(_)__ ___ / /____
_\ \/ __/ -_) / _ \/ _ \/ _ `/ __/ __/___/ _ / _ `/ __/ __/ / /__/ _ \/ -_) _/ _/ / __/ / -_) _ \/ __(_-<
@donaldmunro
donaldmunro / gist:38841d72c65a1c32f2bf83a4a00a2c9a
Created March 5, 2017 13:26
Display/print a GLM mat or vec
#include <glm/gtx/string_cast.hpp>
..
..
glm::mat4 mat;
..
..
std::cout << glm::to_string(mat) << std::endl;