MCPcopy Index your code
hub / github.com/pim-book/programmers-introduction-to-mathematics

github.com/pim-book/programmers-introduction-to-mathematics @main

repository ↗ · DeepWiki ↗ · + Follow
370 symbols 1,452 edges 42 files 74 documented · 20% updated 3y ago★ 3,6554 open issues
README

A Programmer's Introduction to Mathematics

CircleCI Coverage Status Language grade: Python

This repository contains the code implementing the applications from each chapter of A Programmer's Introduction to Mathematics. All code is written in Python 3.x. Feel free to submit a pull request if you find a bug.

To install the requirements and run the examples, using pip and virtualenv (Python's standard packaging tools):

virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt

To run the test suite:

pytest

# with code coverage
pytest --cov-report html:cov_html  --cov-report annotate:cov_annotate --cov

Docker

To build and run the code in the repository with docker, run

docker build -t pimbook -f Dockerfile . 
docker run -it --name pimbook pimbook:latest 

Core symbols most depended-on inside this repo

evaluate
called by 20
neural_network/neural_network.py
is_close_to
called by 15
hyperbolic_tessellation/geometry.py
at_point
called by 15
hyperbolic_tessellation/geometry.py
fromCartesianX
called by 12
waves/javascript_demo/main.js
fromCartesianY
called by 12
waves/javascript_demo/main.js
make_input_nodes
called by 11
neural_network/neural_network.py
interpolate
called by 11
secret_sharing/interpolate.py
intersect_with
called by 9
hyperbolic_tessellation/geometry.py

Shape

Function 200
Method 139
Class 31

Languages

Python89%
TypeScript11%

Modules by API surface

neural_network/neural_network.py62 symbols
hyperbolic_tessellation/geometry.py44 symbols
hyperbolic_tessellation/geometry_test.py42 symbols
neural_network/neural_network_test.py23 symbols
stable_marriages/stable_marriage.py19 symbols
hyperbolic_tessellation/tessellation.py17 symbols
waves/javascript_demo/springs.js15 symbols
waves/javascript_demo/main.js14 symbols
secret_sharing/polynomial.py14 symbols
waves/javascript_demo/geometry.js12 symbols
secret_sharing/polynomial_test.py12 symbols
planar_5_coloring/color_test.py9 symbols

Dependencies from manifests, versioned

babel-cli6.22.2 · 1×
babel-core6.22.1 · 1×
babel-preset-es20156.22.0 · 1×
babelify7.3.0 · 1×
browserify14.1.0 · 1×
d34.7.4 · 1×
d3-drag1.0.4 · 1×
fsevents1.1.3 · 1×
gulp3.9.1 · 1×
gulp-sourcemaps2.4.1 · 1×
gulp-uglify2.0.1 · 1×
jquery3.5.0 · 1×

For agents

$ claude mcp add programmers-introduction-to-mathematics \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact