math function convert to pieces ..

If i have x^2+5^(3y+1)-e^x^-1
must have in stack ...for example if i have a calculator like HP48
x
2
^
5
3
y
*
1
+
^
+
e
x
-1
^
^
-
There is a funtion to analyze these functions in a stack, not only with this way???

I am stucked with this problem ...
english please...
@Jasonwynn10 He did speak in English, if you didn't understand you could have simply asked him to clarify or ask some probing questions.

Anyways, @OP are you asking if there is a built in function that will parse an equation into a infix/postfix equation?

*Edit I suppose I am asking, are you trying to convert from infix to postfix using a stack? This is what it looks like because in your case

Infix   :  x^2+5^(3y+1)-e^x^-1 
postfix: x 2 ^ 5 3 y * 1 + ^ + e x -1 ^ ^ -
//or maybe
postifx: x 2 ^ 5 3 y * 1 + ^ + e x 1 - ^ ^ -
//little bit rusty with postfix forgot how negatives are handled


*edit 2 if this is the case then these links may help
http://stackoverflow.com/questions/12684086/convert-from-an-infix-expression-to-postfix-c-using-stacks
http://www.cplusplus.com/forum/general/88666/
http://codereview.stackexchange.com/questions/57447/infix-to-postfix-conversion
https://www.youtube.com/watch?v=uGPzXmkZTtE
Last edited on
I did not speak english. Only ancient Greek.... sorry..
Thank's for reply.
Last edited on
Topic archived. No new replies allowed.