diff options
author | Ian Jauslin <ian@jauslin.org> | 2022-05-18 09:57:06 +0200 |
---|---|---|
committer | Ian Jauslin <ian@jauslin.org> | 2022-05-18 09:57:06 +0200 |
commit | f21ab0d79594c23ead5b98a31ad6b6fb82d8b88a (patch) | |
tree | bca0d5fbe7f3dc5c8c049f162c200fb086246194 /src/driving.c | |
parent | c32c52c94ab393f970e2e0a1289ae22e7ca08c9c (diff) |
Rewrite: change cli arguments handling
Diffstat (limited to 'src/driving.c')
-rw-r--r-- | src/driving.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/driving.c b/src/driving.c new file mode 100644 index 0000000..56bea63 --- /dev/null +++ b/src/driving.c @@ -0,0 +1,17 @@ +#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.; +} + |