Nstrophy/src/driving.c

18 lines
268 B
C
Raw Normal View History

2022-05-18 07:57:06 +00:00
#include "driving.h"
#include <math.h>
_Complex double g_test(
int kx,
int ky
){
//return sqrt(kx*kx*ky*ky)*exp(-(kx*kx+ky*ky));
if(kx==2 && ky==-1){
return 0.5+sqrt(3)/2*I;
}
else if(kx==-2 && ky==1){
return 0.5-sqrt(3)/2*I;
}
return 0.;
}