Metadata-Version: 2.1
Name: single-variable-expression-parser-ALIEZZAT
Version: 0.0.1
Summary: A package for parsing mathmatical expressions
Home-page: https://github.com/AliEzzatOdeh/SingleVariableExpressionParser
Author: ALIEZZAT ODEH
Author-email: aliezzat1993@outlook.com
License: UNKNOWN
Description: # SingleVariableExpressionParser [![Build Status](https://travis-ci.com/AliEzzatOdeh/SingleVariableExpressionParser.svg?branch=master)](https://travis-ci.com/AliEzzatOdeh/SingleVariableExpressionParser)
        
        Python package for parsing single variable mathmatical expressions.
        
        Table of supported math operations:
        
        | Operation      | Syntax        | # of operands   |
        | -------------  |:-------------:| ---------------:|
        | Addition       |     +         |       2         |
        | Subtraction    |     sub       |       2         |
        | Multiplication |     *         |       2         |
        | Division       |     /         |       2         |
        | L.Parantheses  |     (         |       >=1       |
        | R.Parantheses  |     )         |       >=1       |
        | sin            |     sin       |       1         |
        | cos            |     cos       |       1         |
        | tan            |     tan       |       1         |
        | seq            |     seq       |       1         |
        | csc            |     csc       |       1         |
        | cot            |     cot       |       1         |
        | power          |     ^         |       2         |
        | square root    |     sqr       |       1         |
        | minus          |     -         |       1         |
        
        ## Usage
        
        Import the module as the following:
        
        ```
        import { single_variable_parser } from SingleVariableParser
        ```
        Then it should be used as:
        
        ```
        parser = SingleVariableParser()
        parser.set_math_function_text('sqr(16)+1') # For constant expression
        result = parser.compute_function_at_value(0) # Here input has no effect on result since it is constant
        print(result) # 5 will be printer 
        
        parser = SingleVariableParser()
        parser.set_math_function_text('x*2+x^2+5')
        result = parser.compute_function_at_value(4) # Value of x will be 4
        print(result) # 29 will be printed
        ```
        
        ## Running unit tests
        
        Run `python3 -m unittest discover` to execute the unit tests via `unittest`.
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.6
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Development Status :: 3 - Alpha
Requires-Python: >=3.6
Description-Content-Type: text/markdown
