{"id":33106193,"url":"https://akuli.github.io/math-tutorial/","last_synced_at":"2025-11-19T17:01:44.777Z","repository":{"id":81319235,"uuid":"103688878","full_name":"Akuli/math-tutorial","owner":"Akuli","description":"Practical math tutorial for programmers.","archived":true,"fork":false,"pushed_at":"2018-10-09T18:38:58.000Z","size":10476,"stargazers_count":25,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-18T05:09:10.857Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Akuli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2017-09-15T18:27:56.000Z","updated_at":"2023-11-16T03:11:39.000Z","dependencies_parsed_at":"2023-04-11T14:36:56.533Z","dependency_job_id":null,"html_url":"https://github.com/Akuli/math-tutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Akuli/math-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akuli%2Fmath-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akuli%2Fmath-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akuli%2Fmath-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akuli%2Fmath-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Akuli","download_url":"https://codeload.github.com/Akuli/math-tutorial/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akuli%2Fmath-tutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285288565,"owners_count":27146139,"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","status":"online","status_checked_at":"2025-11-19T02:00:05.673Z","response_time":65,"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":"2025-11-14T23:00:31.128Z","updated_at":"2025-11-19T17:01:44.772Z","avatar_url":"https://github.com/Akuli.png","language":"Python","funding_links":[],"categories":["Books"],"sub_categories":["Languages"],"readme":"# Math for Programmers\n\nYou can read this tutorial on\n[akuli.github.io/math-tutorial](https://akuli.github.io/math-tutorial).\n\n## Updating the github.io site\n\nThese instructions assume a Debian-based Linux system (e.g. Ubuntu or\nMint). You can do everything on other platforms as well but you need to\nfigure out stuff yourself because I am not interested in writing\ninstructions for every possible platform.\n\n1. Install dependencies.\n\n        $ sudo apt install git dvipng python3-pip asymptote graphviz texlive-binaries\n        $ python3 -m pip install --user --upgrade pip\n        $ python3 -m pip install --user git+https://github.com/akuli/htmlthingy\n\n    `texlive-binaries` is just for `dvisvgm`. If you know some other package\n    that contains a `dvisvgm` program you might be able to use it instead.\n\n2. Check your asymptote version.\n\n        $ asy --version\n\n    If your asymptote version is less than 2.31 things might not work.\n    Click [here](https://sourceforge.net/projects/asymptote/files/) to\n    download a newer asymptote. Then compile it like this (replace 2.31\n    with the correct version number if you downloaded a different version):\n\n        $ sudo apt-get build-dep asymptote\n        $ cd path/to/where/you/downloaded/asymptote\n        $ tar xf asymptote-2.31.src.tgz\n        $ cd asymptote-2.31\n        $ ./configure --prefix=$HOME/.local \u0026\u0026 make \u0026\u0026 make install\n\n    Be sure to use `--prefix` instead of `sudo make install`. This way\n    nothing is too terribly screwed if something goes wrong.\n\n    Try `asy --version`. If it doesn't work, add this to `~/.bashrc`:\n\n        PATH=\"$HOME/.local/bin:$PATH\"\n\n    You can also uninstall the old asymptote that came from apt:\n\n        $ sudo apt remove asymptote\n\n2. *OPTIONAL:* Run the build script and view the output in a web browser\n   to make sure that everything's OK.\n\n        $ ./build.py\n        $ ( yourfavoritebrowser html/index.html \u0026\u003e/dev/null )\u0026\n\n    If you get weird libGL errors like this one...\n\n        libGL error: failed to open drm device: Lupa evätty\n        libGL error: failed to load driver: i965\n\n    ...the problem is probably something with 3D drawings. You can either\n    google for a \"correct\" solution or use this horribly dangerous\n    brute-force hack thing I used:\n\n        $ sudo chmod 777 /dev/dri/card0\n\n    Compiling 3D images still fails randomly. Run the build script multiple\n    times until it succeeds. When it has succeeded once the 3D images are in\n    `imagecache/` and it'll succeed every time (unless you change the 3D images\n    or delete them from `imagecache/`).\n\n3. Run the crazy script if you dare!\n\n        $ ./publish.py\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/akuli.github.io%2Fmath-tutorial%2F","html_url":"https://awesome.ecosyste.ms/projects/akuli.github.io%2Fmath-tutorial%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/akuli.github.io%2Fmath-tutorial%2F/lists"}