|
Epstein Zeta Library 0.5.0
Calculates the Epstein Zeta function
|
Calculates the Madelung constant. More...
#include <complex.h>#include <math.h>#include <stdio.h>#include "epsteinZeta.h"
Functions | |
| int | main () |
| calculate madelung constant and compare to precomputed value. | |
Calculates the Madelung constant.
Minimal working example for the Epstein Zeta Library. If the library is installed, compile with gcc -o lattice_sum lattice_sum.c -lm -lepsteinZeta If the library is not installed, compile with gcc -o lattice_sum lattice_sum.c -lm -L/path/to/library -lepsteinZeta -I/path/to/include
| int main | ( | void | ) |
calculate madelung constant and compare to precomputed value.
Madelung constant: sum_{i, j, k in Z} (-1)**(i + j + k) / sqrt(i**2 + j**2 + k**2)