Skip to content

Instantly share code, notes, and snippets.

@shihashi
shihashi / verify20220923.py
Created September 23, 2022 06:34
Verify Gen's hypothesis on September 23, 2022
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# verify20220923.py
#
# Copyright (c) 2022 shihashi
#
from collections.abc import Sequence
@shihashi
shihashi / incircle.tex
Last active June 5, 2021 11:17
Draw a incircle given the length of the three sides of the triangle.
\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);
@shihashi
shihashi / circumcircle.tex
Last active June 5, 2021 11:17
Draw a circumcircle given the length of the three sides of the triangle.
\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);