$ luarocks install symdiff    This module fills the gap in symbolic math currently
    present in the Lua space. This supports differentiation
    of algebraic expressions of variables and/or functions
    wrapped by its API.
  
Versions
Dependencies
lua >= 5.1, < 5.5