Skip to content
/ math Public

some independent work. any errors are wholly my own.

License

Notifications You must be signed in to change notification settings

phetdam/math

Repository files navigation

math

./banner.png

Some mathematical work that I have done on my own for fun.

Note:

Still deciding on a new banner.

See the Building PDFs from TeX source section for how to compile the .tex source in tex into PDF and see the Building the C++ source section for how to build the accompanying C++ source code using CMake.

Any mathematical errors are wholly my own.

Contents

examples

Contains C++ source and CMakeLists.txt for building CLI executables. These typically will compute some numerical result or demonstrate an implementation as instructed in an exercise or other application.

include

Contains C++ headers and CMakeLists.txt for library code used by the CLI executables in examples. There is no src directory since all the code currently written is either templated or implemented as inline.

test

Contains C++ source and CMakeLists.txt for unit tests written with GoogleTest. If tests have been built, they can be run with run_tests.sh, which is a thin convenience script around ctest.

tex

Contains the .tex source for my independent mathematical work. The exercises directory is for worked exercises from textbooks, monographs, etc., while the original directory is for my own original work. The utils directory is for LaTeX setup or command definitions, which may be used in other .tex files, typically by using \input.

Building the C++ source

TBA. This project depends on Boost 1.71 and Eigen 3.4 headers and is intended to be built using CMake 3.16 or newer using a C++17-compliant compiler. Local builds on WSL 1 Ubuntu 20.04.3 LTS used GCC 9.3.0 while Windows 10 builds used the VS 2022 x86 MSVC. Optionally, if one has GoogleTest installed, the unit tests can be built and run.

Building PDFs from TeX source

You may compile the .tex source to PDF files using the provided build_pdf.sh shell script if you have the bash shell [1] and pdflatex. After using git clone to clone the repository contents, cd into the top-level repository directory, use chmod to set permissions appropriately, for example with chmod 777 build_pdf.sh, and execute

./build_pdf.sh

build_pdf.sh will then compile all .tex files in tex and write its output to the pdf directory, which will mirror the directory tree of tex. The pdf directory and its subdirectories will be created as needed. If you do not wish to adjust permissions, use bash build_pdf.sh instead of executing with ./.

You can view help on more advanced use of build_pdf.sh with build_pdf.sh -h or build_pdf.sh --help.

[1]The bash shell is necessary since the improved [[ is used once in build_pdf.sh.

About

some independent work. any errors are wholly my own.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published