Skip to content

Instantly share code, notes, and snippets.

@BillFoster
Created June 10, 2011 22:36
Show Gist options
  • Save BillFoster/1019925 to your computer and use it in GitHub Desktop.
Save BillFoster/1019925 to your computer and use it in GitHub Desktop.
Problem with simplification
{
name: test simplification
questions: [
{
name: testing
variables: {
a: "random(1..5)"
b: "random(1..5)"
}
statement:""" $\simplify{{a}^2-{b}^2}$ and $\simplify[1111110111111111]{{a}^2+4*{a}*{b}}$"""
}
]
}
@BillFoster
Copy link
Author

OK, this does not load properly due to the second simplify. But it will do if get all rules turned on for the second simplify - but then produces one number - not what I want.
The problem seems to be with the three multiplications in this simplify. Delete one it and it works for any two multiplications. Associativity?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment