Skip to content

fangrayson/M2R

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

176 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

M2R How does a computer do algebra?

Second year M2R Project
COLLABORATORS:
Aishy Chidambaram, Henry Palasciano, Chengyu Ye, Fan Grayson
INSTRUCTIONS:
WITH THANKS TO:
Dr. David Ham, and Imperial College London

Instructions for using node.py:

  1. Run file in terminal.
  2. Define any symbols or variables you need/want, e.g. x = Symbol('x').
  3. To return a string of any expression object you create, use str(), e.g. str(x + y / 2) returns 'x + y / 2'.


Instructions for using differentiate.py:
1. Run file in terminal.
2. To return a string of any expression you want to differentiate, use str(diff(insert expression, insert variable we differentiate wrt)), e.g. str(diff(x + y, x)) returns '1'.

Instrunctions for using treevisualiser.py:
1. Run file in terminal.
2. To return dot.source for any abstract syntax tree digraph you want to make for an expression, use tree_visualiser(insert expression).

About

M2R Project

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors