Initial commit
Basic build infrastructure, license, and readme files.
This commit is contained in:
44
README.md
Normal file
44
README.md
Normal file
@@ -0,0 +1,44 @@
|
||||
# Triangle Square Cubes
|
||||
|
||||
Following Matt Parker's Video on Squares of Triangle Numbers being sum of cubes,
|
||||
and the Partridge Problem: https://youtu.be/eqyuQZHfNPQ?si=hbOQdVKBC-jwvysk.
|
||||
|
||||
This repository contains code that will find solutions to the problem.
|
||||
|
||||
## Copyright & Licence
|
||||
|
||||
This code is copyright 2025 Matthew Gretton-Dann. Licensed under the
|
||||
Apache-2.0 license.
|
||||
|
||||
## Running the code
|
||||
|
||||
### Initial setup
|
||||
|
||||
Prerequisite is to have `git` and `opam` installed on the path.
|
||||
|
||||
```sh
|
||||
git clone ...
|
||||
cd triangle-square-cubes
|
||||
opam switch create .
|
||||
opam update
|
||||
opam install . --deps-only
|
||||
```
|
||||
|
||||
### Building
|
||||
|
||||
```sh
|
||||
dune build
|
||||
```
|
||||
|
||||
### Testing
|
||||
|
||||
```sh
|
||||
dune runtest
|
||||
```
|
||||
|
||||
### Executing
|
||||
|
||||
```sh
|
||||
N=9 # Set N to largest size of square.
|
||||
dune exec partridge $N
|
||||
```
|
||||
Reference in New Issue
Block a user