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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? parsefunction.java

?? java 作圖的程序
?? JAVA
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
package graph;import java.awt.*;import java.util.*;import java.lang.*;/*******************************************************************************    Class  ParseFunction            ******************************************************************************    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 will parse a function definition and solve it returning the * value. The function may have upto 3 independent variables in it * (x,y,z).  * <p> * <b>Known Bugs</B> This class is not fool proof. If the answer is wrong * then use the parenthesis to force the order of evaluation. The most * likely place this will be needed is in the use of the power command. * The exponent is not evaluated correctly if it begins with a * unary operator. * * <h3>List of recognised commands</h3> * <ul> *   <li> ( ) parenthesis , comma *   <li> +, -, unary -, unary + *   <li> *, / *   <li> ^ (raise to a power) *   <li> pi, e, All the constants in class SpecialFunction *   <li> log *   <li> sin, cos, tan *   <li> asin, acos, atan *   <li> sqrt *   <li> rand *   <li> exp *   <li> remainder *   <li> atan2 *   <li> All the functions in class SpecialFunction *   <li> Independent variables x,y,z *   <li> Scientific notation using "e", "E", "d", "D". * </ul> * * @version $Revision: 1.8 $, $Date: 1996/08/12 23:37:08 $ * @author Leigh Brookshaw */public class ParseFunction extends ScanString {/*************************  Constants*********************//***   Specifiy the integer values associated with keywords. Every integer **   in this list is associated with keyword used in the string*/       static final int GROUP        =  1;       static final int ENDGROUP     =  2;       static final int ADD          =  3;       static final int SUBTRACT     =  4;       static final int DIVIDE       =  5;       static final int MULTIPLY     =  6;       static final int LOG          =  7;       static final int POWER        =  8;       static final int PI           =  9;       static final int E            = 10;       static final int SIN          = 11;       static final int COS          = 12;       static final int TAN          = 13;       static final int X            = 14;       static final int Y            = 15;       static final int Z            = 16;       static final int ASIN         = 17;       static final int ACOS         = 18;       static final int ATAN         = 19;       static final int RAD          = 20;       static final int SQRT         = 21;       static final int RANDOM       = 22;       static final int LOG10        = 23;       static final int EXP          = 24;       static final int REMAINDER    = 25;       static final int COMMA        = 26;       static final int ATAN2        = 27;       static final int J0           = 28;       static final int J1           = 29;       static final int JN           = 30;       static final int SINH         = 31;       static final int COSH         = 32;       static final int TANH         = 33;       static final int ASINH        = 34;       static final int ACOSH        = 35;       static final int ATANH        = 36;       static final int Y0           = 37;       static final int Y1           = 38;       static final int YN           = 39;       static final int FAC          = 40;       static final int GAMMA        = 41;       static final int ERF          = 42;       static final int ERFC         = 43;       static final int NORMAL       = 44;       static final int POISSONC     = 45;       static final int POISSON      = 46;       static final int CHISQC       = 47;       static final int CHISQ        = 48;       static final int IGAM         = 49;       static final int IGAMC        = 50;  /*  **   Physical Constants in SI units  */       static final int BOLTZMAN     = 101;        static final int ECHARGE      = 102;       static final int EMASS        = 103;       static final int PMASS        = 104;       static final int GRAV         = 105;       static final int PLANCK       = 106;       static final int LIGHTSPEED   = 107;       static final int STEFANBOLTZ  = 108;       static final int AVOGADRO     = 109;       static final int GASCONSTANT  = 110;       static final int GRAVACC      = 111;/************************** Private Variables***********************/  /*  ** The root node after parsing the string  */       private Node root;  /*  ** Boolean flags set when any of the independent variable are encountered  */            private boolean independent_x;       private boolean independent_y;       private boolean independent_z;  /*  ** Internal values for the independent variables  */            private double x;       private double y;       private double z;  /**   * Debug variable. If set true debug output is printed.   */       public boolean debug;                     /***************************** Constructors************************/  /**   * Instantiate the class   */       public ParseFunction() {                   root = null;            independent_x = false;            independent_y = false;            independent_z = false;            debug = false;                        x = 0.0;            y = 0.0;            z = 0.0;                                                addKeyWord(",",          COMMA);            addKeyWord("(",          GROUP);            addKeyWord(")",          ENDGROUP);            addKeyWord("+",          ADD);            addKeyWord("-",          SUBTRACT);            addKeyWord("/",          DIVIDE);            addKeyWord("*",          MULTIPLY);            addKeyWord("log",        LOG);            addKeyWord("^",          POWER);            addKeyWord("pi",         PI);            addKeyWord("e",          E);            addKeyWord("sin",        SIN);            addKeyWord("cos",        COS);            addKeyWord("tan",        TAN);            addKeyWord("x",          X);            addKeyWord("y",          Y);            addKeyWord("z",          Z);            addKeyWord("asin",       ASIN);            addKeyWord("acos",       ACOS);            addKeyWord("atan",       ATAN);            addKeyWord("rad",        RAD);            addKeyWord("sqrt",       SQRT);            addKeyWord("rand",       RANDOM);            addKeyWord("log10",      LOG10);            addKeyWord("exp",        EXP);            addKeyWord("rem",        REMAINDER);            addKeyWord("atan2",      ATAN2);            addKeyWord("j0",         J0);            addKeyWord("j1",         J1);            addKeyWord("jn",         JN);            addKeyWord("sinh",       SINH);            addKeyWord("cosh",       COSH);            addKeyWord("tanh",       TANH);            addKeyWord("asinh",      ASINH);            addKeyWord("acosh",      ACOSH);            addKeyWord("atanh",      ATANH);            addKeyWord("y0",         Y0);            addKeyWord("y1",         Y1);            addKeyWord("yn",         YN);            addKeyWord("fac",        FAC);            addKeyWord("gamma",      GAMMA);            addKeyWord("erf",        ERF);            addKeyWord("erfc",       ERFC);            addKeyWord("normal",     NORMAL);            addKeyWord("poissonc",   POISSONC);            addKeyWord("poisson",    POISSON);            addKeyWord("chisq",      CHISQ);            addKeyWord("chisqc",     CHISQC);            addKeyWord("igam",       IGAM);            addKeyWord("igamc",      IGAMC);            addKeyWord("k",          BOLTZMAN);            addKeyWord("ec",         ECHARGE);            addKeyWord("me",         EMASS);            addKeyWord("mp",         PMASS);            addKeyWord("gc",         GRAV);            addKeyWord("h",          PLANCK);            addKeyWord("c",          LIGHTSPEED);            addKeyWord("sigma",      STEFANBOLTZ);            addKeyWord("na",         AVOGADRO);            addKeyWord("r",          GASCONSTANT);            addKeyWord("g",          GRAVACC);              }         /**   * Instantiate the class and define the string to parse.   * @param s The string to be parsed.   */       public ParseFunction(String s) {            this();            setString(s);       }       /*********************** Public Methods       *******************/  /**   * Parse the string.   * @param s The string to parse   * @return true if it was successful, false otherwise.   */       public boolean parse(String s) {            setString(s);            return parse();       }  /**   * Parse the previously set string   * @return true if it was successful, false otherwise.   */        public boolean parse() {             root = new Node();             if( parseString(root) != EOS) return false;             if(debug) {                System.out.println("Before Reordering:");                root.print(5);             }             reOrderNodes(root);             if(debug) {                System.out.println("After Reordering:");                root.print(5);             }             return true;        }  /**   * Return the solution of the function given the independent values   * @param x indpendent x value   * @param y indpendent y value   * @param z indpendent z value   * @return solution of the function   */        public double getResult(double x, double y, double z)                                                     throws Exception {        	        	this.x = x;        	this.y = y;        	this.z = z;        	return evaluate(root);        }  /**   * Return the solution of the function given the independent values   * @param x indpendent x value   * @param y indpendent y value   * @return solution of the function   */        public double getResult(double x, double y)                                                     throws Exception {        	        	this.x = x;        	this.y = y;        	return evaluate(root);        }  /**   * Return the solution of the function given the independent values   * @param x indpendent x value   * @return solution of the function   */        public double getResult(double x) throws Exception {        	        	this.x = x;        	return evaluate(root);        }  /**   * Return the solution of the function if it has no independent values   * or they have already been set using the set methods   * @return solution of the function   * @see ParseFunction.setX()   * @see ParseFunction.setY()   * @see ParseFunction.setZ()   */        public double getResult() throws Exception {        	        	return evaluate(root);        }  /**   * Return an array of solutions given an array of x values   * @param n number of values to process in the input array   * @param x Array containing the x values.   * @return Array containing the solutions.   * @exception Exception   *             Generic exception if the array index n<=0, or x is null.   */        public double[] getResults(int n, double x[]) throws Exception {             if(n <= 0) throw new Exception("Array index error");

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本大胆欧美人术艺术动态| 成人精品视频.| 国产精品1区2区3区在线观看| 国产成人精品网址| 这里只有精品视频在线观看| 中文字幕国产精品一区二区| 人人超碰91尤物精品国产| 色综合咪咪久久| 亚洲国产精品传媒在线观看| 另类人妖一区二区av| 91黄色免费看| 亚洲日本青草视频在线怡红院| 加勒比av一区二区| 91精品久久久久久久91蜜桃| 亚洲一区二区在线观看视频| 97aⅴ精品视频一二三区| 久久精品在线免费观看| 久久9热精品视频| 在线影院国内精品| 最新成人av在线| av亚洲精华国产精华精华| 久久久久久免费| 国产伦精品一区二区三区免费 | 国产精选一区二区三区| 欧美一区二区三区免费在线看 | 欧美久久久影院| 亚洲图片有声小说| 在线精品视频一区二区| 亚洲欧美一区二区三区孕妇| 91免费版pro下载短视频| 国产精品沙发午睡系列990531| 国产精品一级在线| 日本一区免费视频| 不卡欧美aaaaa| 亚洲欧美偷拍卡通变态| 色综合色综合色综合 | 久久91精品久久久久久秒播| 日韩一级视频免费观看在线| 麻豆国产精品官网| 久久久久久久久久久电影| 激情综合色综合久久| 久久综合九色综合欧美98| 国产精品99久久久久久有的能看| 久久久99精品免费观看不卡| 成人不卡免费av| 亚洲精品日韩综合观看成人91| 欧美在线视频你懂得| 日韩精品国产欧美| 久久亚区不卡日本| 成人av第一页| 同产精品九九九| 2019国产精品| 不卡一区在线观看| 亚洲成人精品一区| 久久一二三国产| 成人在线综合网站| 一区二区激情视频| 精品三级在线看| 99久久久久久| 美脚の诱脚舐め脚责91| 国产欧美日韩精品在线| 91久久一区二区| 日本不卡视频一二三区| 日本一区二区不卡视频| 欧美日韩综合在线免费观看| 精品一区二区三区在线观看国产| ㊣最新国产の精品bt伙计久久| 欧美日韩国产综合一区二区三区| 极品少妇xxxx精品少妇偷拍| 亚洲欧美日韩人成在线播放| 欧美电视剧免费观看| 99精品国产视频| 极品少妇xxxx精品少妇| 亚洲午夜激情av| 国产精品乱码久久久久久| 欧美丰满少妇xxxxx高潮对白| 成人av网站在线观看免费| 美女脱光内衣内裤视频久久网站| 国产精品区一区二区三区| 日韩精品专区在线影院重磅| 在线免费观看日本欧美| 国产91高潮流白浆在线麻豆| 美女尤物国产一区| 亚洲综合小说图片| 国产精品欧美一区二区三区| 日韩一级完整毛片| 欧美精品在线观看播放| 91丨porny丨最新| 国产福利一区二区三区视频| 日本va欧美va瓶| 亚洲伊人色欲综合网| 亚洲欧洲一区二区在线播放| 久久这里只有精品视频网| 91精品国产91久久久久久最新毛片| 91在线丨porny丨国产| 国产999精品久久久久久| 精品一区二区三区在线视频| 久久国产精品第一页| 亚洲综合男人的天堂| 亚洲欧洲成人精品av97| 中文字幕的久久| 久久精品这里都是精品| 久久天堂av综合合色蜜桃网| 日韩你懂的在线播放| 欧美一区二区性放荡片| 欧美影院一区二区三区| 色哟哟精品一区| 色综合久久六月婷婷中文字幕| 成人18视频在线播放| 成人免费av在线| 国产盗摄一区二区| 夫妻av一区二区| 成人午夜电影小说| av一区二区不卡| 色久综合一二码| 欧美性色综合网| 欧美喷潮久久久xxxxx| 欧美性受xxxx黑人xyx性爽| 欧美性大战久久| 欧美一激情一区二区三区| 欧美一二三四在线| 久久久国产精品午夜一区ai换脸| 久久久久国产精品人| 亚洲国产激情av| 国产精品久久久久9999吃药| 亚洲区小说区图片区qvod| 一区二区在线观看视频| 亚洲va欧美va人人爽| 另类综合日韩欧美亚洲| 国产一本一道久久香蕉| 岛国精品在线播放| 日本乱人伦aⅴ精品| 欧美妇女性影城| 久久综合九色综合欧美就去吻| 国产日本欧洲亚洲| 亚洲精品久久嫩草网站秘色| 亚洲成国产人片在线观看| 麻豆传媒一区二区三区| 从欧美一区二区三区| 在线观看日韩av先锋影音电影院| 欧美另类变人与禽xxxxx| 久久久无码精品亚洲日韩按摩| 国产精品久久毛片| 五月开心婷婷久久| 国产成人av资源| 欧美三区免费完整视频在线观看| 精品毛片乱码1区2区3区| 中文字幕一区在线观看| 日本欧美肥老太交大片| 成人动漫视频在线| 欧美一区二区三区爱爱| 欧美韩国日本不卡| 丝袜国产日韩另类美女| 成人精品在线视频观看| 欧美高清一级片在线| 欧美国产一区视频在线观看| 日韩av中文在线观看| 成人国产电影网| 欧美一区二区三区免费在线看| 亚洲国产精品精华液2区45| 国产日韩欧美精品综合| 天天操天天色综合| 99久久免费精品| 欧美精品一区二区在线播放| 亚洲一区在线观看视频| 风间由美一区二区av101| 91精品国产麻豆国产自产在线 | 欧美在线制服丝袜| 国产清纯白嫩初高生在线观看91 | 免费不卡在线视频| 在线一区二区三区四区五区| 国产婷婷色一区二区三区| 丝袜亚洲另类欧美| 色哟哟一区二区| 国产精品传媒在线| 国产精品一区在线| 日韩三级在线观看| 视频一区免费在线观看| 日本久久精品电影| 成人欧美一区二区三区黑人麻豆 | 欧美国产精品一区二区| 久久精品国产精品亚洲精品| 欧美日韩高清一区| 亚洲线精品一区二区三区| 成人国产精品免费观看视频| 精品国产sm最大网站| 蜜桃av一区二区| 日韩一二三四区| 视频在线在亚洲| 欧美电影一区二区| 丝袜诱惑制服诱惑色一区在线观看 | av电影天堂一区二区在线观看| 久久亚洲精精品中文字幕早川悠里| 日本成人在线视频网站| 欧美一区二区三区免费视频 | 欧美极品美女视频| 国产一区二区在线观看视频| 精品欧美乱码久久久久久| 日本不卡一区二区| 日韩一卡二卡三卡国产欧美|