06-26-2016, 12:36 AM
i try .
with alminium cap
debian@pine64pro:~$ ./pi.bat ; ./temperature.bat
3.14159265359
46
ebian@pine64pro:~$ ./temperature.bat
40
debian@pine64pro:~$ ./temperature.bat
40
debian@pine64pro:~$ ./temperature.bat
40
debian@pine64pro:~$ ./temperature.bat
40
without alminium cap
debian@pine64pro:~$ ./pi.bat ; ./temperature.bat
3.14159265359
47
only 1 degree effect !
i am dissapointed and understand big alminium heat sink of odroid-c2 .
Code:
pi.bat
#!/usr/bin/env python
def f(x):
return 4 / ( 1.0 + x**2 )
n = 10000000
sum = 0
step = 1.0 / n
for i in range(0, n):
x = ( i + 0.5 ) * step
sum += f(x)
pi = sum * step
print pi
Code:
temperature.bat
cat /sys/class/thermal/thermal_zone0/temp
with alminium cap
debian@pine64pro:~$ ./pi.bat ; ./temperature.bat
3.14159265359
46
ebian@pine64pro:~$ ./temperature.bat
40
debian@pine64pro:~$ ./temperature.bat
40
debian@pine64pro:~$ ./temperature.bat
40
debian@pine64pro:~$ ./temperature.bat
40
without alminium cap
debian@pine64pro:~$ ./pi.bat ; ./temperature.bat
3.14159265359
47
only 1 degree effect !
i am dissapointed and understand big alminium heat sink of odroid-c2 .