当前位置: 首页>>代码示例>>Java>>正文


Java MathOpcodes类代码示例

本文整理汇总了Java中com.sun.squawk.vm.MathOpcodes的典型用法代码示例。如果您正苦于以下问题:Java MathOpcodes类的具体用法?Java MathOpcodes怎么用?Java MathOpcodes使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MathOpcodes类属于com.sun.squawk.vm包,在下文中一共展示了MathOpcodes类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: sin

import com.sun.squawk.vm.MathOpcodes; //导入依赖的package包/类
/**
 * Returns the trigonometric sine of an angle.  Special cases:
 * <ul><li>If the argument is NaN or an infinity, then the 
 * result is NaN.
 * <li>If the argument is positive zero, then the result is 
 * positive zero; if the argument is negative zero, then the 
 * result is negative zero.</ul>
 *
 * @param   a   an angle, in radians.
 * @return  the sine of the argument.
 * @since   CLDC 1.1
 */
public static double sin(double a)                       { return VM.math(MathOpcodes.SIN, a, 0);          }
 
开发者ID:tomatsu,项目名称:squawk,代码行数:14,代码来源:Math.java

示例2: cos

import com.sun.squawk.vm.MathOpcodes; //导入依赖的package包/类
/**
 * Returns the trigonometric cosine of an angle. Special case:
 * <ul><li>If the argument is NaN or an infinity, then the 
 * result is NaN.</ul>
 *
 * @param   a   an angle, in radians.
 * @return  the cosine of the argument.
 * @since   CLDC 1.1
 */
public static double cos(double a)                       { return VM.math(MathOpcodes.COS, a, 0);          }
 
开发者ID:tomatsu,项目名称:squawk,代码行数:11,代码来源:Math.java

示例3: tan

import com.sun.squawk.vm.MathOpcodes; //导入依赖的package包/类
/**
 * Returns the trigonometric tangent of an angle.  Special cases:
 * <ul><li>If the argument is NaN or an infinity, then the result 
 * is NaN.
 * <li>If the argument is positive zero, then the result is 
 * positive zero; if the argument is negative zero, then the 
 * result is negative zero</ul>
 *
 * @param   a   an angle, in radians.
 * @return  the tangent of the argument.
 * @since   CLDC 1.1
 */
public static double tan(double a)                       { return VM.math(MathOpcodes.TAN, a, 0);          }
 
开发者ID:tomatsu,项目名称:squawk,代码行数:14,代码来源:Math.java

示例4: sqrt

import com.sun.squawk.vm.MathOpcodes; //导入依赖的package包/类
/**
 * Returns the correctly rounded positive square root of a 
 * <code>double</code> value.
 * Special cases:
 * <ul><li>If the argument is NaN or less than zero, then the result 
 * is NaN. 
 * <li>If the argument is positive infinity, then the result is positive 
 * infinity. 
 * <li>If the argument is positive zero or negative zero, then the 
 * result is the same as the argument.</ul>
 * 
 * @param   a   a <code>double</code> value.
 * @return  the positive square root of <code>a</code>.
 *          If the argument is NaN or less than zero, the result is NaN.
 * @since   CLDC 1.1
 */
public static double sqrt(double a)                      { return VM.math(MathOpcodes.SQRT, a, 0);         }
 
开发者ID:tomatsu,项目名称:squawk,代码行数:18,代码来源:Math.java

示例5: ceil

import com.sun.squawk.vm.MathOpcodes; //导入依赖的package包/类
/**
 * Returns the smallest (closest to negative infinity)
 * <code>double</code> value that is not less than the argument and is
 * equal to a mathematical integer. Special cases:
 * <ul><li>If the argument value is already equal to a mathematical
 * integer, then the result is the same as the argument.
 * <li>If the argument is NaN or an infinity or positive zero or negative
 * zero, then the result is the same as the argument.
 * <li>If the argument value is less than zero but greater than -1.0,
 * then the result is negative zero.</ul>
 * Note that the value of <code>Math.ceil(x)</code> is exactly the
 * value of <code>-Math.floor(-x)</code>.
 *
 * @param   a   a <code>double</code> value.
 * <[email protected]  the value &lceil;&nbsp;<code>a</code>&nbsp;&rceil;.-->
 * @return  the smallest (closest to negative infinity) 
 *          <code>double</code> value that is not less than the argument
 *          and is equal to a mathematical integer.
 * @since   CLDC 1.1
 */
public static double ceil(double a)                      { return VM.math(MathOpcodes.CEIL, a, 0);         }
 
开发者ID:tomatsu,项目名称:squawk,代码行数:22,代码来源:Math.java

示例6: floor

import com.sun.squawk.vm.MathOpcodes; //导入依赖的package包/类
/**
 * Returns the largest (closest to positive infinity)
 * <code>double</code> value that is not greater than the argument and
 * is equal to a mathematical integer. Special cases:
 * <ul><li>If the argument value is already equal to a mathematical
 * integer, then the result is the same as the argument.
 * <li>If the argument is NaN or an infinity or positive zero or
 * negative zero, then the result is the same as the argument.</ul>
 *
 * @param   a   a <code>double</code> value.
 * <[email protected]  the value &lfloor;&nbsp;<code>a</code>&nbsp;&rfloor;.-->
 * @return  the largest (closest to positive infinity)
 *          <code>double</code> value that is not greater than the argument
 *          and is equal to a mathematical integer.
 * @since   CLDC 1.1
 */
public static double floor(double a)                     { return VM.math(MathOpcodes.FLOOR, a, 0);        }
 
开发者ID:sics-sse,项目名称:moped,代码行数:18,代码来源:Math.java

示例7: asin

import com.sun.squawk.vm.MathOpcodes; //导入依赖的package包/类
public static double asin(double a)                      { return VM.math(MathOpcodes.ASIN, a, 0);         } 
开发者ID:tomatsu,项目名称:squawk,代码行数:2,代码来源:Math.java

示例8: acos

import com.sun.squawk.vm.MathOpcodes; //导入依赖的package包/类
public static double acos(double a)                      { return VM.math(MathOpcodes.ACOS, a, 0);         } 
开发者ID:tomatsu,项目名称:squawk,代码行数:2,代码来源:Math.java

示例9: atan

import com.sun.squawk.vm.MathOpcodes; //导入依赖的package包/类
public static double atan(double a)                      { return VM.math(MathOpcodes.ATAN, a, 0);         } 
开发者ID:tomatsu,项目名称:squawk,代码行数:2,代码来源:Math.java

示例10: atan2

import com.sun.squawk.vm.MathOpcodes; //导入依赖的package包/类
public static double atan2(double a, double b)           { return VM.math(MathOpcodes.ATAN2, a, b);        } 
开发者ID:tomatsu,项目名称:squawk,代码行数:2,代码来源:Math.java

示例11: exp

import com.sun.squawk.vm.MathOpcodes; //导入依赖的package包/类
public static double exp(double a)                       { return VM.math(MathOpcodes.EXP, a, 0);          } 
开发者ID:tomatsu,项目名称:squawk,代码行数:2,代码来源:Math.java

示例12: log

import com.sun.squawk.vm.MathOpcodes; //导入依赖的package包/类
public static double log(double a)                       { return VM.math(MathOpcodes.LOG, a, 0);          } 
开发者ID:tomatsu,项目名称:squawk,代码行数:2,代码来源:Math.java

示例13: pow

import com.sun.squawk.vm.MathOpcodes; //导入依赖的package包/类
public static double pow(double a, double b)             { return VM.math(MathOpcodes.POW, a, b);          } 
开发者ID:tomatsu,项目名称:squawk,代码行数:2,代码来源:Math.java

示例14: IEEEremainder

import com.sun.squawk.vm.MathOpcodes; //导入依赖的package包/类
public static double IEEEremainder(double a, double b)   { return VM.math(MathOpcodes.IEEE_REMAINDER, a, b);} 
开发者ID:tomatsu,项目名称:squawk,代码行数:2,代码来源:Math.java


注:本文中的com.sun.squawk.vm.MathOpcodes类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。