C/C++の宿題を片付けます 99代目
at TECH
89:デフォルトの名無しさん
07/11/07 20:07:16
// >>80 ガウス窓
// gnuplot でやるには plot sin(x)*exp(-x*x/0.03*0.03)
#include <iostream>
#include <math>
#include <fstream>
#define pi 3.141592
int main (void) // window function - Gauss window
{
double x, sigma=0.03;
std::ofstream window("window.csv");
for (x=-pi; x<pi; x+=0.01){
window << x << ", " << sin(x) * exp(-x*x/sigma*sigma) << std::endl;
}
return 0;
}
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
4817日前に更新/222 KB
担当:undef