ArcGIS字段计算器中的python函数

来源:互联网 发布:sql server 维护 编辑:程序博客网 时间:2024/05/17 06:37

字段计算器界面如图

 

.conjugate(),共轭复数

.denominator(),返回分母

.imag(),返回复数的虚数部分

.numerator(),返回分子

.real(),返回复数的实数部分

.as_interger_ratio():

Return a pair of integers whose ratio is exactly equal to the original float and with a positive denominator. RaisesOverflowError on infinities and aValueError on NaNs.

 

.fromhex():

Class method to return the float represented by a hexadecimal string s. The strings may have leading and trailing whitespace.

.hex():

Return a representation of a floating-point number as a hexadecimal string. For finite floating-point numbers, this representation will always include a leading0x and a trailingp and exponent.

 

.is_integer():Return True if the float instance is finite with integral value, andFalse otherwise:

math.acos():反余弦(弧度)

math.acosh():反双曲余弦

math.asin():反正弦

math.asinh():反双曲正弦

math.atan():反正切

math.atan2():

Return atan(y/x), in radians. The result is between-pi andpi. The vector in the plane from the origin to point(x,y) makes this angle with the positive X axis. The point ofatan2() is that the signs of both inputs are known to it, so it can compute the correct quadrant for the angle. For example,atan(1) andatan2(1,1) are both pi/4, butatan2(-1,-1) is-3*pi/4.

 

math.atanh():反双曲正切

math.ceil():

Return the ceiling of x as a float, the smallest integer value greater than or equal tox

math.copysign():Return x with the sign of y. On a platform that supports signed zeros,copysign(1.0,-0.0) returns-1.0.

 

math.cos():余弦

math.cosh():双曲余弦

math.degrees():转弧度为度

math.e():e

math.exp():e的指数次方

math.fabs():绝对值

math.factorial():

Return x factorial. Raises ValueError ifx is not integral or is negative,(阶乘)

 

math.floor():

Return the floor of x as a float, the largest integer value less than or equal tox.(小于等于x的最大整数)

 

math.fmod():

Return fmod(x,y), as defined by the platform C library. Note that the Python expressionx%y may not return the same result. The intent of the C standard is thatfmod(x,y) be exactly (mathematically; to infinite precision) equal tox-n*y for some integer n such that the result has the same sign asx and magnitude less thanabs(y). Python’sx%y returns a result with the sign ofy instead, and may not be exactly computable for float arguments. For example,fmod(-1e-100,1e100) is-1e-100, but the result of Python’s-1e-100%1e100 is1e100-1e-100, which cannot be represented exactly as a float, and rounds to the surprising1e100. For this reason, functionfmod() is generally preferred when working with floats, while Python’sx%y is preferred when working with integers.

 

matn.frexp():

Return the mantissa and exponent of x as the pair (m, e). m is a float ande is an integer such thatx==m*2**e exactly. Ifx is zero, returns(0.0,0), otherwise0.5<=abs(m)<1. This is used to “pick apart” the internal representation of a float in a portable way.

 

math.fsum():

Return an accurate floating point sum of values in the iterable. Avoids loss of precision by tracking multiple intermediate partial sums:

 

math.htpot():

Return the Euclidean norm, sqrt(x*x+y*y). This is the length of the vector from the origin to point(x,y).

 

math.isinf():Check if the float x is positive or negative infinity

math.isnan():Check if the float x is a NaN (not a number). For more information on NaNs, see the IEEE 754 standards

math.ldexp():Return x* (2**i). This is essentially the inverse of functionfrexp()

math.log():以e为底的对数

math.log10():以10为底对数

math.log1p():Return the natural logarithm of 1+x (basee). The result is calculated in a way which is accurate forx near zero

math.modf():Return the fractional and integer parts of x. Both results carry the sign ofx and are floats.

 

math.pi():π

math.pow():x的y次幂

math.radians():转度为弧度

math.sin():正弦

math.sinh():双曲正弦

math.sqrt():平方根

math.tan():正切

math.tanh():双曲正切

matn.trunc():Return the Real valuex truncated to anIntegral (usually a long integer). Uses the__trunc__ method

 

原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 天猫积分用光了怎么办 淘宝店没有无线流量怎么办 京东卖家不发货怎么办会自动打款 一件代发顾客如果退款怎么办 京东以前的账号怎么办 旺旺对话框订单页面变宽了怎么办 阿里巴巴店铺上传图片很模糊怎么办 天猫跨店优惠券用了退货怎么办 淘宝店铺没流量没访客怎么办 京东微信和Q端黑号了怎么办? 买不了运费险了怎么办 拼多多5天不发货怎么办 天猫店手机发货成定制机怎么办 天猫退货上门取件退两件怎么办 买二手苹果手机没有账号怎么办 手机淘宝足迹不更新怎么办 淘宝申请退款不想退了怎么办 荣耀3c主板坏了怎么办 荣耀10天气删了怎么办 荣耀7i手机卡顿怎么办 荣耀v9总是自己拨号怎么办 华为荣耀5x很卡怎么办 华为荣耀6plus卡怎么办 华为手机触屏不灵敏怎么办 华为荣耀6x太卡怎么办 华为荣耀7太卡怎么办 荣耀手机开不开机怎么办 华为g750手机开不了机怎么办 华为手机开不了机怎么办 小米手机刷机后激活不了帐号怎么办 魅蓝note5卡顿怎么办 魅蓝note5卡了怎么办 魅蓝note5很卡怎么办 魅蓝note5锁了怎么办 荣耀9开不开机怎么办 4s更新后用不了怎么办 魅蓝3开不了机怎么办 手机不支持联通4g网络怎么办 华为手机出现emui界面怎么办 华为畅玩4x内存不足怎么办 手机电源键掉了怎么办