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:
- Run file in terminal.
- Define any symbols or variables you need/want, e.g. x = Symbol('x').
- 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).