Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

describe 'context' object #6

Open
kevinbarabash opened this issue Feb 17, 2017 · 0 comments
Open

describe 'context' object #6

kevinbarabash opened this issue Feb 17, 2017 · 0 comments

Comments

@kevinbarabash
Copy link
Member

A context object would describe properties of identifiers that might affect how the AST might be manipulated. For instance A*B can be transformed to B*A if A and B are numbers. If they are matrices than the transform would be invalid because matrix multiplication is non-commutative.

Through the process of solving an equation, we may identify certain restrictions on the solutions, e.g. y = (x+1)/(x^2-1). Here x is a real number but x can't be -1 or 1.

Things to describe:

  • value type: scalar, tuple, vector, matrix, etc.
  • number type: real, complex, rational, integer, etc.
  • constraints: list of Constraint objects (intervals, disallowed values, etc.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant