Big Decimal Calculator

题目描述

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=279&page=show_problem&problem=3844 [PDF](https://uva.onlinejudge.org/external/124/p12413.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12413/4b3278597d1338c23f4ad68a54aa39a6153ec008.png)

输入输出格式

输入格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12413/5b89df74af2b04d1d3f025d0cfef0b198114dfbf.png)

输出格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12413/609a12f61f16ccf742cb020f15d9cebaa5be521a.png)

输入输出样例

输入样例 #1

add 1.357 4.6279 10
sub 1.357 4.6279 10
mul 1.357 4.6279 10
div 1 103 30
pow 12.2 12.15 20
atan2 2.45 1.77 30
exp 10.98 50
ln 21.065 50
sqrt 2 40
asin 0.81 30
acos 0.47 35
atan 0.618 40
sin 3.1415 25
cos 2.0113 50
tan 1.78987 30

输出样例 #1

5.9849000000
-3.2709000000
6.2800603000
0.009708737864077669902912621359
15822384813181.61872382001683484036
0.945162277467215967394902628052
58688.55427461755601946329091442988532551237342326651423
3.04761289543097985660178308429069456872534888053139
1.4142135623730950488016887242096980785697
0.944152115154155950477697775653
1.08150554878078090500864808815790029
0.5535497640327316544572642343482671646331
0.0000926535896606714405662
-0.42639511018918176703311006536787403871085921161347
-4.491415179046604916096895094786