Skip to content

Expression evaluation#14

Open
arajhansa wants to merge 2 commits intoIEEE-VIT:masterfrom
arajhansa:ExpressionEvaluation
Open

Expression evaluation#14
arajhansa wants to merge 2 commits intoIEEE-VIT:masterfrom
arajhansa:ExpressionEvaluation

Conversation

@arajhansa
Copy link
Copy Markdown

I've added an uitility to evaluate expressions. It can now handle the operations along with brackets. I've used Postfix evaluation and Infix to Postfix conversion.

With new code, I've refactored to remove redundant code as well.

I've not worked around in bracket evaluation (i.e for input 3(6), the answer would be 36 and not 18). This is related issue in Infix to Postfix conversion. It can be worked around. I'll update it in next PR.

@arajhansa arajhansa mentioned this pull request Oct 8, 2019
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

Successfully merging this pull request may close these issues.

1 participant