Skip to content

Instantly share code, notes, and snippets.

Avatar
😇

Takunoko takunoko

😇
View GitHub Profile
@takunoko
takunoko / three_phase_wave.py
Created May 31, 2020
三相交流を理解するために書いたプログラム
View three_phase_wave.py
import numpy as np
import matplotlib.pyplot as plt
scale = 1/np.sqrt(2)
x = np.arange( 0, 4 * np.pi, 0.1) # x座標を 0 から 4pi (2周期) まで 0.1 きざみで取得
y1 = np.sin(x) * scale # 正弦波
y2 = np.roll(y1, int(len(x)/3)) # 位相を120度ずらす (波形を1/3移動)
y3 = np.roll(y1, int((len(x)*2)/3)) # 位相を240度ずらす (波形を2/3移動)
@takunoko
takunoko / MainShopCharger.java
Last active Jan 20, 2017
TuT 授業課題 共有用
View MainShopCharger.java
// package edu161216;
public class MainShopCharger {
public static void main (String [] args) {
// カードの定義(2枚)
StudentCard S0 = new StudentCard(163399, "hoge");
S0.setAccountBalance(100);
System.out.println(S0);
StudentCard S1 = new StudentCard(163398, "moge");
View write_turtle_chiba.py
# esriジャパンから取得したデータを扱う
# 国土地理院発行の数値地図
# 地図データ[ESRIジャパン]: http://www.esrij.com/products/japan-shp/
import shapefile
import pandas as pd
import turtle as tt
# turtle画面設定 定数
You can’t perform that action at this time.