您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 项目/工程管理 > ArcGIS字段计算器中的python函数
ArcGIS字段计算器中的python函数.conjugate(),共轭复数.denominator(),返回分母.imag(),返回复数的虚数部分.numerator(),返回分子.real(),返回复数的实数部分.as_interger_ratio():Returnapairofintegerswhoseratioisexactlyequaltotheoriginalfloatandwithapositivedenominator.RaisesOverflowErroroninfinitiesandaValueErroronNaNs..fromhex():Classmethodtoreturnthefloatrepresentedbyahexadecimalstrings.Thestringsmayhaveleadingandtrailingwhitespace..hex():Returnarepresentationofafloating-pointnumberasahexadecimalstring.Forfinitefloating-pointnumbers,thisrepresentationwillalwaysincludealeading0xandatrailingpandexponent..is_integer():ReturnTrueifthefloatinstanceisfinitewithintegralvalue,andFalseotherwise:math.acos():反余弦(弧度)math.acosh():反双曲余弦math.asin():反正弦math.asinh():反双曲正弦math.atan():反正切math.atan2():Returnatan(y/x),inradians.Theresultisbetween-piandpi.Thevectorintheplanefromtheorigintopoint(x,y)makesthisanglewiththepositiveXaxis.Thepointofatan2()isthatthesignsofbothinputsareknowntoit,soitcancomputethecorrectquadrantfortheangle.Forexample,atan(1)andatan2(1,1)arebothpi/4,butatan2(-1,-1)is-3*pi/4.math.atanh():反双曲正切math.ceil():Returntheceilingofxasafloat,thesmallestintegervaluegreaterthanorequaltoxmath.copysign():Returnxwiththesignofy.Onaplatformthatsupportssignedzeros,copysign(1.0,-0.0)returns-1.0.math.cos():余弦math.cosh():双曲余弦math.degrees():转弧度为度math.e():emath.exp():e的指数次方math.fabs():绝对值math.factorial():Returnxfactorial.RaisesValueErrorifxisnotintegralorisnegative,(阶乘)math.floor():Returnthefloorofxasafloat,thelargestintegervaluelessthanorequaltox.(小于等于x的最大整数)math.fmod():Returnfmod(x,y),asdefinedbytheplatformClibrary.NotethatthePythonexpressionx%ymaynotreturnthesameresult.TheintentoftheCstandardisthatfmod(x,y)beexactly(mathematically;toinfiniteprecision)equaltox-n*yforsomeintegernsuchthattheresulthasthesamesignasxandmagnitudelessthanabs(y).Python’sx%yreturnsaresultwiththesignofyinstead,andmaynotbeexactlycomputableforfloatarguments.Forexample,fmod(-1e-100,1e100)is-1e-100,buttheresultofPython’s-1e-100%1e100is1e100-1e-100,whichcannotberepresentedexactlyasafloat,androundstothesurprising1e100.Forthisreason,functionfmod()isgenerallypreferredwhenworkingwithfloats,whilePython’sx%yispreferredwhenworkingwithintegers.matn.frexp():Returnthemantissaandexponentofxasthepair(m,e).misafloatandeisanintegersuchthatx==m*2**eexactly.Ifxiszero,returns(0.0,0),otherwise0.5=abs(m)1.Thisisusedto“pickapart”theinternalrepresentationofafloatinaportableway.math.fsum():Returnanaccuratefloatingpointsumofvaluesintheiterable.Avoidslossofprecisionbytrackingmultipleintermediatepartialsums:math.htpot():ReturntheEuclideannorm,sqrt(x*x+y*y).Thisisthelengthofthevectorfromtheorigintopoint(x,y).math.isinf():Checkifthefloatxispositiveornegativeinfinitymath.isnan():CheckifthefloatxisaNaN(notanumber).FormoreinformationonNaNs,seetheIEEE754standardsmath.ldexp():Returnx*(2**i).Thisisessentiallytheinverseoffunctionfrexp()math.log():以e为底的对数math.log10():以10为底对数math.log1p():Returnthenaturallogarithmof1+x(basee).Theresultiscalculatedinawaywhichisaccurateforxnearzeromath.modf():Returnthefractionalandintegerpartsofx.Bothresultscarrythesignofxandarefloats.math.pi():πmath.pow():x的y次幂math.radians():转度为弧度math.sin():正弦math.sinh():双曲正弦math.sqrt():平方根math.tan():正切math.tanh():双曲正切matn.trunc():ReturntheRealvaluextruncatedtoanIntegral(usuallyalonginteger).Usesthe__trunc__method
本文标题:ArcGIS字段计算器中的python函数
链接地址:https://www.777doc.com/doc-4359440 .html