GithubHelp home page GithubHelp logo

nklapste / cmput_325_assignment_2 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 110 KB

CMPUT 325 Assignment 2

Home Page: https://webdocs.cs.ualberta.ca/~mmueller/courses/325-Winter-2019/assignment/a2.html

License: MIT License

Common Lisp 100.00%
lisp university-project

cmput_325_assignment_2's Introduction

cmput_325_assignment_2

Overview

In this assignment, you implement a restricted form of the classic problem of simplifying arithmetic expressions. You first implement two simplification operations, then a general algorithm to transform such expressions into a normal form.

The main restriction is that we only deal with the operations +, -, and *, and that the arguments are only integers and a single variable symbol x. Therefore, all expressions eventually simplify to a polynomial in x, with integer coefficients.

Types of Expressions in this Assignment

We have two main types of expressions in this assignment:

  • Assignment 2 expressions or A2Expr are built as explained above
  • polynomials in x or PExpr are represented in a specific short form.

A2Expr - a more formal definition

  • An integer is an A2Expr
  • x is an A2Expr
  • If E1 and E2 are A2Expr, then (+ E1 E2), (- E1 E2) and (* E1 E2) are A2Expr Nothing else is an A2Expr

cmput_325_assignment_2's People

Contributors

nklapste avatar

Watchers

 avatar  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.