📄 aaz_distance.c
字号:
/* .h freeware http://groups.yahoo.com/group/mathc/ */
/* --------------------------------- INCLUDES ------------------------------- */
#include "y_ahfile.h"
/* --------------------------------- MAIN ----------------------------------- */
int main(void)
{
complexZ Distance;
double pbu[3][1*C2]=
{
0, 1,
1, 1,
3, 0,
};mZ mu={3,1*C2,&pbu[0][0]};
double pbv[3][1*C2]=
{
1,-1,
2, 0,
0, 4,
};mZ mv={3,1*C2,&pbv[0][0]};
/*-------------------------------- PROGRAM ---------------------------------- */
clrscrn();
printf("\n u :\n");
p_mZ(&mu);
printf("\n v :\n");
p_mZ(&mv);
printf("\n\n");
Distance = distanceP2_Z(&mu,&mv); /* It is the square of the distance.*/
printf(" d(u,v) = = (");
p_Z(Distance);
printf(")**(1/2)\n\n");
printf("\n Press Return to continue");
getchar();
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -