fork download
  1. #include <iostream>
  2. #include <stack>
  3. #include <math.h>
  4. #include <cstdlib>
  5. #include <cctype>
  6. #include <queue>
  7. #include <cassert>
  8. #include <iomanip>
  9. #include <fstream>
  10. #define MAXN 1000000
  11. #define PARENTHESIS 1
  12. #define FUNCTION 2
  13. #define UNARY_PLUS_AND_MINUS 3
  14. #define LOGICAL_NOT 3
  15. #define BIT_NOT 3
  16. #define MULT_DIV_MOD 5
  17. #define ADD_AND_SUB 6
  18. #define BIT_LEFT_AND_RIGHT 7
  19. #define BIT_AND 10
  20. #define BIT_EXCLUSIVE 11
  21. #define BIT_OR 12
  22. #define LOGICAL_AND 13
  23. #define LOGICAL_OR 14
  24. #define COMMA 15
  25.  
  26. using namespace std;
  27.  
  28. typedef struct component
  29. {
  30. string symbol;
  31. int priority;
  32. }Component;
  33.  
  34. using namespace std;
  35.  
  36. string removeSpace(string line)
  37. {
  38. for(int i = 0; i < line.length(); i++)
  39. if(line.at(i) == ' ')
  40. {
  41. line.erase(i, 1);
  42. i--;
  43. }
  44. return line;
  45. }
  46.  
  47. bool isNumber(string line)
  48. {
  49. if(line.length() == 1 && (line[0] == '+' || line[0] == '-'))
  50. return false;
  51.  
  52. for(int i = 0; i < line.length(); i++)
  53. {
  54. if(!(isdigit(line[i]) || line[i] == '+' || line[i] == '-' || line[i] == '.'))
  55. return false;
  56. }
  57. return true;
  58. }
  59.  
  60. double toNumber(string line)
  61. {
  62. double number = 0; bool floating = false; int index;
  63. for(index = 0; index < line.length(); index++)
  64. {
  65. if(line[index] == '.')
  66. {
  67. floating = true;
  68. break;
  69. }
  70. }
  71.  
  72. if(floating == true)
  73. {
  74. for(double i = index - 1, j = 1; i >= 0; i--, j *= 10)
  75. {
  76. if(line[i] == '+');
  77. else if(line[i] == '-')
  78. number *= -1;
  79. else
  80. number += j * (line[i] - '0');
  81. }
  82. for(double i = index + 1, j = 0.1; i < line.length(); i++, j /= 10)
  83. {
  84. if(line[0] == '-')
  85. number -= j * (line[i] - '0');
  86. else
  87. number += j * (line[i] - '0');
  88. }
  89. }
  90. else
  91. {
  92. for(int i = line.length() - 1, j = 1; i >= 0; i--, j *= 10)
  93. {
  94. if(line[i] == '+');
  95. else if(line[i] == '-')
  96. number *= -1;
  97. else
  98. number += j * (line[i] - '0');
  99. }
  100. }
  101. return number;
  102. }
  103.  
  104. string readNumber(string operation, int& index)
  105. {
  106. string buffer;
  107. while(index < operation.length() && (isdigit(operation.at(index)) || operation.at(index) == '.'))
  108. {
  109. buffer += operation.at(index);
  110. index++;
  111. }
  112. return buffer;
  113. }
  114.  
  115. void check_and_push(stack<Component>& bufferStack, queue<string>& postfix, Component component)
  116. {
  117. while((!bufferStack.empty()) && bufferStack.top().priority <= component.priority && bufferStack.top().symbol != "(")
  118. {
  119. if(component.priority == 3 && bufferStack.top().priority == 3)
  120. break;
  121. postfix.push(bufferStack.top().symbol);
  122. bufferStack.pop();
  123. }
  124. bufferStack.push(component);
  125. }
  126.  
  127. string addZero(string line)
  128. {
  129. int index;
  130. for(index = 0; index < line.length(); index++)
  131. {
  132. if(line[index] == '.')
  133. break;
  134. }
  135.  
  136. if(index == line.length())
  137. line += ".";
  138.  
  139. int afterDot = line.length() - 1 - index;
  140. for(int i = 0; i < 6 - afterDot; i++)
  141. line += "0";
  142. return line;
  143. }
  144.  
  145. void pop_all(stack<Component>& bufferStack, queue<string>& postfix)
  146. {
  147. while(bufferStack.top().symbol != "(" && bufferStack.top().symbol != ",")
  148. {
  149. postfix.push(bufferStack.top().symbol);
  150. bufferStack.pop();
  151. }
  152. bufferStack.pop();
  153. }
  154.  
  155. void traverseLine(string operation, stack<Component>& bufferStack, queue<string>& postfix, int& index)
  156. {
  157. Component component;
  158. string buffer;
  159.  
  160. if(operation.at(index) == ')')
  161. {
  162. index++;
  163. pop_all(bufferStack, postfix);
  164. return;
  165. }
  166. if(operation.at(index) == ',')
  167. {
  168. component.symbol = ",";
  169. component.priority = COMMA;
  170. index++;
  171. pop_all(bufferStack, postfix);
  172. bufferStack.push(component);
  173. return;
  174. }
  175. // read number
  176. if(isdigit(operation.at(index)) || operation.at(index) == '.')
  177. {
  178. buffer = readNumber(operation, index);
  179. postfix.push(buffer);
  180. }
  181. else if(operation.at(index) == '+' || operation.at(index) == '-')
  182. {
  183. // unary plus and minus
  184. if(index == 0 || (!isdigit(operation.at(index - 1)) && operation.at(index - 1) != ')'))
  185. {
  186. component.symbol += operation.at(index);
  187. component.symbol += "PM";
  188. index++;
  189. component.priority = UNARY_PLUS_AND_MINUS;
  190. }
  191. // addtion and substraction
  192. else
  193. {
  194. component.symbol = operation.at(index);
  195. index++;
  196. component.priority = ADD_AND_SUB;
  197. }
  198. check_and_push(bufferStack, postfix, component);
  199. }
  200. else if(operation.at(index) == '*' || operation.at(index) == '/')
  201. {
  202. component.symbol = operation.at(index);
  203. index++;
  204. component.priority = MULT_DIV_MOD;
  205. check_and_push(bufferStack, postfix, component);
  206. }
  207. else if(operation.at(index) == 's' && operation.at(index + 1) == 'i')
  208. {
  209. component.symbol = "sin";
  210. index += 3;
  211. component.priority = FUNCTION;
  212. check_and_push(bufferStack, postfix, component);
  213. }
  214. else if(operation.at(index) == 'c' && operation.at(index + 1) == 'o')
  215. {
  216. component.symbol = "cos";
  217. index += 3;
  218. component.priority = FUNCTION;
  219. check_and_push(bufferStack, postfix, component);
  220. }
  221. else if(operation.at(index) == 's' && operation.at(index + 1) == 'q')
  222. {
  223. component.symbol = "sqrt";
  224. index += 4;
  225. component.priority = FUNCTION;
  226. check_and_push(bufferStack, postfix, component);
  227. }
  228. else if(operation.at(index) == 'e' && operation.at(index + 1) == 'x')
  229. {
  230. component.symbol = "exp";
  231. index += 3;
  232. component.priority = FUNCTION;
  233. check_and_push(bufferStack, postfix, component);
  234. }
  235. else if(operation.at(index) == 'l' && operation.at(index + 1) == 'o')
  236. {
  237. component.symbol = "log";
  238. index += 3;
  239. component.priority = FUNCTION;
  240. check_and_push(bufferStack, postfix, component);
  241. }
  242. else if(operation.at(index) == 'p' && operation.at(index + 1) == 'o')
  243. {
  244. component.symbol = "pow";
  245. index += 3;
  246. component.priority = FUNCTION;
  247. check_and_push(bufferStack, postfix, component);
  248. }
  249. else if(operation.at(index) == 'f' && operation.at(index + 1) == 'a')
  250. {
  251. component.symbol = "fabs";
  252. index += 4;
  253. component.priority = FUNCTION;
  254. check_and_push(bufferStack, postfix, component);
  255. }
  256. else
  257. {
  258. if(operation.at(index) != '(')
  259. {
  260. cout << operation.at(index);
  261. exit(-1);
  262. }
  263. else if(index >= 3 && operation.at(index) == '(' && operation.at(index - 1) == 'w')
  264. {
  265. index++;
  266. component.symbol = "(";
  267. component.priority = PARENTHESIS;
  268. check_and_push(bufferStack, postfix, component);
  269. }
  270. else
  271. {
  272. component.symbol = "(";
  273. index++;
  274. component.priority = PARENTHESIS;
  275. check_and_push(bufferStack, postfix, component);
  276. traverseLine(operation, bufferStack, postfix, index);
  277. }
  278. }
  279. }
  280.  
  281. void printPostfix(queue<string>& postfix, deque<string>& calculator)
  282. {
  283. cout << "Postfix Exp: ";
  284. while(!postfix.empty())
  285. {
  286. if(postfix.front().length() == 3 && postfix.front().at(2) == 'M')
  287. cout << postfix.front().at(0) << " ";
  288. else if(isNumber(postfix.front()))
  289. {
  290. postfix.front() = addZero(postfix.front());
  291. cout << postfix.front() << " ";
  292. }
  293. else
  294. cout << postfix.front() << " ";
  295. calculator.push_front(postfix.front());
  296. postfix.pop();
  297. }
  298. cout << endl;
  299. }
  300.  
  301. double calculate(deque<string>& calculator)
  302. {
  303. stack<double> buffer;
  304. while(!calculator.empty())
  305. {
  306. if(isNumber(calculator.back()))
  307. {
  308. buffer.push(toNumber(calculator.back()));
  309. calculator.pop_back();
  310. }
  311. else if(calculator.back() == "*")
  312. {
  313. calculator.pop_back();
  314. double a = buffer.top(); buffer.pop();
  315. double b = buffer.top(); buffer.pop();
  316. buffer.push(b * a);
  317. }
  318. else if(calculator.back() == "/")
  319. {
  320. calculator.pop_back();
  321. double a = buffer.top(); buffer.pop();
  322. double b = buffer.top(); buffer.pop();
  323. buffer.push(b / a);
  324. }
  325. else if(calculator.back() == "+PM")
  326. {
  327. calculator.pop_back();
  328. }
  329. else if(calculator.back() == "-PM")
  330. {
  331. calculator.pop_back();
  332. double a = buffer.top(); buffer.pop();
  333. buffer.push(-a);
  334. }
  335. else if(calculator.back() == "+")
  336. {
  337. calculator.pop_back();
  338. double a = buffer.top(); buffer.pop();
  339. double b = buffer.top(); buffer.pop();
  340. buffer.push(b + a);
  341. }
  342. else if(calculator.back() == "-")
  343. {
  344. calculator.pop_back();
  345. double a = buffer.top(); buffer.pop();
  346. double b = buffer.top(); buffer.pop();
  347. buffer.push(b - a);
  348. }
  349. else if(calculator.back() == "sin")
  350. {
  351. calculator.pop_back();
  352. double a = buffer.top(); buffer.pop();
  353. buffer.push(sin(a));
  354. }
  355. else if(calculator.back() == "cos")
  356. {
  357. calculator.pop_back();
  358. double a = buffer.top(); buffer.pop();
  359. buffer.push(cos(a));
  360. }
  361. else if(calculator.back() == "exp")
  362. {
  363. calculator.pop_back();
  364. double a = buffer.top(); buffer.pop();
  365. buffer.push(exp(a));
  366. }
  367. else if(calculator.back() == "sqrt")
  368. {
  369. calculator.pop_back();
  370. double a = buffer.top(); buffer.pop();
  371. buffer.push(sqrt(a));
  372. }
  373. else if(calculator.back() == "log")
  374. {
  375. calculator.pop_back();
  376. double a = buffer.top(); buffer.pop();
  377. buffer.push(log(a));
  378. }
  379. else if(calculator.back() == "fabs")
  380. {
  381. calculator.pop_back();
  382. double a = buffer.top(); buffer.pop();
  383. buffer.push(fabs(a));
  384. }
  385. else
  386. {
  387. calculator.pop_back();
  388. double a = buffer.top(); buffer.pop();
  389. double b = buffer.top(); buffer.pop();
  390. buffer.push(pow(b, a));
  391. }
  392. }
  393. return buffer.top();
  394. }
  395.  
  396. int main(void)
  397. {
  398. string operation; stack<Component> bufferStack; queue<string> postfix; deque<string> calculator;
  399.  
  400. while(getline(cin, operation))
  401. {
  402. operation = removeSpace(operation);
  403. int index = 0;
  404. while(index < operation.length())
  405. traverseLine(operation, bufferStack, postfix, index);
  406.  
  407. while(!bufferStack.empty())
  408. {
  409. postfix.push(bufferStack.top().symbol);
  410. bufferStack.pop();
  411. }
  412.  
  413. printPostfix(postfix, calculator);
  414. cout << "RESULT: " << fixed << setprecision(6) << calculate(calculator) << endl;
  415. assert(bufferStack.empty() && postfix.empty() && calculator.empty());
  416. }
  417. }
Success #stdin #stdout 0s 3264KB
stdin
fabs( 137.8972 * -35.385 -35.0179+ + +- -13.3217+ +- 79.1416 *18.3689* 103.9091- 2.3046- -102.9768)+ ++ + -106.4213
-150.616 +-94.7961 + -106.6701
log( 65.5324- +(sin( cos( (sqrt(16.2842) ) * 118.8595 - 15.3372*-58.7578*- 67.1191 -( 82.8117 +49.9751--189.7665 * -68.6169+--4.4035 ) + -11.3528 ) * --89.1646++-19.7218 *( -167.9402 ) )+48.0481-+(log( -51.3475) * 81.8865 )- 6.6095 --104.6181) )
-54.7413*229.3627 -+ 58.8013 - (sin( sqrt( log( (13.6863))+ -76.1946) ))-+ 55.5281- -39.437 + -5.0611- +29.7492+ -51.11 -( exp( 37.7395* 110.0429 +17.853 ) + 78.8385 - + -104.7757)* - ( 64.9404 )- -3.0569 *--( -103.8315 + 54.9524 + -25.473-110.2621 - +23.4628+ -80.0514 *-74.9989* -130.2708+29.2971)*53.7858
( -3.8178) +-31.2465
98.9747 ++-75.597 * 92.215---41.1711 + -43.1692- -103.2812* +66.7417 - -146.163
log( 56.6128 +- 99.7284 -- -17.0799-87.6069 * -152.6727)
exp( exp(fabs((cos( 82.9352+8.9548+-236.2052+ 47.5807 + -57.0812 -182.3345 * 64.6383 -( 178.8079 *-39.1879 -94.5592 ++5.5461*-119.0477 -+ 123.3401- -172.9642 - 97.3854) +-+ -11.8867*- ( -54.9128)-212.3217 )+-4.296- (log(sqrt( (-27.5916* (-.30882) + -48.9349-- 107.2386-33.3418 )+-20.4958- + 42.5557 --35.4654 ))-+ -110.7193* +- -115.5203 - -157.9984 -+- 27.4743-- ++-158.5269 + 52.319- 37.5319 +( sqrt(-88.8041 - -71.6358 ) *( -99.0788 +-86.0463+ -150.4515--81.0729 + -119.577)) + -81.0108 + -3.8997)))) ) +-62.3955- 93.5937
-168.4571
118.6806*-13.5058
( (cos(28.2935 -+ 160.4322 ) * 94.8907- -151.3507) ) + -179.7246
138.0142++ -25.1952
( -167.2563+-21.4628 ) - - 63.6008- 23.8476
exp(81.3903) * ( -17.8563 + (62.4546 ) * - -8.4945*187.8114 - 60.1713)
sqrt( cos( (cos( 2.5516 ) )* -35.9789))
sin( sqrt( 197.8455) ) *29.3707
pow( -135.2001 , -14.0429* -71.1337 -36.2419 )
-5.2439 +-193.7885
-190.7017
136.6096
(-73.5718* 56.2556*-85.635 +31.3252+ - -66.1525 +97.0376 )
exp(74.1181+15.9883)*-100.9876
pow( 30.4584,-122.7414 -+156.8522 * 175.26 + -10.7427 - + 168.4791+ +-35.4443)* -195.4925 *- 152.1705 * -172.2251 - ( cos(cos(sin(-79.3444* -112.865 ++-40.9387)*-48.5434 *45.4764) )* 1.999)+ -59.4058
fabs( 26.1717 *105.1697 +139.5713* ( 200.4417*87.6262*+ 177.4564 ) *-109.7068 ) + -89.6956+ -86.2163 +- 132.4677+87.617
14.1388* ( -79.9119 )*( 69.9161 - 52.0538 - - -62.6834 *- -112.5074 )
-19.9262
176.0075 +1.5854 + -54.7103
fabs( -161.0607 -19.0256 +85.8247 *16.6794 *-72.8054+(46.215) )- 74.2--12.5694
-194.5727 + -47.2713* 109.4379*219.2655 -80.3208 + -24.1923* --162.8082*-6.9733* --63.9977*-3.3065
exp(-91.863 +68.2851--12.3828* -20.3981 + -85.434 -26.7934 )
fabs( cos(53.6735 ++ - 59.3808* -234.8106) ) + .10033*138.28
146.9547 - -184.2497 + .37278- -(cos( fabs(exp(( -49.278* -139.2394+-155.2559* 77.8404) )) *-92.4729)*125.8092)
cos( fabs(fabs( log((-166.8227+ 133.6305 )- -17.9845*+-15.3916* ++ 118.7666 *-67.7783+ - -99.443+ 134.3641 +-220.0851 + - 10.8674))+ 37.3829 )*++ 35.5366 +-224.4805--16.0911 - + 54.1352 - ( cos( 14.18) --44.4082 ) *-46.7301 *-216.3497)
87.9514+56.6744- -2.2569*+-195.1903* --100.7577 - -71.5024--184.9317 * 113.6226* + 1.8006- + -94.9562
exp( sqrt( -5.173 + -90.7243 +177.6979- -47.0601- 123.4121 +-116.1002)+ -3.5704 *152.9836)+ -58.9467 *( sqrt(79.0022 *+ -54.8389 *51.3536+ -( 29.8066--+-129.5653 )* 6.2877))* -22.8706 - - (sqrt( -32.5636* -71.1044-+ -43.3963 ) *35.9184* -162.4127 +64.1774 +-62.1952 ---70.0037 *-68.4636 * -81.9091*-32.1987*72.6058* 74.5406 * + 110.441 - ( (fabs(130.7065 *26.942+57.9466-38.8328)) - -15.4287 + 61.2514)- (4.6987 --6.1718* -( 62.9922+ + -108.932 ) * ((sqrt(( exp(140.2349)- + ( -23.8739 *-6.7719)* -22.4761 - 157.6383+ (sqrt(log(132.2873* +-70.3747* - -4.1633 *-32.5142 + ( (exp( 91.6419 -( sin(sin( exp(-73.168)*234.0568 --26.9463+ 17.7883 * 16.5353 ) +71.1993 + 20.9591*+ -69.9717 ++203.7461- 78.9284*+ -144.539 + 137.8315)) * -78.0497 ) + + --20.2188) +-77.1187 * - -31.5402---76.268)* - + -6.2579 * 49.1321)- + -35.4303 *-29.8837 )*144.5138))- (34.024+ 132.2282 ) )+4.9059 -142.5409 -72.3633) + 7.2254 *- 27.9814 + + 14.5249 ) ) + (68.3931 ) * -20.7453 -+- (-64.1351 ))- --34.0696- 71.8238
70.6432 +( log(-19.0335 -+ + -21.5318+- -57.7395 ) - -92.6882 )
-47.8758
-24.0232 + +66.4642 + 132.2625 + -57.1864 - -25.489 + 4.4587+ (118.1767 - - -111.7525 *-25.7238) - (-65.5154* 114.1568 +48.5718+- -6.012 +( 18.8077 -+-164.9069)+ +-199.7317)-+ -299.7907- -49.8359 * ( -27.0465 +-72.5207 - -122.2438 ) * --35.9154--76.7704 * 52.3991--+ 80.8724 - ( -9.9966 )* + 58.0461 + ( sin(sin(-199.7026) - 137.2307) -122.551)- + 129.1659* -247.1775
log( sin(cos(-79.5513 --107.6338 ) +82.2167 )--49.6423)+- 24.6998 *-+292.7738 * + (pow( fabs( 72.1075 -44.5035- -19.4566+ ( (142.1586+105.7758 - 44.5374 + 37.5798+ -++-104.3482 )+-39.4667) -(cos( sin( 85.7793 +-8.2143 *-( (25.7319))* - -10.5278 - + -345.0624 )- 86.332 ))* -27.2936 ++ +231.7051 +147.9993) -+ -7.7987 + --65.3611 - - 23.118 - 18.4415* 174.0527*+-20.3994,107.8026- 297.1133 -+--88.1099 ) ) -( sin(42.5938 - -122.9359-192.7772 ) - 41.249 ++ (82.4851+-128.7019) * -75.4313)
-21.0573- - -103.6665
fabs( exp(sqrt(-99.1813 ) --32.6053))
-22.9887
pow( -12.5202 ,exp(15.8123 --18.4349) * 69.9861 *97.8229)
( log( 107.2972)+(15.7924 ))
-32.8758++ -31.361
-177.761+ 35.1021 - - -76.0286
-15.7746-- 141.5627
fabs( -27.6377 *-111.5532*157.1855)+-51.7224- -45.4523+ +-71.5074*121.1859* 97.5004
(log( -61.4974 * 9.0633 *1.8361+ ( -10.819*208.7138 - 91.659 *88.4988* -151.1975+ 50.0606 * -99.5695 )+ 187.2559- 127.0247 + - -6.1946+ -37.4121+ --81.2259) )+26.4463
cos( cos( -17.8724 *( -28.0886 )) -56.1741 - 60.1545-(log(132.2847 ) *-132.6284 ) -43.0735+ (20.414+71.9173* - -25.8858*+- -72.6982) )
-60.034+16.3103*+-15.8075- ( log(pow(sin(exp( 105.633 * + -23.4372 ) )* -191.9649* 178.1539* 9.7488 +( pow(-177.7298, (165.1827 ))) * -175.3269 , 3.934* -27.3129 - -87.7239))+ - 106.6466 ) - -13.267 --129.496
fabs( cos( 3.7379- -45.3023*- -30.0131* -53.1701*- 72.185* -30.7999 +(-10.6211 )-+ -40.0414)) * -220.4004
-51.7887
-94.0059
pow( exp(-62.84- -3.5417-( -202.1499 ) + -33.3428- -89.06 )--(-20.1905 - ++ -167.4644) + --72.9017 + -129.0134 -(-15.8313 + 86.8716)- -181.4644+20.4713* -16.394 -104.0011 +67.0799 +-- -104.1883,-21.5235 *( 17.0374 ))+220.023
log(24.7674 *105.2357)
sin(-33.3343 +94.3821 )
227.8595* - 116.9041+ - ---+17.5671 +-141.9689
80.2813 - 76.6632
log(-31.2176 - 197.6274 ) - - -73.1224 * -+31.7661* +37.7995 + -33.8002
137.6776*162.0068 --3.3828
log(25.1839 ) * -104.3833* ++( -86.4958 *-9.6509)
50.9761* -75.6468 +4.3001
exp( -70.0072 *- -83.4379) - -92.718 + ( exp(-30.5511+ -182.3721 *-109.8779 ) ) - -67.7589 - 72.7502 *-93.7707 +-185.7644 - ( sin(-135.4658-(-118.2683- + 62.222 - 156.2859* -198.2388- 12.8118 -+ + - 38.531 *+224.8096 )*-120.1316 ) * -75.8347+-96.5037--188.8328 *64.2293 --105.4119+95.6514 *-120.7416 ) - -141.1593
( 143.1602*-16.4813- -108.0724 ) --63.2008 + -16.823 -+91.2698-138.1342*-56.273
sin( 94.0814- (-24.4374 )* +-19.8288 +-19.2932) +-((21.6613+- - -81.1236- +70.575 + - 50.4755 --.45003)+ -80.0097 )
127.0886
199.0913 *-74.8966
88.9718
72.8935
cos(pow( 78.0523+145.1268 *97.0504* + 76.2073,cos( exp( -119.577 +( (-19.7745++158.6558 ) *+ --3.5567))+21.6582 )) ) + ((101.4891+ -82.7355 - + 51.0363- + -68.7425 +-13.7527--99.799 -- (59.1337- -44.7983 * +95.7275*-31.5006*-63.7638++ 13.0426 )* 15.9635 ) ) * 13.051+ -21.6634 +-44.1381* -140.0642
sqrt(103.0785*87.7322 - 49.1111 * 71.5274)
66.5773*95.525
-.56963*-50.4253
213.5372 *254.676+ - (( ( 4.5152 + (-135.5137) - 19.7892*170.2471 )))*- -85.6506 *97.8838 *45.8348 -+ 219.7561+90.022
59.8942 - -18.8918 *-40.8616-- 6.9804
fabs(cos(-14.7417 ) -76.7763 + -146.1569-+ 59.3742)+-104.0659+ -132.7819
-83.6906 -130.3361
(exp( -15.5997+14.8446*-129.085 --52.5986- 277.2584 + (-95.7964 * --41.3379 * 35.6151) )*-42.2922* (-17.9231))
cos(-45.4021- -+- +65.5029-133.2708--153.6556 ) + -116.9903
38.144+ +-86.4741+-126.8949 +-28.4691
pow( -220.0504 + -85.6272*-65.6597 ---92.0284- + ( 288.4356 +-64.4328+ 48.6503+ ( sqrt(cos(-131.1501)) -- -150.6118* 97.1656 ++++ + - -84.8494) ), 17.0268 - -43.404 )
pow(70.3035 , sqrt( 1.4533 )* 200.7641)
99.5845+-37.8806 +-22.1757
88.8779 +-35.8083 --45.425* 146.7788+ -104.2213--178.6705 - -13.1489+ +- 87.8275 +- -9.7259 + -27.4411
128.5276
-113.3133 +81.7473
88.0692
sqrt( pow( pow( 107.2578 ,log( 113.8415 )-+ -169.145) , 55.8646)+-20.9109+- + + 49.4205 + -227.8245 ) --79.5828
(43.1431*-69.4916 -1.9217)-+-114.6128
-27.1368 +- -169.617
14.3344++72.354
pow(sqrt( cos( -.54328+-164.2826 ) )* 43.1562 --23.6836 +-64.0681+ +44.3255+ 98.9685, sqrt(( sqrt( ( -14.6956 *123.5236) +-40.8635) ))*242.3544*-113.0059 * -120.9084 + -145.0306* 159.2325* 107.2371++34.8049 )
(-50.0289 *52.3746 ) + -+-125.9977+ -115.7578
exp((-11.4412*(-203.1917--53.1124--73.0239)-89.3793) + ( 183.3548* -99.6336- + -23.5389*53.5094 * 17.678 -( 39.9584 )* -176.2097* -( fabs(log( 17.2347 ) + -75.4264 +-18.3557 * 3.3899 *- 25.1119- (-152.1878+ 204.1755 - -63.7207)+ -68.1131 )) ) * -1.4555 ---24.9467 + -+141.6893+ (-35.624 )++ -41.6513- +-33.2127 -6.3302)- 7.0895 + + -213.6554+ 2.8461
53.9192
182.277 * -138.7447*- (pow( fabs(fabs(log(56.9016* 38.5438)+ 26.8567 - -141.6591 - - ( sin( 2.4901 - -59.9456 +- - -125.2212 - -127.8678+11.533) )*-38.5412+-111.631 ) * .64161+(cos((-135.1353 + -3.7652 * 109.5756 * + 146.0204+--89.5887- 20.8733) * -80.5572 * -81.9778 +68.9257+84.8871+ 124.0631 )- 47.8764 * (fabs(50.9645++-21.9833* -33.5268* - 1.7056+-(exp(-188.044* - - -12.0531 ) +-40.9309 -- -77.4291 + - 14.446) *189.5664+-+95.6778 )) *-78.9334 + -11.7639--127.3256+ -51.5704))+-118.0797 + -11.3208* -28.724+ + (fabs(pow(85.3029 , sqrt( sqrt( 15.3139 - 56.5806 )+ 79.8545+ -35.7559- -82.4942-+ 10.0519 + -111.117 + -51.8512 )* - 33.7722+ 45.3064)--60.571 )++ ( 17.92 *(sin(exp((sqrt(fabs(-146.6859++-15.7534+ -90.6484 - ( (30.9669 )+ 75.2279+ -73.7197)++ -56.8028-- 9.4315+ --110.8084)--87.3536 ) - + +-140.3965 + -105.1587 +35.0166 *0.62983* +9.5725+42.3056- - -28.4342 --109.7279+ -30.7992 + - 18.7807* -121.9077 *99.0775)) ) - -67.6212- -113.7595 + 63.0213) *(cos( 128.8877 ) ) )- (-167.5524 ) ),171.5061 ) -- -13.2558)+(71.9713 - 136.9789-251.7342 +(66.4301) + + -190.8672+ --73.3333* + 17.9805)
-167.4825* 90.4003+23.098 --93.2669
-177.3726*2.4909 + -134.9657+ 17.0587
stdout
Postfix Exp: 137.897200 35.385000 - * 35.017900 - 13.321700 - - + + + 79.141600 - + 18.368900 * 103.909100 * + 2.304600 - 102.976800 - - fabs 106.421300 - + + + + 
RESULT: 155751.339949
Postfix Exp: 150.616000 - 94.796100 - + 106.670100 - + 
RESULT: -352.082200
Postfix Exp: 65.532400 16.284200 sqrt 118.859500 * 15.337200 58.757800 - * 67.119100 - * - 82.811700 49.975100 + 189.766500 - 68.616900 - * - 4.403500 - - + - 11.352800 - + cos 89.164600 - - * 19.721800 - + 167.940200 - * + sin 48.048100 + 51.347500 - log 81.886500 * + - 6.609500 - 104.618100 - - + - log 
RESULT: nan
Postfix Exp: 54.741300 - 229.362700 * 58.801300 + - 13.686300 log 76.194600 - + sqrt sin - 55.528100 + - 39.437000 - - 5.061100 - + 29.749200 + - 51.110000 - + 37.739500 110.042900 * 17.853000 + exp 78.838500 + 104.775700 - + - 64.940400 - * - 3.056900 - 103.831500 - 54.952400 + 25.473000 - + 110.262100 - 23.462800 + - 80.051400 - 74.998900 - * 130.270800 - * + 29.297100 + - - * 53.785800 * - 
RESULT: -nan
Postfix Exp: 3.817800 - 31.246500 - + 
RESULT: -35.064300
Postfix Exp: 98.974700 75.597000 - + 92.215000 * + 41.171100 - - - 43.169200 - + 103.281200 - 66.741700 + * - 146.163000 - - 
RESULT: 82.782911
Postfix Exp: 56.612800 99.728400 - + 17.079900 - - - 87.606900 152.672700 - * - log 
RESULT: 9.496645
Postfix Exp: 82.935200 8.954800 + 236.205200 - + 47.580700 + 57.081200 - + 182.334500 64.638300 * - 178.807900 39.187900 - * 94.559200 - 5.546100 + 119.047700 - * + 123.340100 + - 172.964200 - - 97.385400 - - 11.886700 - + - 54.912800 - - * + 212.321700 - cos 4.296000 - + 27.591600 - .308820 - * 48.934900 - + 107.238600 - - 33.341800 - 20.495800 - + 42.555700 + - 35.465400 - - sqrt log 110.719300 - + 115.520300 - - + * - 157.998400 - - 27.474300 - + - 158.526900 - + + - - 52.319000 + 37.531900 - 88.804100 - 71.635800 - - sqrt 99.078800 - 86.046300 - + 150.451500 - + 81.072900 - - 119.577000 - + * + 81.010800 - + 3.899700 - + - fabs exp exp 62.395500 - + 93.593700 - 
RESULT: nan
Postfix Exp: 168.457100 - 
RESULT: -168.457100
Postfix Exp: 118.680600 13.505800 - * 
RESULT: -1602.876447
Postfix Exp: 28.293500 160.432200 + - cos 94.890700 * 151.350700 - - 179.724600 - + 
RESULT: 64.776606
Postfix Exp: 138.014200 25.195200 - + + 
RESULT: 112.819000
Postfix Exp: 167.256300 - 21.462800 - + 63.600800 - - 23.847600 - 
RESULT: -148.965900
Postfix Exp: 81.390300 exp 17.856300 - 62.454600 8.494500 - - * 187.811400 * + 60.171300 - * 
RESULT: 22153489198338405178135442169135464710144.000000
Postfix Exp: 2.551600 cos 35.978900 - * cos sqrt 
RESULT: 0.226552
Postfix Exp: 197.845500 sqrt sin 29.370700 * 
RESULT: 29.295844
Postfix Exp: 135.200100 - 14.042900 - 71.133700 - * 36.241900 - pow 
RESULT: -nan
Postfix Exp: 5.243900 - 193.788500 - + 
RESULT: -199.032400
Postfix Exp: 190.701700 - 
RESULT: -190.701700
Postfix Exp: 136.609600 
RESULT: 136.609600
Postfix Exp: 73.571800 - 56.255600 * 85.635000 - * 31.325200 + 66.152500 - - + 97.037600 + 
RESULT: 354622.858579
Postfix Exp: 74.118100 15.988300 + exp 100.987600 - * 
RESULT: -137081975782919188712795225564155111014400.000000
Postfix Exp: 30.458400 122.741400 - 156.852200 + 175.260000 * - 10.742700 - + 168.479100 + - 35.444300 - + + pow 195.492500 - * 152.170500 - * 172.225100 - * 79.344400 - 112.865000 - * 40.938700 - + + sin 48.543400 - * 45.476400 * cos cos 1.999000 * - 59.405800 - + 
RESULT: -61.089969
Postfix Exp: 26.171700 105.169700 * 139.571300 200.441700 87.626200 * 177.456400 + * * 109.706800 - * + fabs 89.695600 - + 86.216300 - + 132.467700 - + 87.617000 + 
RESULT: 47724717557.556770
Postfix Exp: 14.138800 79.911900 - * 69.916100 52.053800 - 62.683400 - - 112.507400 - - * - * 
RESULT: 7947970.702713
Postfix Exp: 19.926200 - 
RESULT: -19.926200
Postfix Exp: 176.007500 1.585400 + 54.710300 - + 
RESULT: 122.882600
Postfix Exp: 161.060700 - 19.025600 - 85.824700 16.679400 * 72.805400 - * + 46.215000 + fabs 74.200000 - 12.569400 - - 
RESULT: 104293.498510
Postfix Exp: 194.572700 - 47.271300 - 109.437900 * 219.265500 * + 80.320800 - 24.192300 - 162.808200 - - * 6.973300 - * 63.997700 - - * 3.306500 - * + 
RESULT: -6946582.493731
Postfix Exp: 91.863000 - 68.285100 + 12.382800 - 20.398100 - * - 85.434000 - + 26.793400 - exp 
RESULT: 0.000000
Postfix Exp: 53.673500 59.380800 - + 234.810600 - * + cos fabs .100330 138.280000 * + 
RESULT: 14.309761
Postfix Exp: 146.954700 184.249700 - - .372780 + 49.278000 - 139.239400 - * 155.255900 - 77.840400 * + exp fabs 92.472900 - * cos 125.809200 * - - 
RESULT: 457.386380
Postfix Exp: 166.822700 - 133.630500 + 17.984500 - 15.391600 - + * 118.766600 + + * 67.778300 - * - 99.443000 - - + 134.364100 + 220.085100 - + 10.867400 - + log fabs 37.382900 + fabs 35.536600 + + * 224.480500 - + 16.091100 - - 54.135200 + - 14.180000 cos 44.408200 - - 46.730100 - * 216.349700 - * - cos 
RESULT: -0.761400
Postfix Exp: 87.951400 56.674400 + 2.256900 - 195.190300 - + * 100.757700 - - * - 71.502400 - - 184.931700 - 113.622600 * 1.800600 + * - 94.956200 - + - 
RESULT: -6240.235701
Postfix Exp: 5.173000 - 90.724300 - + 177.697900 + 47.060100 - - 123.412100 - 116.100200 - + sqrt 3.570400 - 152.983600 * + exp 58.946700 - 79.002200 54.838900 - + * 51.353600 * 29.806600 129.565300 - + - - - 6.287700 * + sqrt * 22.870600 - * + 32.563600 - 71.104400 - * 43.396300 - + - sqrt 35.918400 * 162.412700 - * 64.177400 + 62.195200 - + 70.003700 - - 68.463600 - * 81.909100 - * 32.198700 - * 72.605800 * 74.540600 * 110.441000 + * - 130.706500 26.942000 * 57.946600 + 38.832800 - fabs 15.428700 - - 61.251400 + - 4.698700 6.171800 - 62.992200 108.932000 - + + - * 140.234900 exp 23.873900 - 6.771900 - * + 22.476100 - * - 157.638300 - 132.287300 70.374700 - + * 4.163300 - - * 32.514200 - * 91.641900 73.168000 - exp 234.056800 * 26.946300 - - 17.788300 16.535300 * + sin 71.199300 + 20.959100 69.971700 - + * + 203.746100 + + 78.928400 144.539000 - + * - 137.831500 + sin 78.049700 - * - exp 20.218800 - - + + 77.118700 - 31.540200 - - * + 76.268000 - - - 6.257900 - + - * 49.132100 * + log 35.430300 - + 29.883700 - * - sqrt 144.513800 * + 34.024000 132.228200 + - sqrt 4.905900 + 142.540900 - 72.363300 - 7.225400 27.981400 - * + 14.524900 + + * - - 68.393100 20.745300 - * + 64.135100 - - + - - - 34.069600 - - - 71.823800 - 
RESULT: nan
Postfix Exp: 70.643200 19.033500 - 21.531800 - + + - 57.739500 - - + log 92.688200 - - + 
RESULT: 167.429700
Postfix Exp: 47.875800 - 
RESULT: -47.875800
Postfix Exp: 24.023200 - 66.464200 + + 132.262500 + 57.186400 - + 25.489000 - - 4.458700 + 118.176700 111.752500 - - 25.723800 - * - + 65.515400 - 114.156800 * 48.571800 + 6.012000 - - + 18.807700 164.906900 - + - + 199.731700 - + + - 299.790700 - + - 49.835900 - 27.046500 - 72.520700 - + 122.243800 - - * 35.915400 - - * - 76.770400 - 52.399100 * - 80.872400 + - - 9.996600 - 58.046100 + * - 199.702600 - sin 137.230700 - sin 122.551000 - + 129.165900 + 247.177500 - * - 
RESULT: 87958.009135
Postfix Exp: 79.551300 - 107.633800 - - cos 82.216700 + sin 49.642300 - - log 24.699800 - 292.773800 + - * 72.107500 44.503500 - 19.456600 - - 142.158600 105.775800 + 44.537400 - 37.579800 + 104.348200 - + + - + 39.466700 - + + 85.779300 8.214300 - 25.731900 - * 10.527800 - - * + 345.062400 - + - sin 86.332000 - cos 27.293600 - * - 231.705100 + + + 147.999300 + fabs 7.798700 - + - 65.361100 - - + 23.118000 - - 18.441500 174.052700 * 20.399400 - + * - 107.802600 297.113300 - 88.109900 - - + - pow + * + 42.593800 122.935900 - - 192.777200 - sin 41.249000 - 82.485100 128.701900 - + + 75.431300 - * + - 
RESULT: -3440.192532
Postfix Exp: 21.057300 - 103.666500 - - - 
RESULT: -124.723800
Postfix Exp: 99.181300 - sqrt 32.605300 - - exp fabs 
RESULT: nan
Postfix Exp: 22.988700 - 
RESULT: -22.988700
Postfix Exp: 12.520200 - 15.812300 18.434900 - - exp 69.986100 * 97.822900 * pow 
RESULT: inf
Postfix Exp: 107.297200 log 15.792400 + 
RESULT: 20.468003
Postfix Exp: 32.875800 - 31.361000 - + + 
RESULT: -64.236800
Postfix Exp: 177.761000 - 35.102100 + 76.028600 - - - 
RESULT: -218.687500
Postfix Exp: 15.774600 - 141.562700 - - 
RESULT: 125.788100
Postfix Exp: 27.637700 - 111.553200 - * 157.185500 * fabs 51.722400 - + 45.452300 - - 71.507400 - + 121.185900 * 97.500400 * + 
RESULT: -360299.868698
Postfix Exp: 61.497400 - 9.063300 * 1.836100 * 10.819000 - 208.713800 * 91.659000 88.498800 * 151.197500 - * - 50.060600 99.569500 - * + + 187.255900 + 127.024700 - 6.194600 - - + 37.412100 - + 81.225900 - - + log 26.446300 + 
RESULT: 40.459279
Postfix Exp: 17.872400 - 28.088600 - * cos 56.174100 - 60.154500 - 132.284700 log 132.628400 - * - 43.073500 - 20.414000 71.917300 25.885800 - - * 72.698200 - - + * + + cos 
RESULT: 0.163644
Postfix Exp: 60.034000 - 16.310300 15.807500 - + * + 105.633000 23.437200 - + * exp sin 191.964900 - * 178.153900 * 9.748800 * 177.729800 - 165.182700 pow 175.326900 - * + 3.934000 27.312900 - * 87.723900 - - pow log 106.646600 - + - 13.267000 - - 129.496000 - - 
RESULT: -nan
Postfix Exp: 3.737900 45.302300 - 30.013100 - - * 53.170100 - * 72.185000 - * 30.799900 - * - 10.621100 - + 40.041400 - + - cos fabs 220.400400 - * 
RESULT: -194.919304
Postfix Exp: 51.788700 - 
RESULT: -51.788700
Postfix Exp: 94.005900 - 
RESULT: -94.005900
Postfix Exp: 62.840000 - 3.541700 - - 202.149900 - - 33.342800 - + 89.060000 - - exp 20.190500 - 167.464400 - + + - - - 72.901700 - - + 129.013400 - + 15.831300 - 86.871600 + - 181.464400 - - 20.471300 16.394000 - * + 104.001100 - 67.079900 + 104.188300 - - - + 21.523500 - 17.037400 * pow 220.023000 + 
RESULT: 220.023000
Postfix Exp: 24.767400 105.235700 * log 
RESULT: 7.865731
Postfix Exp: 33.334300 - 94.382100 + sin 
RESULT: -0.977347
Postfix Exp: 227.859500 116.904100 - * 17.567100 + - - - - + 141.968900 - + 
RESULT: -26762.111574
Postfix Exp: 80.281300 76.663200 - 
RESULT: 3.618100
Postfix Exp: 31.217600 - 197.627400 - log 73.122400 - - 31.766100 + - * 37.799500 + * - 33.800200 - + 
RESULT: nan
Postfix Exp: 137.677600 162.006800 * 3.382800 - - 
RESULT: 22308.090208
Postfix Exp: 25.183900 log 104.383300 - * 86.495800 - 9.650900 - * + + * 
RESULT: -281116.155420
Postfix Exp: 50.976100 75.646800 - * 4.300100 + 
RESULT: -3851.878741
Postfix Exp: 70.007200 - 83.437900 - - * exp 92.718000 - - 30.551100 - 182.372100 - 109.877900 - * + exp + 67.758900 - - 72.750200 93.770700 - * - 185.764400 - + 135.465800 - 118.268300 - 62.222000 + - 156.285900 198.238800 - * - 12.811800 - 38.531000 - + + 224.809600 + * - 120.131600 - * - sin 75.834700 - * 96.503700 - + 188.832800 - 64.229300 * - 105.411900 - - 95.651400 120.741600 - * + - 141.159300 - - 
RESULT: inf
Postfix Exp: 143.160200 16.481300 - * 108.072400 - - 63.200800 - - 16.823000 - + 91.269800 + - 138.134200 56.273000 - * - 
RESULT: 5476.940032
Postfix Exp: 94.081400 24.437400 - 19.828800 - + * - 19.293200 - + sin 21.661300 81.123600 - - - + 70.575000 + - 50.475500 - + .450030 - - 80.009700 - + - + 
RESULT: 259.092747
Postfix Exp: 127.088600 
RESULT: 127.088600
Postfix Exp: 199.091300 74.896600 - * 
RESULT: -14911.261460
Postfix Exp: 88.971800 
RESULT: 88.971800
Postfix Exp: 72.893500 
RESULT: 72.893500
Postfix Exp: 78.052300 145.126800 97.050400 * 76.207300 + * + 119.577000 - 19.774500 - 158.655800 + + 3.556700 - - + * + exp 21.658200 + cos pow cos 101.489100 82.735500 - + 51.036300 + - 68.742500 - + - 13.752700 - + 99.799000 - - 59.133700 44.798300 - 95.727500 + * 31.500600 - * 63.763800 - * - 13.042600 + + - 15.963500 * - 13.051000 * + 21.663400 - + 44.138100 - 140.064200 - * + 
RESULT: 1794604245.716518
Postfix Exp: 103.078500 87.732200 * 49.111100 71.527400 * - sqrt 
RESULT: 74.367428
Postfix Exp: 66.577300 95.525000 * 
RESULT: 6359.796582
Postfix Exp: .569630 - 50.425300 - * 
RESULT: 28.723764
Postfix Exp: 213.537200 254.676000 * 4.515200 135.513700 - + 19.789200 170.247100 * - - 85.650600 - - * 97.883800 * 45.834800 * + 219.756100 + - 90.022000 + 
RESULT: 1345019674.668077
Postfix Exp: 59.894200 18.891800 - 40.861600 - * - 6.980400 - - 
RESULT: -705.074575
Postfix Exp: 14.741700 - cos 76.776300 - 146.156900 - + 59.374200 + - fabs 104.065900 - + 132.781900 - + 
RESULT: 46.027978
Postfix Exp: 83.690600 - 130.336100 - 
RESULT: -214.026700
Postfix Exp: 15.599700 - 14.844600 129.085000 - * + 52.598600 - - 277.258400 - 95.796400 - 41.337900 - - * 35.615100 * + exp 42.292200 - * 17.923100 - * 
RESULT: 0.000000
Postfix Exp: 45.402100 - 65.502900 + - + - - 133.270800 - 153.655600 - - cos 116.990300 - + 
RESULT: -117.823467
Postfix Exp: 38.144000 86.474100 - + + 126.894900 - + 28.469100 - + 
RESULT: -203.694100
Postfix Exp: 220.050400 - 85.627200 - 65.659700 - * + 92.028400 - - - 288.435600 64.432800 - + 48.650300 + 131.150100 - cos sqrt 150.611800 - - 97.165600 * - 84.849400 - - + + + + + + + - 17.026800 43.404000 - - pow 
RESULT: 23221083761783767862506690059939937458632123384844048827354796012872229952861322617282854973717933961288898281015486736042697707378549372202856840561652875832793818164887791573593969087793442707612297419018462882129514685206929256100244596302010793030139772928.000000
Postfix Exp: 70.303500 1.453300 sqrt 200.764100 * pow 
RESULT: inf
Postfix Exp: 99.584500 37.880600 - + 22.175700 - + 
RESULT: 39.528200
Postfix Exp: 88.877900 35.808300 - + 45.425000 - 146.778800 * - 104.221300 - + 178.670500 - - 13.148900 - - 87.827500 - + + 9.725900 - - + 27.441100 - + 
RESULT: 6702.551990
Postfix Exp: 128.527600 
RESULT: 128.527600
Postfix Exp: 113.313300 - 81.747300 + 
RESULT: -31.566000
Postfix Exp: 88.069200 
RESULT: 88.069200
Postfix Exp: 107.257800 113.841500 log 169.145000 - + - pow 55.864600 pow 20.910900 - + 49.420500 + + - + 227.824500 - + sqrt 79.582800 - - 
RESULT: inf
Postfix Exp: 43.143100 69.491600 - * 1.921700 - 114.612800 - + - 
RESULT: -2885.391948
Postfix Exp: 27.136800 - 169.617000 - - + 
RESULT: 142.480200
Postfix Exp: 14.334400 72.354000 + + 
RESULT: 86.688400
Postfix Exp: .543280 - 164.282600 - + cos sqrt 43.156200 * 23.683600 - - 64.068100 - + 44.325500 + + 98.968500 + 14.695600 - 123.523600 * 40.863500 - + sqrt sqrt 242.354400 * 113.005900 - * 120.908400 - * 145.030600 - 159.232500 * 107.237100 * + 34.804900 + + pow 
RESULT: -nan
Postfix Exp: 50.028900 - 52.374600 * 125.997700 - + - + 115.757800 - + 
RESULT: -2610.003726
Postfix Exp: 11.441200 - 203.191700 - 53.112400 - - 73.023900 - - * 89.379300 - 183.354800 99.633600 - * 23.538900 - + 53.509400 * 17.678000 * - 39.958400 176.209700 - * 17.234700 log 75.426400 - + 18.355700 - 3.389900 * 25.111900 - * + 152.187800 - 204.175500 + 63.720700 - - - 68.113100 - + fabs - * - 1.455500 - * + 24.946700 - - - 141.689300 + - + 35.624000 - + 41.651300 - + + 33.212700 - + - 6.330200 - exp 7.089500 - 213.655400 - + + 2.846100 + 
RESULT: inf
Postfix Exp: 53.919200 
RESULT: 53.919200
Postfix Exp: 182.277000 138.744700 - * 56.901600 38.543800 * log 26.856700 + 141.659100 - - 2.490100 59.945600 - - 125.221200 - - - + 127.867800 - - 11.533000 + sin - 38.541200 - * - 111.631000 - + fabs .641610 * 135.135300 - 3.765200 - 109.575600 * 146.020400 + * + 89.588700 - - + 20.873300 - 80.557200 - * 81.977800 - * 68.925700 + 84.887100 + 124.063100 + cos 47.876400 50.964500 21.983300 - + 33.526800 - * 1.705600 - * + 188.044000 - 12.053100 - - - * exp 40.930900 - + 77.429100 - - - 14.446000 - + - 189.566400 * + 95.677800 + - + fabs * 78.933400 - * - 11.763900 - + 127.325600 - - 51.570400 - + + fabs 118.079700 - + 11.320800 - 28.724000 - * + 85.302900 15.313900 56.580600 - sqrt 79.854500 + 35.755900 - + 82.494200 - - 10.051900 + - 111.117000 - + 51.851200 - + sqrt 33.772200 - * 45.306400 + pow 60.571000 - - fabs 17.920000 146.685900 - 15.753400 - + + 90.648400 - + 30.966900 75.227900 + 73.719700 - + - 56.802800 - + + 9.431500 - - 110.808400 - - + fabs 87.353600 - - sqrt 140.396500 - + + - 105.158700 - + 35.016600 0.629830 * 9.572500 + * + 42.305600 + 28.434200 - - - 109.727900 - - 30.799200 - + 18.780700 - 121.907700 - * 99.077500 * + exp sin 67.621200 - - 113.759500 - - 63.021300 + * 128.887700 cos * + + 167.552400 - - + + 171.506100 pow 13.255800 - - - - * 71.971300 136.978900 - 251.734200 - 66.430100 + 190.867200 - + + 73.333300 - - 17.980500 + * + + 
RESULT: -nan
Postfix Exp: 167.482500 - 90.400300 * 23.098000 + 93.266900 - - 
RESULT: -15024.103345
Postfix Exp: 177.372600 - 2.490900 * 134.965700 - + 17.058700 + 
RESULT: -559.724409