fherbine / computorV2

Basically a reproduction of `bc`.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Computer V2

A 42 project which is basically a reproduction of bc. Final grade 124/100

How to install

  • Make sure that you've installed requirements.txt with pip
  • Run the program with: python3 main.py
  • Type help after prompt for usage.
  • Or see pdf(EN) or pdf(FR) for usage.

How to run Unittests:

  • Please install pytest with pip
  • Then run python -m pytest . at the root of the repository

Todos:

MANDATORY

  • Lexer
  • Parser
    • variables handling
    • functions handling
    • complex handling
    • matrix handling
  • Math lib

Bonus

  • Documentation
  • Unittests
  • Function curve display (Kivy)
  • Added usual functions
  • Radian computation for angles
  • Function composition
  • Norm computation
  • History of commands w/results
  • Matrix inversion
  • An extension of the matrix computation applied to vector computation
  • Integer divs (floordivs)
  • Others (cmds: quit, help, stored vars, ...)
    • quit
    • vars
    • funcs
    • draw BEWARE: draw is not compatible w/MacOSX

About

Basically a reproduction of `bc`.


Languages

Language:Python 100.0%