Quantitative Poems is an exploration of the human condition through poetry, mathematics, and artificial intelligence. It contains equations ("poems") generated by artificial intelligence on themes such as discovery, love, and nature. It's still a work in progress, and I need to improve the generation algorithm, but I wanted to share what I have so far!
📘 Read Online: Quantitative Poems.
📙 Purchase it: Amazon Link (Paperback coming soon!).
If you're interested (and have lots of spare OpenAI credits), you can generate the book yourself.
Ensure you have the following tools installed:
- Pipenv: A tool for managing Python packages. Install from here.
- Lualatex: A typesetting system. Learn more.
Additionally, you will need an OpenAI API Key. Set OPENAI_API_KEY
in your environment variables to authenticate your requests.
- Clone repository: Clone the project's repository to your local machine. Replace with the actual URL of the repository.
git pull <repo-url>
- Install dependencies: Navigate to the project directory and install the necessary dependencies using Pipenv.
cd quantitative-poems
pipenv install
- Create layout: Generate the layout for the book.
pipenv run run_make_layout
- Create equations: Create equations (or "poems").
Note
This will use your OpenAI credits.
pipenv run run_equations
- Generate book: Compile the equations and layout into a pdf.
pipenv run gen_book
Contributions are welcome! If you're interested, please open an issue with your proposed changes!