2005-04-15から1日間の記事一覧

BREWでsingleton

id:enra:20050415で書かれていますヽ(´ー`)ノ で、生成はあまり問題ではないそうな。 これを問題なく作れるえんらさんはすごいです(;つД`) 問題なのは解体処理だと言われて、最初は全然分からなかったのですが、 singletonは、 class CHoge{ static single…

塩焼きそば

off

最近、カップの焼きそば( ゜Д゜)ウマーなんですよ。 その中でも塩焼きそばは(゜Д゜ )ウモォァーですね。 (≧∇≦)b

arc tangentテーブルを使ってarc tangentを求める

private final int tmax = 16; private final int n = 8; //これを使用するのは、atan_tableが作成されていることが条件 public int atan(int x, int y){ if(x==0 && y==0) throw new RuntimeException(" 原点から原点のarc tangentを求めようとした"); if(y…

arc tangentテーブルの作成

コサインテーブルの作成は出来ているものとして*1、 private final int tmax = 16; private final int n = 8; void makeAtanTable(){ int cn = getCosTableSize(); //2^cnのコサインテーブル int atan_table = new int[1<<n]; for(int i=1;i<(1<<(tmax-3));i++){ int s = i>>(tmax-cn); atan_table[(sin(s)<</n];>