{"id":20598400,"url":"https://github.com/kkirsche/python-madelungconstant","last_synced_at":"2026-05-29T08:31:16.734Z","repository":{"id":6617102,"uuid":"7860594","full_name":"kkirsche/python-MadelungConstant","owner":"kkirsche","description":"Use python to calculate the madelung constant","archived":false,"fork":false,"pushed_at":"2013-01-29T00:25:53.000Z","size":116,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-06T15:27:42.896Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kkirsche.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-28T00:55:37.000Z","updated_at":"2024-09-30T05:09:37.000Z","dependencies_parsed_at":"2022-09-16T07:51:48.284Z","dependency_job_id":null,"html_url":"https://github.com/kkirsche/python-MadelungConstant","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kkirsche/python-MadelungConstant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fpython-MadelungConstant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fpython-MadelungConstant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fpython-MadelungConstant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fpython-MadelungConstant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkirsche","download_url":"https://codeload.github.com/kkirsche/python-MadelungConstant/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fpython-MadelungConstant/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33644149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T08:26:43.711Z","updated_at":"2026-05-29T08:31:16.707Z","avatar_url":"https://github.com/kkirsche.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"python-MadelungConstant\n=======================\n\nUse python to calculate the madelung constant for NaCl.\n\nThis program is an answer to exercise 2.8 (pg. 73) of Chapter 2, Python Programming for Physists, of [Computational Physics](http://www.amazon.com/Computational-Physics-Edition-Nicholas-Giordano/dp/0131469908/ref=sr_1_1?ie=UTF8\u0026qid=1359335955\u0026sr=8-1\u0026keywords=computational+physics)\n\nThe prompt is:\nWrite a program to calculate and print the Madelung constant for sodium chloride.\nUse as large a value of L as you can, while still having your program run in reasonable\ntime—say in a minute or less.\n\nmadelung.py is the fastest, but consumes a large amount of memory\nmadelung-v2-betterExplanation.py explains some of what is happening and why, but isn't as fast.\n\nThe last is a while loop version that is highly inefficient. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkirsche%2Fpython-madelungconstant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkirsche%2Fpython-madelungconstant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkirsche%2Fpython-madelungconstant/lists"}