Skip to content

tlehman/literate-classical-physics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Literate Classical Physics

A literate C program written in CWEB that implements a classical 3D physics simulator and renderer in OpenGL.

How to understand

Read lcp.pdf to understand the physics and the code.

How to compile and run

Dependencies:

  • pdflatex
  • cwebx
  • gcc

On Ubuntu Linux, this will install the above dependencies

sudo apt install texlive-latex-base texlive-latex-recommended texlive-latex-extra
 cwebx gcc

On MacOS, using homebrew, this will install equivalent dependencies:

brew install mactex

CWEBx is available in source form here: http://wwwmathlabo.univ-poitiers.fr/~maavl/CWEBx/

How to 'weave' the lcp.w CWEB source code into a PDF

make

Misc commands

tlmgr install pdftexcmds

About

Literate Classical Physics (LCP) is a literate program implementing classical physics

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published