android StrictMathz中文版

上传人:e****s 文档编号:214517076 上传时间:2023-05-29 格式:DOC 页数:28 大小:554KB
收藏 版权申诉 举报 下载
android StrictMathz中文版_第1页
第1页 / 共28页
android StrictMathz中文版_第2页
第2页 / 共28页
android StrictMathz中文版_第3页
第3页 / 共28页
资源描述:

《android StrictMathz中文版》由会员分享,可在线阅读,更多相关《android StrictMathz中文版(28页珍藏版)》请在装配图网上搜索。

1、Summary: Constants | Methods | Inherited Methods | Expand All摘要: 常数 | 方法 | 继承的方法 | 展开全部 Since: API Level 1因为: 空气污染水平1 public final class公众最终类 StrictMath StrictMath extends Object扩展对象 继承 java.lang.StrictMath Class Overview类概述 Class StrictMath provides basic math constants and operations such as trigo

2、nometric functions, hyperbolic functions, exponential, logarithms, etc.数学类StrictMath提供了根本的常量,如三角函数,双曲函数,指数,对数等,以及行动 In contrast to class Math , the methods in this class return exactly the same results on all platforms.相反,类Math ,所有平台的方法的结果在课堂上完全一样的回报。 Algorithms based on these methods thus behave th

3、e same (eg regarding numerical convergence) on all platforms, complying with the slogan write once, run everywhere.这些方法的根底算法从而表现在所有平台上相同例如关于数值收敛的口号遵守“编写一次,到处运行。 On the other side, the implementation of class StrictMath may be less efficient than that of class Math, as class StrictMath cannot utilize

4、 platform specific features such as an extended precision math co-processors.在另一边,阶级StrictMath实施可能低于类数学,有效,作为类StrictMath无法使用,如扩展精度数学协处理器平台的特定功能。 The methods in this class are specified using the Freely Distributable Math Library (fdlibm), version 5.3.在这个类的方法是指定使用“免费分发的数学库fdlibm,版本5.3。 Summary综述 Cons

5、tants常数 double双 E The double value closest to e, the base of the natural logarithm.双最接近E的自然对数的底。 double双 PI 有价证券投资 The double value closest to pi, the ratio of a circles circumference to its diameter.双最接近圆周率,一个圆的周长和直径之比。 Public Methods公共方法 static double 静态双 IEEEremainder (double x, double y) IEEErem

6、ainder 双十,双Y Returns the remainder of dividing x by y using the IEEE 754 rules.返回除以剩余的x的y使用IEEE 754的规那么。 static float 静浮 abs (float f) 绝对值 浮动六 Returns the absolute value of the argument.返回参数的绝对值。 static long 静态长 abs (long l) 绝对值 长升 Returns the absolute value of the argument.返回参数的绝对值。 static int 静态诠释

7、 abs (int i) 绝对值 int i已 Returns the absolute value of the argument.返回参数的绝对值。 static double 静态双 abs (double d) 绝对值 双D Returns the absolute value of the argument.返回参数的绝对值。 static double 静态双 acos (double d) 阿科斯 双D Returns the closest double approximation of the arc cosine of the argument within the ran

8、ge 0.pi .返回最接近参数近似余弦双圆弧的范围内0.pi 。 static double 静态双 asin (double d) 阿辛 双D Returns the closest double approximation of the arc sine of the argument within the range -pi/2.pi/2 .返回最接近参数范围内的近似双圆弧正弦的-pi/2.pi/2 static double 静态双 atan (double d) 的Atan 双D Returns the closest double approximation of the arc

9、 tangent of the argument within the range -pi/2.pi/2 .返回最接近参数范围内的近似双圆弧切线的-pi/2.pi/2 static double 静态双 atan2 (double y, double x) atan2的 双Y,双X Returns the closest double approximation of the arc tangent of y/x within the range -pi.pi .返回最接近的切线近似双弧y/x范围内-pi.pi static double 静态双 cbrt (double d) cbrt 双D

10、 Returns the closest double approximation of the cube root of the argument.返回最接近的论点立方根双逼近。 static double 静态双 ceil (double d) 性细胞 双D Returns the double conversion of the most negative (closest to negative infinity) integer value which is greater than the argument.返回最消极的双转换最接近负无穷大的整数值,比参数大。 static dou

11、ble 静态双 cos (double d) COS的 双D Returns the closest double approximation of the cosine of the argument.返回最接近参数的余弦双逼近。 static double 静态双 cosh (double d) 双曲余弦 双D Returns the closest double approximation of the hyperbolic cosine of the argument.返回最接近参数的双曲余弦双逼近。 static double 静态双 exp (double d) 进出口 双D Re

12、turns the closest double approximation of the raising e to the power of the argument.返回最接近的提高“e来的论点功率双逼近。 static double 静态双 expm1 (double d) expm1 双D Returns the closest double approximation of e d - 1 .返回最接近的双重逼近e d - 1 。 static double 静态双 floor (double d) 地板 双D Returns the double conversion of the

13、 most positive (closest to positive infinity) integer value which is less than the argument.返回最积极的双转换最接近正无穷整值,即小于参数。 static double 静态双 hypot (double x, double y) hypot 双十,双Y Returns sqrt( x 2 + y 2 ) .返回sqrt( x 2 + y 2 ) 。 static double 静态双 log (double d) 日志 双D Returns the closest double approximati

14、on of the natural logarithm of the argument.返回最接近的自然对数双参数逼近。 static double 静态双 log10 (double d) LOG10的 双D Returns the closest double approximation of the base 10 logarithm of the argument.返回最接近该基地的10双参数对数逼近。 static double 静态双 log1p (double d) log1p 双D Returns the closest double approximation of the

15、natural logarithm of the sum of the argument and 1.返回最接近该参数的自然对数的总和,1双逼近。 static double 静态双 max (double d1, double d2) 马克斯 双D1和D2的双 Returns the most positive (closest to positive infinity) of the two arguments. 最接近正无穷两个参数返回最积极的。 static int 静态诠释 max (int i1, int i2) 马克斯 智力为I1,I2的诠释 Returns the most p

16、ositive (closest to positive infinity) of the two arguments. 最接近正无穷两个参数返回最积极的。 static float 静浮 max (float f1, float f2) 马克斯 浮动的F1,F2代浮动 Returns the most positive (closest to positive infinity) of the two arguments. 最接近正无穷两个参数返回最积极的。 static long 静态长 max (long l1, long l2) 马克斯 长的L1,长级 Returns the most

17、 positive (closest to positive infinity) of the two arguments. 最接近正无穷两个参数返回最积极的。 static double 静态双 min (double d1, double d2) 分 双D1和D2的双 Returns the most negative (closest to negative infinity) of the two arguments. 最接近负无穷大两个参数返回最消极的。 static long 静态长 min (long l1, long l2) 分 长的L1,长级 Returns the most

18、 negative (closest to negative infinity) of the two arguments. 最接近负无穷大两个参数返回最消极的。 static float 静浮 min (float f1, float f2) 分 浮动的F1,F2代浮动 Returns the most negative (closest to negative infinity) of the two arguments. 最接近负无穷大两个参数返回最消极的。 static int 静态诠释 min (int i1, int i2) 分 智力为I1,I2的诠释 Returns the mo

19、st negative (closest to negative infinity) of the two arguments. 最接近负无穷大两个参数返回最消极的。 static double 静态双 pow (double x, double y) 战俘 双十,双Y Returns the closest double approximation of the result of raising x to the power of y .返回最接近提高一倍逼近结果的x权力的y 。 static double 静态双 random () 随机 Returns a pseudo-random

20、number between 0.0 (inclusive) and 1.0 (exclusive).返回一个介于0.0含和1.0独家伪随机数。 static double 静态双 rint (double d) rint 双D Returns the double conversion of the result of rounding the argument to an integer.返回四舍五入的整数结果参数双转换。 static long 静态长 round (double d) 圆 双D Returns the result of rounding the argument to

21、 an integer.返回参数四舍五入为整数的结果。 static int 静态诠释 round (float f) 圆 浮动六 Returns the result of rounding the argument to an integer.返回参数四舍五入为整数的结果。 static double 静态双 signum (double d) Signum的 双D Returns the signum function of the argument.返回参数的符号函数。 static float 静浮 signum (float f) Signum的 浮动六 Returns the s

22、ignum function of the argument.返回参数的符号函数。 static double 静态双 sin (double d) 罪 双D Returns the closest double approximation of the sine of the argument.返回最接近的双参数正弦逼近。 static double 静态双 sinh (double d) 双曲正弦 双D Returns the closest double approximation of the hyperbolic sine of the argument.返回最接近参数的双曲正弦双逼

23、近。 static double 静态双 sqrt (double d) 开方 双D Returns the closest double approximation of the square root of the argument.返回最接近的双参数平方根逼近。 static double 静态双 tan (double d) 谭 双D Returns the closest double approximation of the tangent of the argument.返回最接近参数的双切线逼近。 static double 静态双 tanh (double d) 的tanh

24、双D Returns the closest double approximation of the hyperbolic tangent of the argument.返回最接近参数的双曲正切双逼近。 static double 静态双 toDegrees (double angrad) toDegrees 双angrad Returns the measure in degrees of the supplied radian angle.在返回所提供的弧度角度的措施。 static double 静态双 toRadians (double angdeg) toRadians 双angd

25、eg Returns the measure in radians of the supplied degree angle.在返回所提供度角弧度措施。 static float 静浮 ulp (float f) 无铅汽油 浮动六 Returns the arguments ulp (unit in the last place).返回参数的无铅汽油单位在最后的地方。 static double 静态双 ulp (double d) 无铅汽油 双D Returns the arguments ulp (unit in the last place).返回参数的无铅汽油单位在最后的地方。 Exp

26、and 展开 Inherited Methods继承的方法 From class 从类java.lang.Object继承 Object 对象 clone () 克隆 Creates and returns a copy of this Object .创立并返回此副本的Object 。 boolean 布尔 equals ( Object o) 等于 对象海外 Compares this instance with the specified object and indicates if they are equal.比拟这与指定的对象实例,并表示,如果他们是平等的。 void 无效 fi

27、nalize () 完成 Is called before the objects memory is being reclaimed by the VM.之前的对象的内存是由所谓的虚拟机回收。 final Class ? 最后 一类 扩展对象 getClass () 的getClass Returns the unique instance of Class which represents this objects class.返回实例的唯一Class代表该对象的类。 int 诠释 hashCode () 的hashCode Returns an integer hash code for

28、 this object.返回此对象的整数哈希代码。 final void 最后无效 notify () 通知 Causes a thread which is waiting on this objects monitor (by means of calling one of the wait() methods) to be woken up.这是导致一个线程等待监视此对象的由一个手段调用wait()方法被唤醒。 final void 最后无效 notifyAll () notifyAll Causes all threads which are waiting on this obje

29、cts monitor (by means of calling one of the wait() methods) to be woken up.这会导致所有线程正在等待此对象的监视器由一个手段调用wait()方法被唤醒。 String 串 toString () 的toString Returns a string containing a concise, human-readable description of this object.返回一个字符串,其中包含一个简洁的,人类可读的这个对象的描述。 final void 最后无效 wait (long millis, int nan

30、os) 等待 米利斯,长整型毫微秒 Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.导致调用线程等待,直到另一个线程调用notify()或notifyAll()方法,这个对象过期或直到指定的超时。 final void 最后无效 wait (long millis) 等待 长利斯 Causes the calling thread to wait

31、 until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.导致调用线程等待,直到另一个线程调用notify()或notifyAll()方法,这个对象过期或直到指定的超时。 final void 最后无效 wait () 等待 Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of

32、this object.导致调用线程等待,直到另一个线程调用notify()或notifyAll()对象的方法这一点。 Constants常数 public static final double E 公共静态最后双E Since: API Level 1因为: 空气污染水平1 The double value closest to e, the base of the natural logarithm.双最接近E的自然对数的底。 public static final double PI 最后双PI公共静态 Since: API Level 1因为: 空气污染水平1 The double

33、value closest to pi, the ratio of a circles circumference to its diameter.双最接近圆周率,一个圆的周长和直径之比。 Public Methods公共方法 public static double IEEEremainder (double x, double y) 公共静态双IEEEremainder双十,双Y Since: API Level 1因为: 空气污染水平1 Returns the remainder of dividing x by y using the IEEE 754 rules.返回除以剩余的x的y

34、使用IEEE 754的规那么。 The result is x-round(x/p)*p where round(x/p) is the nearest integer (rounded to even), but without numerical cancellation problems.其结果是x-round(x/p)*p其中round(x/p)是最近的整数四舍五入连,但没有数值取消的问题。 Special cases:特殊情况: IEEEremainder(anything), 0) = NaN IEEEremainder(+infinity, (anything) = NaN IE

35、EEremainder(-infinity, (anything) = NaN IEEEremainder(NaN, (anything) = NaN IEEEremainder(anything), NaN) = NaN IEEEremainder(x, +infinity) = x where x is anything but +/-infinity IEEEremainder(x, +infinity) = x x是什么,但+ / -无穷远 IEEEremainder(x, -infinity) = x where x is anything but +/-infinity IEEEr

36、emainder(x, -infinity) = x x是什么,但+ / -无穷远 Parameters参数 x x the numerator of the operation.操作的分子。 y the denominator of the operation.操作的分母。 Returns返回 the IEEE754 floating point reminder of of x/y .提醒的IEEE754标准的浮点x/y 。 public static float abs (float f) 公共静态浮动 ABS装置 浮动六 Since: API Level 1因为: 空气污染水平1 Re

37、turns the absolute value of the argument.返回参数的绝对值。 Special cases:特殊情况: abs(-0.0) = +0.0 abs(+infinity) = +infinity abs(-infinity) = +infinity abs(NaN) = NaN Parameters参数 f f the value whose absolute value has to be computed.该值的绝对值必须被计算。 Returns返回 the argument if it is positive, otherwise the negatio

38、n of the argument.如果参数为正,否那么该参数的否认。 public static long abs (long l) 公共静态升长的 绝对值 长 Since: API Level 1因为: 空气污染水平1 Returns the absolute value of the argument.返回参数的绝对值。 If the argument is Long.MIN_VALUE , Long.MIN_VALUE is returned.如果参数是Long.MIN_VALUE , Long.MIN_VALUE返回。 Parameters参数 l升 the value whose

39、absolute value has to be computed.该值的绝对值必须被计算。 Returns返回 the argument if it is positive, otherwise the negation of the argument.如果参数为正,否那么该参数的否认。 public static int abs (int i) 公共静态诠释 ABS装置 int i已 Since: API Level 1因为: 空气污染水平1 Returns the absolute value of the argument.返回参数的绝对值。 If the argument is In

40、teger.MIN_VALUE , Integer.MIN_VALUE is returned.如果参数是Integer.MIN_VALUE , Integer.MIN_VALUE返回。 Parameters参数 i我 the value whose absolute value has to be computed.该值的绝对值必须被计算。 Returns返回 the argument if it is positive, otherwise the negation of the argument.如果参数为正,否那么该参数的否认。 public static double abs (do

41、uble d) 公共静态d双 ABS装置 双 Since: API Level 1因为: 空气污染水平1 Returns the absolute value of the argument.返回参数的绝对值。 Special cases:特殊情况: abs(-0.0) = +0.0 abs(+infinity) = +infinity abs(-infinity) = +infinity abs(NaN) = NaN Parameters参数 d the value whose absolute value has to be computed.该值的绝对值必须被计算。 Returns返回

42、the absolute value of the argument.该参数的绝对值。 public static double acos (double d) 公共静态d双 阿科斯 双 Since: API Level 1因为: 空气污染水平1 Returns the closest double approximation of the arc cosine of the argument within the range 0.pi .返回最接近参数近似余弦双圆弧的范围内0.pi 。 Special cases:特殊情况: acos(anything 1) = NaN acos(anyth

43、ing 1) = NaN asin(anything -1) = NaN asin(NaN) = NaN Parameters参数 d the value whose arc sine has to be computed.值的反正弦要被计算。 Returns返回 the arc sine of the argument.该参数的反正弦。 public static double atan (double d) 公共静态双重 的Atan 双D Since: API Level 1因为: 空气污染水平1 Returns the closest double approximation of th

44、e arc tangent of the argument within the range -pi/2.pi/2 .返回最接近参数范围内的近似双圆弧切线的-pi/2.pi/2 Special cases:特殊情况: atan(+0.0) = +0.0 atan(-0.0) = -0.0 atan(+infinity) = +pi/2 atan(-infinity) = -pi/2 atan(NaN) = NaN Parameters参数 d the value whose arc tangent has to be computed.反正切值,其必须被计算。 Returns返回 the ar

45、c tangent of the argument.该参数的反正切。 public static double atan2 (double y, double x) 公共静态双 atan2的 双Y,双X Since: API Level 1因为: 空气污染水平1 Returns the closest double approximation of the arc tangent of y/x within the range -pi.pi .返回最接近的切线近似双弧y/x范围内-pi.pi This is the angle of the polar representation of th

46、e rectangular coordinates (x,y).这是极坐标表示的矩形角坐标x,y的。 Special cases:特殊情况: atan2(anything), NaN ) = NaN; atan2(NaN , (anything) ) = NaN; atan2(+0.0, +(anything but NaN) = +0.0 atan2(-0.0, +(anything but NaN) = -0.0 atan2(+0.0, -(anything but NaN) = +pi atan2(-0.0, -(anything but NaN) = -pi atan2(+(anyth

47、ing but 0 and NaN), 0) = +pi/2 atan2(-(anything but 0 and NaN), 0) = -pi/2 atan2(+(anything but infinity and NaN), +infinity) = +0.0 atan2(+(anything but infinity and NaN), +infinity) = +0.0 atan2(-(anything but infinity and NaN), +infinity) = -0.0 atan2(-(anything but infinity and NaN), +infinity)

48、= -0.0 atan2(+(anything but infinity and NaN), -infinity) = +pi atan2(-(anything but infinity and NaN), -infinity) = -pi atan2(+infinity, +infinity ) = +pi/4 atan2(-infinity, +infinity ) = -pi/4 atan2(+infinity, -infinity ) = +3pi/4 atan2(-infinity, -infinity ) = -3pi/4 atan2(+infinity, (anything bu

49、t,0, NaN, and infinity) = +pi/2 atan2(+infinity, (anything but,0, NaN, and infinity) = +pi/2 atan2(-infinity, (anything but,0, NaN, and infinity) = -pi/2 atan2(-infinity, (anything but,0, NaN, and infinity) = -pi/2 Parameters参数 y the numerator of the value whose atan has to be computed.该值,其计算的Atan要分

50、子。 x x the denominator of the value whose atan has to be computed.该值,其计算的Atan要分母。 Returns返回 the arc tangent of y/x .切弧y/x 。 public static double cbrt (double d) 公共静态双cbrt双D Since: API Level 1因为: 空气污染水平1 Returns the closest double approximation of the cube root of the argument.返回最接近的论点立方根双逼近。 Special

51、 cases:特殊情况: cbrt(+0.0) = +0.0 cbrt(-0.0) = -0.0 cbrt(+infinity) = +infinity cbrt(-infinity) = -infinity cbrt(NaN) = NaN Parameters参数 d the value whose cube root has to be computed.值的立方根,必须计算。 Returns返回 the cube root of the argument.该参数的立方根。 public static double ceil (double d) 公共静态双重 性细胞 双D Since:

52、API Level 1因为: 空气污染水平1 Returns the double conversion of the most negative (closest to negative infinity) integer value which is greater than the argument.返回最消极的双转换最接近负无穷大的整数值,比参数大。 Special cases:特殊情况: ceil(+0.0) = +0.0 ceil(-0.0) = -0.0 ceil(anything in range (-1,0) = -0.0 ceil(+infinity) = +infinit

53、y ceil(-infinity) = -infinity ceil(NaN) = NaN Parameters参数 d the value whose closest integer value has to be computed.最接近整数的值,其值必须被计算。 Returns返回 the ceiling of the argument.该参数的上限。 public static double cos (double d) 公共静态d双 余弦 双 Since: API Level 1因为: 空气污染水平1 Returns the closest double approximation

54、of the cosine of the argument.返回最接近参数的余弦双逼近。 Special cases:特殊情况: cos(+infinity) = NaN cos(-infinity) = NaN cos(NaN) = NaN Parameters参数 d the angle whose cosine has to be computed, in radians.角度的余弦要计算,弧度。 Returns返回 the cosine of the argument.该参数的余弦。 public static double cosh (double d) 公共静态双 双曲余弦 双D

55、Since: API Level 1因为: 空气污染水平1 Returns the closest double approximation of the hyperbolic cosine of the argument.返回最接近参数的双曲余弦双逼近。 Special cases:特殊情况: cosh(+infinity) = +infinity cosh(-infinity) = +infinity cosh(NaN) = NaN Parameters参数 d the value whose hyperbolic cosine has to be computed.其双曲余弦值要被计算。

56、 Returns返回 the hyperbolic cosine of the argument.该参数的双曲余弦值。 public static double exp (double d) 公共静态双重 曝光 双D Since: API Level 1因为: 空气污染水平1 Returns the closest double approximation of the raising e to the power of the argument.返回最接近的提高“e来的论点功率双逼近。 Special cases:特殊情况: exp(+infinity) = +infinity exp(-i

57、nfinity) = +0.0 exp(NaN) = NaN Parameters参数 d the value whose exponential has to be computed.的值,其指数必须被计算。 Returns返回 the exponential of the argument.该参数的指数。 public static double expm1 (double d) 公共静态双expm1双D Since: API Level 1因为: 空气污染水平1 Returns the closest double approximation of e d - 1 .返回最接近的双重逼近e d - 1 。 If the argument is very close to 0, it is much more accurate to use expm1(d)+1 than exp(d) (due to cancellation of significant digits).如果参数是非常接近0,它更准确的使用expm1(d)+1比exp(d) 由于数字取消显着。 Special cases:特殊情况: expm1(+0.0) = +0.0 expm1(-0.0) = -0.0 expm1(+infinity) = +infinity

展开阅读全文
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!