print 1.0 print 1+2 print 1+2, 3+4, 6-5 print 1+2, 6-5 print 1+2, 6-5, 3*6 print 3x6 print 24/6 print 1/2 print 1/3 print 2.0+1.0/2 print 1.0/3, 1/3.0, 1.0/3.0 print 1./3, 1/3., 1.0/3. print 1./3, 1/3., 1./3. print 1+2*(3+4) print 1-2 print -5 print 2*3 print *3 print sqrt(80+1.0) print log(2.1783) print log(2.7183) print ln(10.0) print log(100.0,10) print log(100.0) print log(100.0)/log(10) # log_a(b) = log(b)/log(a) print 5*5*5 print 5*5*5*5 print 1.5*1.5*1.5 print 1.5 na 3.2 ??? print 1.5**3.2 # a ^ b = ? # log(a ^ b) = ? # a^b = exp(log( a^b )) = exp( b * log(a) ) print 3**4, 3*3*3*3, (3*3)*(3*3) print sin(90.0) print 30.0/180*pi print cos(30.0/180*pi) print cos(30.0/180*pi)-sqrt(3)/2 print cos(30.0/180*pi)-sqrt(3.0)/2.0 print sqrt(3)2 print cos(30.0/180*pi) print sqrt(3)/2 print cos(30.0/180*pi)-0.866025403784439 print sqrt(3)/2-0.866025403784439 print asin(pi) print asin(0.5) print cos(30.0/180*pi) print cos(30/180*pi) print cos(pi*30/180) print cos(30./180.*pi) print asin(0.5)/pi*180 print 2 print 4 print 1 print 19 print 192223 print 192222423 print 192222423334 print 1922224233 print 999999 print 2147483648 print 2147483648-2.**31 print 2147483648.-2.**32 print 2147483648 print 2147483648.-2.**31 print 214748000 print 2147480000 print 2147480000 print 21474800004 print 21474800003 print 21474800002 print 21474800001 print 2147480009 print 39392024904. print 1.23e5 print 9.23e5 print 9.23e52 print 9.23e55 print 9.55e999 print 2e308 print 1.1e308 print 1.5e308 print 1.9e308 print 1.7e308 print 1.8e308 print 1.75e308 print 1.77e308 print 1.78e308 print 1.79e308 print 1.796e308 print 1.799e308 print 1.798e308 print 1.797e308 print 1.7975e308 print 1.7978e308 print 1.7977e308 print 1.7976e308 print 1.79765e-308 print 2e-308 print 4e-308 print 2e-323 print 9e-324 print 2.2e-324 a = 2.48e-324 print 1.79765e308 b = 1.79765e308 print a+b print b*2 print b/2 print a,b !dir !ll !ls -lAF print (2 <3 ? 4 : 5) print (2 > 3 ? 4 : 5) print "Priste si vyzkousime:" plot x, x*x plot x, sin(x), cos(x)*x splot x*x-y*y splot x*x-y*y with pm3d test