semantic-math / math-rules

Manipulate math-ast ASTs based on algebraic rules
MIT License
4 stars 1 forks source link

Demo page #24

Open kevinbarabash opened 7 years ago

kevinbarabash commented 7 years ago

It would be nice if people could experiment writing pattern based rewrite rules and then test them expressions in the browser.

tkosan commented 7 years ago

I found it to be useful to have people practice with just the pattern matching part of rules before moving on to full rules. To see what I mean you can do the following:

I have not added the ability to enter a complete rule into the text field yet, but this should be easy to do.

If you think this kind of GUI would be useful for experimenting with the math-rules rewrite rules, it shouldn't be too difficult to modify my expression structure app to work with math-rules.

kevinbarabash commented 7 years ago

I was going to start with a very simple page with a couple of textfields, nothing fancy. I wanted it mainly as a dev tool at the moment. I'm curious about the different modes. What does each of them do?

tkosan commented 7 years ago

The "Help" page contains an explanation of the modes. The short research paper that is linked to on the help page provides a justification for why expression trees should be used to teach the structure that mathematical expressions possess. The modes in the application are experimental ways I have come up with so far to teach expression structure using trees.

The manipulation application that is in MathPiperIDE implements some of the more advanced ideas that are in the research paper. The paper was published in 1987, and I am baffled why its content has never been implemented in the schools.

kevinbarabash commented 7 years ago

Interesting. I wasn't aware of the research. I wish the article would've compared students' ability to transform fully parenthesized expressions against those that weren't, e.g.

5*((4+3)+2) --> (5*4)+((2+3)*5)
5*(4+3+2) --> 5*4 + 5*3 + 5*2

I wonder how much it has to do with seeing an expression tree vs. whether the expression tree is binary or n-ary.

tkosan commented 7 years ago

I wonder how much it has to do with seeing an expression tree vs. whether the expression tree is binary or n-ary.

It shouldn't be too difficult to answer this question if one had access to a group of students to use as research subjects. The difficult part is gaining access to such students.