Skip to content

Instantly share code, notes, and snippets.

@shihashi
shihashi / verify20220923.py
Created Sep 23, 2022
Verify Gen's hypothesis on September 23, 2022
View verify20220923.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# verify20220923.py
#
# Copyright (c) 2022 shihashi
#
from collections.abc import Sequence
@shihashi
shihashi / circumcircle.tex
Last active Jun 5, 2021
Draw a circumcircle given the length of the three sides of the triangle.
View circumcircle.tex
\documentclass{article}% Typeset by pdfLaTeX
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\def\a{2}
\def\b{3}
\def\c{4}
\def\B{acos((\c^2+\a^2-\b^2)/(2*\a*\c))}
\def\R{\b/(2*sin(\B))}
\coordinate (B) at (0,0);
@shihashi
shihashi / incircle.tex
Last active Jun 5, 2021
Draw a incircle given the length of the three sides of the triangle.
View incircle.tex
\documentclass{article}% Typeset by pdfLaTeX
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\def\a{2}
\def\b{3}
\def\c{4}
\def\B{acos((\c^2+\a^2-\b^2)/(2*\a*\c))}
\def\r{\a*\c*sin(\B)/(\a+\b+\c)}
\coordinate (B) at (0,0);