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
| #ifndef TOP_DETECTOR_HEADER_FILE | |
| #define TOP_DETECTOR_HEADER_FILE | |
| class TopDetector { | |
| public: | |
| // コンストラクタ | |
| TopDetector() { | |
| reset(); | |
| } |
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
| using System; | |
| using System.IO; | |
| using System.Drawing; | |
| using System.Text; | |
| class Program | |
| { | |
| static void Main() | |
| { | |
| Console.WriteLine("1:\t文字列を変換"); |
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
| #include <iostream> | |
| #include <stack> | |
| #include <cstdio> | |
| #include <cstdlib> | |
| // メモリー(配列)の数 | |
| #define N_BYTE 8192 | |
| using namespace std; |
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
| /* 二重振り子のシミュレーションプログラム(トーラス上) | |
| * 式の導出は諦めたので以下のサイトを参考にしました | |
| * | |
| * 2重振り子 http://www.aihara.co.jp/~taiji/pendula-equations/present-node2.html | |
| */ | |
| int FRAME_RATE = 60; | |
| int SPEED = 10; | |
| float t; |
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
| /* 二重振り子のシミュレーションプログラム | |
| * 式の導出は諦めたので以下のサイトを参考にしました | |
| * | |
| * 2重振り子 http://www.aihara.co.jp/~taiji/pendula-equations/present-node2.html | |
| */ | |
| int FRAME_RATE = 60; | |
| int SPEED = 10; | |
| float t; |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <math.h> | |
| #include <string.h> | |
| /* 1次元熱伝導方程式 | |
| * u_t = ALPHA * u_xx | |
| * ただし MIN_X <= x <= MAX_X | |
| * 境界条件 | |
| * u(MIN_X,t) = U_LEFT |
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
| #include "Wire.h" | |
| #include "I2Cdev.h" | |
| #include "MPU9150.h" | |
| #define N_SAMPLE 256 | |
| #define WAIT_TIME 50 | |
| #define N_DIM 4 | |
| #define EPS 1e-8 | |
| // ライブラリ内で定義されたセンサーの値を取得するクラスのインスタンス |
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
| #include <stdio.h> | |
| #include <math.h> | |
| #include <time.h> | |
| #include <stdlib.h> | |
| #define N_DIM 4 | |
| #define EPS 1e-8 | |
| #define N_SAMPLE 256 |
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
| #coding:utf-8 | |
| from sympy import * | |
| from sympy.physics.mechanics import LagrangesMethod, Lagrangian | |
| from sympy.physics.mechanics import ReferenceFrame, Particle, Point | |
| from sympy.physics.mechanics import dynamicsymbols, kinetic_energy | |
| from sympy.utilities.codegen import * | |
| if __name__ == "__main__": |
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
| float r = 80; // 大きさ | |
| int N = 8; // 点の個数 | |
| int p = 5; // 分母 | |
| int q = 2; // 分子 | |
| float theta = 0.0; | |
| float d_theta = PI / 60; | |
| float k = float(p)/float(q); | |
| void setup() { |