This file contains 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
# coding: utf-8 | |
""" | |
勾配上昇法を使った最適化 | |
""" | |
#========== | |
# Main | |
import math, random |
This file contains 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
# coding: utf-8 | |
""" | |
久留島アルゴリズムによる魔法陣 | |
""" | |
#========== | |
# Main | |
import math, random |
This file contains 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
# coding: utf-8 | |
""" | |
ユークリッドの互除法 | |
""" | |
#========== | |
# Main | |
import math |
This file contains 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
# coding: utf-8 | |
""" | |
ロシアの掛け算 | |
""" | |
#========== | |
# Main | |
import math |
This file contains 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
# coding: utf-8 | |
""" | |
チャップマンアルゴリズムによる弾道計算 | |
""" | |
#========== | |
# Main | |
import math |
This file contains 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
console.log("Hello, JavaScript!!"); | |
// DSA署名を使ってみる | |
// 離散対数問題を安全性の根拠としている | |
// 1, 素数を3つ用意する | |
const p = 23n; | |
const q = 11n;// qは、p-1で割り切れる数 | |
const g = 2n; // g^q mod pが、1になる様な数 | |
console.log("素数p:", p, " 素数q:", q); |
This file contains 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
# coding: utf-8 | |
""" | |
1, Venv | |
1-1, New | |
$cd [project dir] | |
$python3 -m venv [newenvname] | |
1-2, Activate |
This file contains 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
# coding: utf-8 | |
""" | |
1, Docker | |
1-1, Download DockerDesktop and Install | |
https://docs.docker.com/desktop/release-notes/ | |
1-2, Run DockerDesktop | |
Launch DockerDesktop!! | |
1-3, Check version | |
docker -v |
This file contains 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
# coding: utf-8 | |
""" | |
基数変換問題ジェネレーター(10進整数 <-> 2進数) | |
""" | |
import os, math, random | |
from PIL import Image, ImageFont, ImageDraw | |
# D2B or B2D |
This file contains 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
# coding: utf-8 | |
""" | |
スッキリわかる機械学習入門より | |
1, Install | |
$ python3 -m pip install pandas | |
$ python3 -m pip install scikit-learn | |
""" | |
import matplotlib.pyplot as plt |