亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? specialfunction.java

?? java 作圖的程序
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
package graph;import java.lang.Math;import java.lang.ArithmeticException;/*******************************************************************************    Class  SpecialFunction            ******************************************************************************    Copyright (C) 1996 Leigh Brookshaw****    This program is free software; you can redistribute it and/or modify**    it under the terms of the GNU General Public License as published by**    the Free Software Foundation; either version 2 of the License, or**    (at your option) any later version.****    This program is distributed in the hope that it will be useful,**    but WITHOUT ANY WARRANTY; without even the implied warranty of**    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the**    GNU General Public License for more details.****    You should have received a copy of the GNU General Public License**    along with this program; if not, write to the Free Software**    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.******************************************************************************    This class is an extension of java.lang.Math. It includes a number**    of special functions not found in the Math class.***************************************************************************//** * This class contains physical constants and special functions not found * in the java.lang.Math class. * Like the java.lang.Math class this class is final and cannot be * subclassed. * All physical constants are in cgs units. * <P> * <B>NOTE:</B> These special functions do not necessarily use the fastest * or most accurate algorithms. * * @version $Revision: 1.7 $, $Date: 1996/08/19 06:04:15 $ * @author Leigh Brookshaw  */public final class SpecialFunction extends Object {  /*  ** machine constants  */    private static final double MACHEP =  1.11022302462515654042E-16;    private static final double MAXLOG =  7.09782712893383996732E2;    private static final double MINLOG = -7.451332191019412076235E2;    private static final double MAXGAM = 171.624376956302725;    private static final double SQTPI  =  2.50662827463100050242E0;    private static final double SQRTH  =  7.07106781186547524401E-1;    private static final double LOGPI  =  1.14472988584940017414;  /*  ** Physical Constants in cgs Units  */  /**   * Boltzman Constant. Units erg/deg(K)   */    public static final double BOLTZMAN     = 1.3807e-16;  /**   * Elementary Charge. Units statcoulomb    */    public static final double ECHARGE      = 4.8032e-10;  /**   * Electron Mass. Units g   */    public static final double EMASS        = 9.1095e-28;  /**   * Proton Mass. Units g   */    public static final double PMASS        = 1.6726e-24;  /**   * Gravitational Constant. Units dyne-cm^2/g^2   */    public static final double GRAV         = 6.6720e-08;  /**   * Planck constant. Units erg-sec   */    public static final double PLANCK       = 6.6262e-27;  /**   * Speed of Light in a Vacuum. Units cm/sec   */    public static final double LIGHTSPEED   = 2.9979e10;  /**   * Stefan-Boltzman Constant. Units erg/cm^2-sec-deg^4   */    public static final double STEFANBOLTZ  = 5.6703e-5;  /**   * Avogadro Number. Units  1/mol   */    public static final double AVOGADRO     = 6.0220e23;  /**   * Gas Constant. Units erg/deg-mol   */    public static final double GASCONSTANT  = 8.3144e07;  /**   * Gravitational Acceleration at the Earths surface. Units cm/sec^2   */    public static final double GRAVACC      = 980.67;  /**   * Solar Mass. Units g   */    public static final double SOLARMASS    = 1.99e33;  /**   * Solar Radius. Units cm   */    public static final double SOLARRADIUS  = 6.96e10;  /**   * Solar Luminosity. Units erg/sec   */    public static final double SOLARLUM     = 3.90e33;  /**   * Solar Flux. Units erg/cm^2-sec   */    public static final double SOLARFLUX    = 6.41e10;  /**   * Astronomical Unit (radius of the Earth's orbit). Units cm   */    public static final double AU           = 1.50e13;    /**     * Don't let anyone instantiate this class.     */    private SpecialFunction() {}  /*  ** Function Methods  */  /**   * @param x a double value   * @return The log<sub>10</sub>   */    static public double log10(double x) throws ArithmeticException {         if( x <= 0.0 ) throw new ArithmeticException("range exception");         return Math.log(x)/2.30258509299404568401;    }  /**   * @param x a double value   * @return the hyperbolic cosine of the argument   */    static public double cosh(double x) throws ArithmeticException {      double a;      a = x;      if( a < 0.0 ) a = Math.abs(x);      a = Math.exp(a);      return 0.5*(a+1/a);    }  /**   * @param x a double value   * @return the hyperbolic sine of the argument   */    static public double sinh(double x) throws ArithmeticException {      double a;      if(x == 0.0) return x;      a = x;      if( a < 0.0 ) a = Math.abs(x);      a = Math.exp(a);      if( x < 0.0 )  return -0.5*(a-1/a);      else           return  0.5*(a-1/a);    }  /**   * @param x a double value   * @return the hyperbolic tangent of the argument   */    static public double tanh(double x) throws ArithmeticException {      double a;      if( x == 0.0 ) return x;      a = x;      if( a < 0.0 ) a = Math.abs(x);      a = Math.exp(2.0*a);      if(x < 0.0 ) return -( 1.0-2.0/(a+1.0) );      else         return  ( 1.0-2.0/(a+1.0) );    }  /**   * @param x a double value   * @return the hyperbolic arc cosine of the argument   */    static public double acosh(double x) throws ArithmeticException {      if( x < 1.0 ) throw new ArithmeticException("range exception");      return Math.log( x + Math.sqrt(x*x-1));    }  /**   * @param x a double value   * @return the hyperbolic arc sine of the argument   */    static public double asinh(double xx) throws ArithmeticException {      double x;      int sign;      if(xx == 0.0) return xx;      if( xx < 0.0 ) {                      sign = -1;                      x = -xx;      } else {                      sign = 1;                      x = xx;      }      return sign*Math.log( x + Math.sqrt(x*x+1));    }  /**   * @param x a double value   * @return the hyperbolic arc tangent of the argument   */    static public double atanh(double x) throws ArithmeticException {      if( x > 1.0 || x < -1.0 ) throw                          new ArithmeticException("range exception");      return 0.5 * Math.log( (1.0+x)/(1.0-x) );    }  /**   * @param x a double value   * @return the Bessel function of order 0 of the argument.   */    static public double j0(double x) throws ArithmeticException {        double ax;        if( (ax=Math.abs(x)) < 8.0 ) {           double y=x*x;           double ans1=57568490574.0+y*(-13362590354.0+y*(651619640.7                       +y*(-11214424.18+y*(77392.33017+y*(-184.9052456)))));           double ans2=57568490411.0+y*(1029532985.0+y*(9494680.718                       +y*(59272.64853+y*(267.8532712+y*1.0))));           return ans1/ans2;        } else {           double z=8.0/ax;           double y=z*z;           double xx=ax-0.785398164;           double ans1=1.0+y*(-0.1098628627e-2+y*(0.2734510407e-4                       +y*(-0.2073370639e-5+y*0.2093887211e-6)));           double ans2 = -0.1562499995e-1+y*(0.1430488765e-3                       +y*(-0.6911147651e-5+y*(0.7621095161e-6                       -y*0.934935152e-7)));                      return Math.sqrt(0.636619772/ax)*                  (Math.cos(xx)*ans1-z*Math.sin(xx)*ans2);	}    }  /**   * @param x a double value   * @return the Bessel function of order 1 of the argument.   */    static public double j1(double x) throws ArithmeticException {      double ax;      double y;      double ans1, ans2;      if ((ax=Math.abs(x)) < 8.0) {         y=x*x;         ans1=x*(72362614232.0+y*(-7895059235.0+y*(242396853.1               +y*(-2972611.439+y*(15704.48260+y*(-30.16036606))))));         ans2=144725228442.0+y*(2300535178.0+y*(18583304.74               +y*(99447.43394+y*(376.9991397+y*1.0))));         return ans1/ans2;       } else {         double z=8.0/ax;         double xx=ax-2.356194491;         y=z*z;         ans1=1.0+y*(0.183105e-2+y*(-0.3516396496e-4              +y*(0.2457520174e-5+y*(-0.240337019e-6))));         ans2=0.04687499995+y*(-0.2002690873e-3              +y*(0.8449199096e-5+y*(-0.88228987e-6              +y*0.105787412e-6)));         double ans=Math.sqrt(0.636619772/ax)*                   (Math.cos(xx)*ans1-z*Math.sin(xx)*ans2);         if (x < 0.0) ans = -ans;         return ans;       }    }  /**   * @param n integer order   * @param x a double value   * @return the Bessel function of order n of the argument.   */    static public double jn(int n, double x) throws ArithmeticException {       int j,m;       double ax,bj,bjm,bjp,sum,tox,ans;       boolean jsum;       double ACC   = 40.0;       double BIGNO = 1.0e+10;       double BIGNI = 1.0e-10;       if(n == 0) return j0(x);       if(n == 1) return j1(x);       ax=Math.abs(x);       if(ax == 0.0)  return 0.0;       else        if (ax > (double)n) {         tox=2.0/ax;         bjm=j0(ax);         bj=j1(ax);         for (j=1;j<n;j++) {            bjp=j*tox*bj-bjm;            bjm=bj;            bj=bjp;         }         ans=bj;       } else {         tox=2.0/ax;         m=2*((n+(int)Math.sqrt(ACC*n))/2);         jsum=false;         bjp=ans=sum=0.0;         bj=1.0;         for (j=m;j>0;j--) {            bjm=j*tox*bj-bjp;            bjp=bj;            bj=bjm;            if (Math.abs(bj) > BIGNO) {               bj *= BIGNI;               bjp *= BIGNI;               ans *= BIGNI;               sum *= BIGNI;            }            if (jsum) sum += bj;            jsum=!jsum;            if (j == n) ans=bjp;          }          sum=2.0*sum-bj;          ans /= sum;       }       return  x < 0.0 && n%2 == 1 ? -ans : ans;   }  /**   * @param x a double value   * @return the Bessel function of the second kind,    *          of order 0 of the argument.   */   static public double y0(double x) throws ArithmeticException {      if (x < 8.0) {         double y=x*x;         double ans1 = -2957821389.0+y*(7062834065.0+y*(-512359803.6                        +y*(10879881.29+y*(-86327.92757+y*228.4622733))));         double ans2=40076544269.0+y*(745249964.8+y*(7189466.438                        +y*(47447.26470+y*(226.1030244+y*1.0))));         return (ans1/ans2)+0.636619772*j0(x)*Math.log(x);      } else {         double z=8.0/x;         double y=z*z;         double xx=x-0.785398164;         double ans1=1.0+y*(-0.1098628627e-2+y*(0.2734510407e-4                     +y*(-0.2073370639e-5+y*0.2093887211e-6)));         double ans2 = -0.1562499995e-1+y*(0.1430488765e-3                      +y*(-0.6911147651e-5+y*(0.7621095161e-6                      +y*(-0.934945152e-7))));         return Math.sqrt(0.636619772/x)*                (Math.sin(xx)*ans1+z*Math.cos(xx)*ans2);      }   }  /**   * @param x a double value   * @return the Bessel function of the second kind,   *  of order 1 of the argument.   */   static public double y1(double x) throws ArithmeticException {         if (x < 8.0) {         double y=x*x;         double ans1=x*(-0.4900604943e13+y*(0.1275274390e13                     +y*(-0.5153438139e11+y*(0.7349264551e9                     +y*(-0.4237922726e7+y*0.8511937935e4)))));         double ans2=0.2499580570e14+y*(0.4244419664e12                     +y*(0.3733650367e10+y*(0.2245904002e8                     +y*(0.1020426050e6+y*(0.3549632885e3+y)))));         return (ans1/ans2)+0.636619772*(j1(x)*Math.log(x)-1.0/x);      } else {         double z=8.0/x;         double y=z*z;         double xx=x-2.356194491;         double ans1=1.0+y*(0.183105e-2+y*(-0.3516396496e-4                     +y*(0.2457520174e-5+y*(-0.240337019e-6))));         double ans2=0.04687499995+y*(-0.2002690873e-3                     +y*(0.8449199096e-5+y*(-0.88228987e-6                     +y*0.105787412e-6)));         return Math.sqrt(0.636619772/x)*                (Math.sin(xx)*ans1+z*Math.cos(xx)*ans2);      }   }  /**   * @param n integer order   * @param x a double value   * @return the Bessel function of the second kind,   *    of order n of the argument.   */    static public double yn(int n, double x) throws ArithmeticException {       double by,bym,byp,tox;       if(n == 0) return y0(x);       if(n == 1) return y1(x);       tox=2.0/x;       by=y1(x);       bym=y0(x);       for (int j=1;j<n;j++) {         byp=j*tox*by-bym;         bym=by;         by=byp;       }       return by;    }  /**   * @param x a double value   * @return the factorial of the argument   */     static public double fac(double x) throws ArithmeticException {        double d = Math.abs(x);        if(Math.floor(d) == d) return (double)fac( (int)x );        else                   return gamma(x+1.0);     }  /**

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一区二区久久精品爱涩| 久久国产夜色精品鲁鲁99| 日韩欧美色综合网站| 欧美人体做爰大胆视频| 在线观看日韩电影| 欧美日韩第一区日日骚| 欧美三片在线视频观看| 欧美一级午夜免费电影| 久久这里都是精品| 久久久久久久久久久99999| 日本一区二区三区四区在线视频| 久久老女人爱爱| 成人欧美一区二区三区1314| 国产精品不卡一区| 亚洲美女免费视频| 日韩中文字幕91| 久久精品国产一区二区三区免费看| 久久99精品国产91久久来源| 国产一区二区三区观看| 国产高清不卡一区| 91免费版在线| 日韩一级二级三级| 欧美国产欧美综合| 一区2区3区在线看| 日本成人在线网站| 国产东北露脸精品视频| 一本在线高清不卡dvd| 69精品人人人人| 国产香蕉久久精品综合网| 亚洲乱码日产精品bd| 日韩不卡手机在线v区| 盗摄精品av一区二区三区| 在线观看国产精品网站| 欧美电影免费观看高清完整版在线 | 国产精品伊人色| 97久久超碰国产精品电影| 色8久久人人97超碰香蕉987| 欧美久久一区二区| 国产精品久久久久久妇女6080| 亚洲国产一区视频| 国产成人综合在线| 精品国产sm最大网站免费看| 国产精品久久久久毛片软件| 免费高清在线一区| 91福利区一区二区三区| 久久久www成人免费毛片麻豆| 亚洲综合一二三区| 不卡av免费在线观看| 欧美一级精品在线| 伊人色综合久久天天人手人婷| 久久99国产精品麻豆| 欧美三级资源在线| 自拍视频在线观看一区二区| 精品系列免费在线观看| 欧美日韩国产综合一区二区| 国产精品―色哟哟| 久久精品国产77777蜜臀| 在线视频亚洲一区| 国产精品美女久久福利网站| 另类的小说在线视频另类成人小视频在线 | 久久99精品国产91久久来源| 欧美日韩一区小说| 一区二区三区在线视频免费| 99视频超级精品| 国产精品国产馆在线真实露脸 | 欧美精品久久一区二区三区| 自拍偷拍欧美精品| 成人av在线一区二区| 久久久综合视频| 国产精品一区二区久久不卡| 欧美成人免费网站| 极品少妇一区二区三区精品视频| 欧美一区二区观看视频| 日本不卡一区二区三区 | 亚洲精品一区二区三区福利| 日本欧美在线看| 91精品国产91久久综合桃花| 视频一区国产视频| 欧美本精品男人aⅴ天堂| 老司机免费视频一区二区| 日韩欧美色电影| 狠狠网亚洲精品| 国产日产欧美一区| www.亚洲在线| 亚洲精品中文在线| 欧美日韩另类一区| 日韩av一级片| 国产清纯美女被跳蛋高潮一区二区久久w| 久88久久88久久久| 欧美国产日韩a欧美在线观看| 成人免费视频免费观看| 亚洲婷婷在线视频| 欧美视频一区二区三区在线观看 | 欧美肥妇毛茸茸| 久久精品国产一区二区三 | 欧美视频在线一区二区三区 | 国产精品丝袜在线| 色哟哟一区二区| 亚洲成精国产精品女| 欧美v国产在线一区二区三区| 国产一区二区调教| 综合色中文字幕| 91精品久久久久久蜜臀| 国产精品69毛片高清亚洲| 最新中文字幕一区二区三区| 制服.丝袜.亚洲.中文.综合| 黑人巨大精品欧美一区| 综合久久久久综合| 欧美一区二区国产| 99久久精品情趣| 乱中年女人伦av一区二区| 欧美激情综合在线| 7777精品伊人久久久大香线蕉的 | 亚洲精品久久久久久国产精华液| 91麻豆精品国产91| 不卡av免费在线观看| 九九国产精品视频| 日韩美女啊v在线免费观看| 欧美一区二区精品在线| 成人动漫一区二区| 另类小说一区二区三区| 亚洲最色的网站| 国产欧美一区二区精品仙草咪 | 国产日产欧美一区二区三区| 欧美日韩日日摸| av激情成人网| 懂色中文一区二区在线播放| 午夜精品一区二区三区三上悠亚| 国产亚洲一区字幕| 日韩欧美视频在线| 欧美精品乱码久久久久久| 色婷婷久久久综合中文字幕| 国产精品77777竹菊影视小说| 蜜桃av一区二区在线观看| 一区二区三区小说| 亚洲天堂免费看| 国产精品久久国产精麻豆99网站| 精品裸体舞一区二区三区| 欧美精品日韩一区| 在线成人av影院| 欧美午夜寂寞影院| 在线中文字幕一区| 色婷婷精品大在线视频| 91视频xxxx| 色综合久久综合网97色综合| 高清不卡在线观看av| 丁香亚洲综合激情啪啪综合| 国产最新精品免费| 久久不见久久见免费视频7| 日本特黄久久久高潮| 日日夜夜精品视频免费| 亚洲午夜久久久久中文字幕久| 亚洲男人的天堂在线观看| 国产精品无人区| 国产精品乱码人人做人人爱| 国产精品视频一二三区| 欧美激情中文不卡| 国产精品看片你懂得| 中国av一区二区三区| 国产精品电影一区二区三区| 中文字幕在线观看一区| 亚洲免费观看高清完整版在线| 中文字幕综合网| 亚洲在线视频一区| 五月天视频一区| 久久精品久久99精品久久| 国产一区二区电影| 成人av在线网| 欧美日韩另类国产亚洲欧美一级| 91精品欧美一区二区三区综合在| 欧美成人精精品一区二区频| 欧美精品一区二区三区久久久 | 欧美一区日韩一区| 精品国产91九色蝌蚪| 中国色在线观看另类| 亚洲国产wwwccc36天堂| 青草av.久久免费一区| 国产成人精品1024| 91蜜桃免费观看视频| 91精品国产免费久久综合| 亚洲精品一区二区在线观看| 国产精品网站一区| 婷婷成人综合网| 丁香婷婷深情五月亚洲| 欧洲av在线精品| 精品少妇一区二区三区在线播放 | 色婷婷亚洲精品| 日韩欧美一卡二卡| 亚洲三级电影全部在线观看高清| 午夜欧美在线一二页| 国产91露脸合集magnet| 欧美熟乱第一页| 国产精品伦一区二区三级视频| 午夜精品视频在线观看| 岛国精品在线观看| 91精品国产乱| 亚洲欧美另类久久久精品 | 中文字幕国产精品一区二区| 午夜视频一区在线观看| 成人高清免费观看|