|
| 1 | +## `convert_chatgpt_formula_to_gist` |
| 2 | + |
| 3 | +> [English](README.md) [Korean](README.ko.md) |
| 4 | +
|
| 5 | +### summary |
| 6 | + |
| 7 | +- Collectively transform the formula of Chatgpt to the formula of gist |
| 8 | + - [src/making_formula.py](/src/making_formula.py) |
| 9 | + |
| 10 | +### How to use |
| 11 | + |
| 12 | +``` |
| 13 | +python making_formula.py formula.txt |
| 14 | +``` |
| 15 | + |
| 16 | +- 'formula.txt' is a text file containing formal information. (Korean is UTF-8 character-set) |
| 17 | + |
| 18 | +``` |
| 19 | + python making_formula.py formula.txt |
| 20 | +원본: O = 2R \cdot \sin\left(\frac{\pi}{8}\right) |
| 21 | +변환: [](#) |
| 22 | +-------------------------------------------------------------------------------- |
| 23 | +원본: O = 2r \cdot \tan\left(\frac{\pi}{8}\right) |
| 24 | +변환: [](#) |
| 25 | +-------------------------------------------------------------------------------- |
| 26 | +원본: O = 2R \cdot \sin\left(\frac{\pi}{8}\right) |
| 27 | +변환: [](#) |
| 28 | +-------------------------------------------------------------------------------- |
| 29 | +원본: O = 2r \cdot \tan\left(\frac{\pi}{8}\right) |
| 30 | +변환: [](#) |
| 31 | +-------------------------------------------------------------------------------- |
| 32 | +원본: R = \frac{O}{2 \cdot \sin\left(\frac{\pi}{8}\right)} |
| 33 | +변환: [](#) |
| 34 | +-------------------------------------------------------------------------------- |
| 35 | +원본: r = \frac{O}{2 \cdot \tan\left(\frac{\pi}{8}\right)} |
| 36 | +변환: [](#) |
| 37 | +-------------------------------------------------------------------------------- |
| 38 | +원본: R = r \cdot \frac{\tan\left(\frac{\pi}{8}\right)}{\sin\left(\frac{\pi}{8}\right)} |
| 39 | +변환: [](#) |
| 40 | +-------------------------------------------------------------------------------- |
| 41 | +원본: r = R \cdot \frac{\sin\left(\frac{\pi}{8}\right)}{\tan\left(\frac{\pi}{8}\right)} |
| 42 | +변환: [](#) |
| 43 | +-------------------------------------------------------------------------------- |
| 44 | +``` |
| 45 | + |
| 46 | +### Step 1. Generating a formula |
| 47 | + |
| 48 | +- Extracted in the form of 'formula' generated by ChatGPT |
| 49 | + - example |
| 50 | +``` |
| 51 | + \[ |
| 52 | + O = 2R \cdot \sin\left(\frac{\pi}{8}\right) |
| 53 | + \] |
| 54 | +``` |
| 55 | + |
| 56 | +### Step 2. Create Image Link |
| 57 | + |
| 58 | +- gist formula |
| 59 | + - Change formula to image link. |
| 60 | + - example |
| 61 | +``` |
| 62 | +[](#) |
| 63 | +``` |
| 64 | + |
| 65 | +- You can change all of the formulas in the file '*.txt' |
0 commit comments