1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import math
- print "ceil",type(math.ceil(3)),math.ceil(3)
- print "fabs",type(math.fabs(3)),math.fabs(3)
- print "factorial",type(math.factorial(3)),math.factorial(3)
- print "floor",type(math.floor(3)),math.floor(3)
- #print "fmod",type(math.fmod(3,1)),math.fmod(3,1)
- #print "frexp",type(math.frexp(3)),math.frexp(3)
- #print "fsum",type(math.fsum([1,2,3])),math.fsum([1,2,3])
- #print "isinf",type(math.isinf(3)),math.isinf(3)
- #print "isnan",type(math.isnan(3)),math.isnan(3)
- #print "ldexp",type(math.ldexp(3,1)),math.ldexp(3,1)
- #print "modf",type(math.modf(3)),math.modf(3)
- print "trunc",type(math.trunc(3)),math.trunc(3)
- print "exp",type(math.exp(3)),math.exp(3)
- print "log",type(math.log(3)),math.log(3)
- #print "log1p",type(math.log1p(3)),math.log1p(3)
- #print "log10",type(math.log10(3)),math.log10(3)
- print "pow",type(math.pow(3,3)),math.pow(3,3)
- print "sqrt",type(math.sqrt(9)),math.sqrt(9)
- print "acos",type(math.acos(1)),math.acos(1)
- print "asin",type(math.asin(1)),math.asin(1)
- print "atan",type(math.atan(3)),math.atan(3)
- print "atan2",type(math.atan2(3,3)),math.atan2(3,3)
- print "cos",type(math.cos(3)),math.cos(3)
- print "hypot",type(math.hypot(3,4)),math.hypot(3,4)
- print "sin",type(math.sin(3)),math.sin(3)
- print "tan",type(math.tan(3)),math.tan(3)
- print "degrees",type(math.degrees(math.pi)),math.degrees(3)
- print "radians",type(math.radians(3)),math.radians(3)
- #print "acosh",type(math.acosh(1)),math.acosh(1)
- #print "asinh",type(math.asinh(1)),math.asinh(1)
- #print "cosh",type(math.cosh(3)),math.cosh(3)
- #print "sinh",type(math.sinh(3)),math.sinh(3)
- #print "tanh",type(math.tanh(3)),math.tanh(3)
- #print "erf",type(math.erf(1)),math.erf(1)
- #print "erfc",type(math.erfc(1)),math.erfc(1)
- #print "gamma",type(math.gamma(3)),math.gamma(3)
- #print "lgamma",type(math.lgamma(3)),math.lgamma(3)
- print "pi",type(math.pi),math.pi
- print "e",type(math.e),math.e
|