Ian Jauslin
summaryrefslogtreecommitdiff
blob: f12c5fe5b001b9de4b7502155ba1aa04c4b9e974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#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.;
}

#define UNUSED(x) (void)(x)
_Complex double g_zero(
  int kx,
  int ky
){
  // avoid unused variable warnings
  UNUSED(kx);
  UNUSED(ky);
  return 0.;
}