This file contains hidden or 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
| import collections | |
| import mpmath as mp | |
| import matplotlib.pyplot as plt | |
| mp.dps = 100 | |
| alpha = beta = 2.2 | |
| sq2 = mp.sqrt(2) | |
| gamma = (alpha * beta + mp.sqrt(alpha * alpha * beta * beta + 8 - 4 * (alpha * alpha+beta*beta)) )/ 2 |
This file contains hidden or 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
| import cv2 | |
| import cairocffi as cairo | |
| import numpy as np | |
| import taichi as ti | |
| ti.init(arch=ti.cpu) | |
| scale = 5 |
This file contains hidden or 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
| # pip install taichi | |
| import taichi as ti | |
| ti.init(arch=ti.gpu) | |
| d = 3 | |
| num_rounds = 100000 | |
| max_steps = 1000000 | |
| ivec = ti.types.vector(d, int) |