raj457036 / Simple-Tools

This repo contains simple tools like clock, Calculator, etc.
https://raj457036.github.io/Simple-Tools/
34 stars 11 forks source link

Hello Raj In Infix to postfix and prefix conversion part, Result of prefix expression are not correct. #3

Closed Vedbhanushali closed 3 years ago

Vedbhanushali commented 3 years ago

For Example take this infix expression - (A^B)/DE/(F+A)(DE)-C Your result : /^AB/DE-+FADEC actual result should be : - / / ^ A B D E + F A * D E C

Reference of a converter site. https://www.free-online-calculator-use.com/infix-to-prefix-converter.html

raj457036 commented 3 years ago

Fixed the issue!

first below expression in wrong (A^B)/DE/(F+A)(DE)-C

It should be 👇 (A^B)/D*E/(F+A)*(D*E)-C

For the site: that sites solution is wrong 😑 please try with real numbers and evaluate the result u will get my point.