Epstein Zeta Library 0.5.0
Calculates the Epstein Zeta function
Loading...
Searching...
No Matches
Functions
lattice_sum Namespace Reference

Functions

bool check_madelung ()
 

Detailed Description

Minimal working example for the Epstein Zeta Library.
If the library is installed, run with `python lattice_sum.py`.

Function Documentation

◆ check_madelung()

bool lattice_sum.check_madelung ( )
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)

@return true if the difference to precomputed value is smaller than 10**(-14)