Code Monkey home page Code Monkey logo

classical-mechanics's Introduction

Structure and Interpretation of Classical Mechanics

What is this project?

At its core, it is an implementation of the book Structure and Interpretation of Classical Mechanics by Gerald Jay Sussman and Jack Wisdom.

This involves creating a Haskell implementation of the Scheme library scmutils, which includes toolboxes for symbolic algebra, differentiation and integration.

A key feature is that the routines for differentation and integration are agnostic to the underlying type - the same functions are overloaded to work with symbolic expressions or with numerical quantities. For example, we could define a polynomial function

>>> let f a = (1+a)^3

which applies equally to numbers and symbolic expressions:

>>> f 2
27
>>> f x
1.0 + 3.0x + 3.0x² + x³

We can also find the first four derivates both numerically and symbolically:

>>> dTake 4 $ f (dVar 2)
[27,27,18,6]
>>> dTake 4 $ f (dVar x)
[1.0 + 3.0x + 3.0x² + x³,3.0 + 6.0x + 3.0x²,6.0 + 6.0x,6.0]

Eventually the library will include type-agnostic integration routines as well.

Get the book here.

Who is it by?

Chris Taylor. You can find me at Stack Overflow or Math.StackExchange or look at my LinkedIn profile or follow me on Twitter.

classical-mechanics's People

Contributors

chris-taylor avatar

Watchers

Edvan Sousa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.