{"id":18605600,"url":"https://github.com/fractalate/study-newman-computational-physics","last_synced_at":"2026-04-25T12:34:21.557Z","repository":{"id":259425718,"uuid":"877835426","full_name":"fractalate/study-newman-computational-physics","owner":"fractalate","description":"Newman Computational Physics in Rust","archived":false,"fork":false,"pushed_at":"2025-04-25T09:17:53.000Z","size":678,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-25T10:33:15.930Z","etag":null,"topics":["mathematics","physics","rust"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/fractalate.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-24T10:24:01.000Z","updated_at":"2025-04-25T09:17:57.000Z","dependencies_parsed_at":"2024-11-03T12:33:57.428Z","dependency_job_id":null,"html_url":"https://github.com/fractalate/study-newman-computational-physics","commit_stats":null,"previous_names":["fractalate/rust-newman-computational-physics","fractalate/study-newman-computational-physics"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fractalate%2Fstudy-newman-computational-physics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fractalate%2Fstudy-newman-computational-physics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fractalate%2Fstudy-newman-computational-physics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fractalate%2Fstudy-newman-computational-physics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fractalate","download_url":"https://codeload.github.com/fractalate/study-newman-computational-physics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254595499,"owners_count":22097578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["mathematics","physics","rust"],"created_at":"2024-11-07T02:22:14.124Z","updated_at":"2026-04-25T12:34:16.529Z","avatar_url":"https://github.com/fractalate.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Newman Computational Physics in Rust\n\nHello! Welcome to my self study resources for [Newman Computational Physics (2013)](https://websites.umich.edu/~mejn/cp/). This repository uses Rust and Jupyter notebooks (powered by Python) to work the examples and exercises from the book.\n\n## Index\n\n* Chapter 5\n  - [Exercise 2](./src/ch05/ch05_exercise02.rs)\n  - [Exercise 3](./src/ch05/ch05_exercise03.rs) (Outputs: [3b](./out_ch05_exercise03_b.png))\n  - [Exercise 4](./src/ch05/ch05_exercise04.rs)  (Outputs: [4a](./out_ch05_exercise04_a.png), [4b](./out_ch05_exercise04_b.png))\n  - Exercise 5 ([Notebook](./src/ch05/ch05_exercise05.ipynb))\n  - [Exercise 6](./src/ch05/ch05_exercise06.rs)\n  - [Exercise 7](./src/ch05/ch05_exercise07.rs) (Outputs: [bonus](./out_ch05_exercise07_bonus.png))\n  - [Exercise 8](./src/ch05/ch05_exercise08.rs)\n  - [Exercise 9](./src/ch05/ch05_exercise09.rs) (Outputs: [9b](./out_ch05_exercise09_b.png))\n  - [Exercise 10](./src/ch05/ch05_exercise10.rs) ([Notebook](./src/ch05/ch05_exercise10.ipynb), Outputs: [10b](./out_ch05_exercise10_b.png))\n  - [Exercise 11](./src/ch05/ch05_exercise11.rs) (Outputs: [11](./out_ch05_exercise11.png))\n  - [Example 3](./src/ch05/ch05_example03.rs)\n  - [Exercise 12](./src/ch05/ch05_exercise12.rs) ([Notebook](./src/ch05/ch05_exercise12.ipynb))\n  - [Exercise 13](./src/ch05/ch05_exercise13.rs) (Outputs: [13a](./out_ch05_exercise13_a.png), [13b](./out_ch05_exercise13_b.png))\n  - Exercise 14 ([Notebook](./src/ch05/ch05_exercise14.ipynb))\n\n## Running\n\nFor example,\n\n```\ncargo run --bin ch05_exercise03\n```\n\n## Numerical Methods\n\nThe following numerical methods are implemented as part of this codebase:\n\n* Module `rust_newman_computational_physics::utils::integrate`\n  - [`integrate_gaussian_quadrature`](./src/utils/integrate/integrate_gaussian_quadrature.rs)\n  - [`integrate_gaussian_quadrature_adaptive`](./src/utils/integrate/integrate_gaussian_quadrature.rs)\n  - [`integrate_simpsons_rule`](./src/utils/integrate/integrate_simpsons_rule.rs)\n  - [`integrate_simpsons_rule_adaptive`](./src/utils/integrate/integrate_simpsons_rule.rs)\n  - [`integrate_trapezoidal_rule`](./src/utils/integrate/integrate_trapezoidal_rule.rs)\n  - [`integrate_trapezoidal_rule_adaptive`](./src/utils/integrate/integrate_trapezoidal_rule.rs)\n  - [`integrate_romberg_adaptive`](./src/utils/integrate/integrate_trapezoidal_rule.rs)\n\n## Rust Dependencies\n\nThe `plotters` dependency may require you to additionally install `fontconfig` development files.\nFor me, that required `apt-get install libfontconfig-dev`.\n\n## Python Dependencies\n\nTo set up a Python virtual environment for Jupyter notebooks, from the root of this project:\n\n```\npython3 -m venv venv\nsource venv/bin/activate\n```\n\nThen install dependencies:\n\n```\npip install jupyter matplotlib numpy scipy\n```\n\nWhen returning to the project, activate your Python virtual environment again:\n\n```\nsource venv/bin/activate\n```\n\nNotebooks are distributed throughout the project, so you can open up Jupyter in the root of this project:\n\n```\njupyter notebook\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffractalate%2Fstudy-newman-computational-physics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffractalate%2Fstudy-newman-computational-physics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffractalate%2Fstudy-newman-computational-physics/lists"}