I´m learning Perl, I would like to surrounded an expression like that
function1(mathematical_expresion1)*function2(mathematical_expresion2)
Where 'function1'and 'function2' could be whatever word and combine numbers inside, for instance function1 could be fun3dec, fun4nels, factor9 or whatever... so my code will became this
surrounded(function1(mathematical_expresion1)*function2(mathematical_expresion2))surroundedend
Where surrounded and surroundedend are string chains.
So if I have an expression like this:
exp(-49/200)-exp(-49/200)*(x-49/200)+1/2*exp(-49/200)*(x-49/200)^2-1/6*exp(-49/200)*(x-49/200)^3+1/24*exp(-49/200)*(x-49/200)^4-1/120*exp(-49/200)*(x-49/200)^5+1/720*exp(-49/200)*(x-49/200)^6-1/5040*exp(-49/200)*(x-49/200)^7+1/40320*exp(-49/200)*(x-49/200)^8-1/362880*exp(-49/200)*(x-49/200)^9+1/3628800*exp(-49/200)*(x-49/200)^10-1/39916800*exp(-49/200)*(x-49/200)^11+1/479001600*exp(-49/200)*(x-49/200)^12
I could surround a all multiplication of two terms in the previous expression.
Thank you for teach me Perl!