Sedikit share kebodohanku, atau kejeniusanku, atau apalah, saat diriku mengerjakan mid di kelas. Kebetulan ada ujian mid yang openbook dan kami diperbolehkan buka laptop pula. Dan karena tidak ada kalkulator maka Python pun bisa kugunakan untuk perhitungan, berikut adalah kopas dari command prompt saat aku ujian hari ini dan kemarin:
Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
>>> (5-3.333)/2
0.8334999999999999
>>> 10-3.333-0.834
5.833
>>> 1.5 ** 2 *3.14
7.065
>>> (5.833 * 0.6) / (7.065 * 45)
0.011008256664307619
>>> (3.333 * 0.6) / (7.065 * 45)
0.006290162774239207
>>> (0.834 * 0.6) / (7.065 * 45)
0.0015739561217268223
>>> 20/3.25
6.153846153846154
>>> import math
>>> math.cos(90)
-0.4480736161291701
>>> dir(math)
[‘__doc__’, ‘__name__’, ‘__package__’, ‘acos’, ‘acosh’, ‘asin’, ‘asinh’, ‘atan’, ‘atan2’, ‘atanh’, ‘ceil’, ‘copysign’, ‘cos’, ‘cosh’, ‘degrees’, ‘e’, ‘erf’, ‘erfc’, ‘exp’, ‘expm1’, ‘fabs’, ‘factorial’, ‘floor’, ‘fmod’, ‘frexp’, ‘fsum’, ‘gamma’, ‘hypot’, ‘isinf’, ‘isnan’, ‘ldexp’, ‘lgamma’, ‘log’, ‘log10’, ‘log1p’, ‘modf’, ‘pi’, ‘pow’, ‘radians’, ‘sin’, ‘sinh’, ‘sqrt’, ‘tan’, ‘tanh’, ‘trunc’]
>>> math.degrees(90)
5156.620156177409
>>> math.degrees(1)
57.29577951308232
>>> math.radians(57.23)
0.9988519309163547
>>> math.cos(math.radians(90))
6.123031769111886e-17
>>> math.cos(math.radians(30))
0.8660254037844387
>>> math.cos(math.radians(30))*20
17.320508075688775
>>> math.cos(math.radians(45))*8
5.656854249492381
>>> math.sin(math.radians(45))*8
5.65685424949238
>>> math.sin(math.radians(-45))*8
-5.65685424949238
>>> math.cos(math.radians(-45))*8
5.656854249492381
>>> math.sin(math.radians(-90))*4
-4.0
>>> math.degrees(math.asin(1))
90.0
>>> 17.32-9.66
7.66
>>> (15.66**2 + 7.66**2) ** 0.5
17.433049073526984
>>> math.degrees(math.atan(15.66/7.66))
63.93469410321203
>>> math.degrees(math.atan(7.66/15.66))
26.065305896787965
>>> math.sin(math.radians(15))*90
23.293714059226865
>>> math.cos(math.radians(15))*90
86.93332436601615
>>> 86.93*0.6 – 23.30*0.8
33.518
>>> math.degrees(math.atan(-0.75))
-36.86989764584402
>>> 180 – 36.87
143.13
>>> 90 + 36.87
126.87
>>> -90 + 36.87
-53.13
>>> 90 – 36.87
53.13
>>> -90 – 36.87
-126.87
>>> 2* ((2-(1/4))*(3/16))
0
>>> 2* ((2-(1.0/4))*(3.0/16))
0.65625
>>> ((2-(1.0/4))*(3.0/16)) / 6
0.0546875
>>> ((2-(1.0/4))*(3.0/16)) / 144
0.0022786458333333335
>>> ((2-(1.0/4))*(3.0/16)) / 72
0.004557291666666667
>>> 2.4 / 0.65625
3.657142857142857
>>> 9/8.0
1.125
>>> 2.4/1.125
2.1333333333333333
>>> (0.125**2)*math.pi
0.04908738521234052
>>> 1.08/0.0491
21.995926680244402
>>> 0.96/0.0491
19.55193482688391
This… is… Sheer Madness!!!! xD
Bantul, November 14th 2012
Muhammad Radifar