/* このプログラムは, multiply_trans でかけられる行列 Mの 転置 すなわち転置推移確率行列の転置, 転置確率行列の転置を出力する. Time-stamp: "2020-06-10 Wed 18:24 JST hig" */ #define _CRT_SECURE_NO_WARNINGS /* Visual C++ に必要なおまじない */ #include #define NS 10 int multiply_trans(double pn[], double p[],int m); int print_dist(double p[], int m); int main(){ int x; double p[NS]; double pn[NS]; int m=NS; int n; for(n=0;n