Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - PI
Search - PI - List
DL : 0
一个用JAVA写的求PI的简易程序,精度还可以,有界面,动态-a written using Java for the PI to the simplified procedure, the accuracy can also, interface, dynamic
Date : 2008-10-13 Size : 1.32kb User : huayueer

DL : 0
随机算法求PI的值 包括图形显示等等抽象了所有的类-randomized algorithm for PI values include graphics, and so on all the abstract category
Date : 2008-10-13 Size : 4.73kb User : zm

通过JAVA设计 GUI 界面的计算器程序,用户可以通过鼠标依次输入参加计算的数值,进行加、减、乘、除等混合运算,这些完成标准计算器的基础操作。当选择科学计算器后,可以实现sin 、 cos 、 tan 、 ln、x^y、x^2、x^3、pi、n!、mod和十六进制除这个以外还可以删除输入,清空结果,求1除X,X百分比,十进制是,八进制,二进制的相互转换。
Date : 2008-10-13 Size : 7.37kb User : gggfhv

进行RMI调用的实际例子, 远程调用计算PI值的实例, 稍加改造可以实现实际用途
Date : 2008-10-13 Size : 1.31kb User : cbaa

两个小程序求pi和排序-two small programs for pi and sequencing
Date : 2008-10-13 Size : 116.27kb User : jamy

DL : 0
(1) 实现一个Point类,该类包含表示坐标的两个int型变量x、y,构造方法Point()和Point(int xx, int yy),返回x值和y值的int getX()和int getY()方法,计算两点间距离的double distance(Point)方法。其中计算平方根用Math.sqrt()方法。 (2) 实现一个Circle类,该类包含表示圆心的Point型变量center,表示半径的int radius变量,以及构造方法Circle()、Circle(int xx,int yy,int r)、Circle(Point c,int r),返回周长和面积的int perimeter()、double area()方法,返回两个圆是否为同一个圆(返回0)、同心圆(返回1)、相交的圆(返回2)、分离的圆(返回3)、包含的圆(返回4)等关系的int relation(Circle c)等方法。PI值可以用Math.PI常量。 (3) 实现测试上述两个类的ClassTest类。该类在main方法中分别创建若干个Point对象和Circle对象,并调用相关方法,输出方法的返回值,验证其正确性。 (4) 将Point类、Circle类和主类的包名分别调整为p1、p2、p3,并重新运行,验证是否运行正确。
Date : 2008-10-13 Size : 5.16kb User : fangfei

两个小程序求pi和排序-two small programs for pi and sequencing
Date : 2026-01-01 Size : 116kb User : jamy

DL : 0
一个用JAVA写的求PI的简易程序,精度还可以,有界面,动态-a written using Java for the PI to the simplified procedure, the accuracy can also, interface, dynamic
Date : 2026-01-01 Size : 1kb User :

DL : 0
随机算法求PI的值 包括图形显示等等抽象了所有的类-randomized algorithm for PI values include graphics, and so on all the abstract category
Date : 2026-01-01 Size : 4kb User : zm

通过JAVA设计 GUI 界面的计算器程序,用户可以通过鼠标依次输入参加计算的数值,进行加、减、乘、除等混合运算,这些完成标准计算器的基础操作。当选择科学计算器后,可以实现sin 、 cos 、 tan 、 ln、x^y、x^2、x^3、pi、n!、mod和十六进制除这个以外还可以删除输入,清空结果,求1除X,X百分比,十进制是,八进制,二进制的相互转换。-GUI interface design through JAVA calculator program, the user can take part in the importation of the mouse followed by the numerical calculation for add, subtract, multiply, divide, such as mixed computing, which the basis of the standard calculator operation. When choosing a scientific calculator, you can realize sin, cos, tan, ln, x ^ y, x ^ 2, x ^ 3, pi, n!, Mod and hexadecimal In addition to the outside can also delete the import, empty the results, and one in addition to X, X percentage of the metric system is octal, binary mutual conversion.
Date : 2026-01-01 Size : 7kb User : gggfhv

进行RMI调用的实际例子, 远程调用计算PI值的实例, 稍加改造可以实现实际用途-To carry out practical examples of RMI call, remote call examples of calculation of PI values, the transformation can be achieved little practical use
Date : 2026-01-01 Size : 1kb User : cbaa

DL : 0
(1) 实现一个Point类,该类包含表示坐标的两个int型变量x、y,构造方法Point()和Point(int xx, int yy),返回x值和y值的int getX()和int getY()方法,计算两点间距离的double distance(Point)方法。其中计算平方根用Math.sqrt()方法。 (2) 实现一个Circle类,该类包含表示圆心的Point型变量center,表示半径的int radius变量,以及构造方法Circle()、Circle(int xx,int yy,int r)、Circle(Point c,int r),返回周长和面积的int perimeter()、double area()方法,返回两个圆是否为同一个圆(返回0)、同心圆(返回1)、相交的圆(返回2)、分离的圆(返回3)、包含的圆(返回4)等关系的int relation(Circle c)等方法。PI值可以用Math.PI常量。 (3) 实现测试上述两个类的ClassTest类。该类在main方法中分别创建若干个Point对象和Circle对象,并调用相关方法,输出方法的返回值,验证其正确性。 (4) 将Point类、Circle类和主类的包名分别调整为p1、p2、p3,并重新运行,验证是否运行正确。
Date : 2026-01-01 Size : 5kb User : fangfei

Java实现Ping功能(采用JNI技术),有源码和例子-Java realize Ping function (using JNI technology), there are source code and examples
Date : 2026-01-01 Size : 214kb User : chh096

DL : 0
无约束条件 max f(x1,x2)=21.5+x1*sin(4*pi*x1)+x2sin(20*pi*x2) -3.0<x1<12.1 4.1<x2<5.8 1%的变异 25%交叉 旋转转轮选择 -Unconstrained conditions max f (x1, x2) = 21.5+ X1* sin (4* pi* x1)+ X2sin (20* pi* x2)-3.0 <x1 <12.14.1 <x2 <5.81 of variation 25 cross-rotating wheel selection
Date : 2026-01-01 Size : 6kb User : sp

DL : 0
1. 在No.1图形窗口中绘制 y=sin(x)在[0,2*pi]内的曲线。要求曲线的颜色为绿色,线型为 点划线,用*标示坐标点,在x轴的附近用 黑体 标注 ‘x轴’字样,在图形的上方加上标题 ‘正弦函数’,严格控制x,y轴分度相等,并开启网格。 2. 在No.2图形窗口中创建四个子窗口,在第一、二子窗口中用不同的方法同时绘制 y=x^2,y=-x^2,y=x^2*sin(x) 在[0,2*pi]内的曲线,并要给出标注 在第三个子窗口中绘制 三维曲线 3. 把No.3图形窗口分成五个子窗口,分别用plot3 mesh meshc meshz surf 来绘制 z=x*exp(-x^2-y^2) 在 -5=<x,y<=5 内的空间曲面图形,说明他们的区别,其中要求在用surf绘制的窗口内加入位置为[1,0.5,2]的光源,加入颜色标尺,采用spring色系 -1. 在No.1图形窗口中绘制 y=sin(x)在[0,2*pi]内的曲线。要求曲线的颜色为绿色,线型为 点划线,用*标示坐标点,在x轴的附近用 黑体 标注 ‘x轴’字样,在图形的上方加上标题 ‘正弦函数’,严格控制x,y轴分度相等,并开启网格。 2. 在No.2图形窗口中创建四个子窗口,在第一、二子窗口中用不同的方法同时绘制 y=x^2,y=-x^2,y=x^2*sin(x) 在[0,2*pi]内的曲线,并要给出标注 在第三个子窗口中绘制 三维曲线 3. 把No.3图形窗口分成五个子窗口,分别用plot3 mesh meshc meshz surf 来绘制 z=x*exp(-x^2-y^2) 在-5=<x,y<=5 内的空间曲面图形,说明他们的区别,其中要求在用surf绘制的窗口内加入位置为[1,0.5,2]的光源,加入颜色标尺,采用spring色系
Date : 2026-01-01 Size : 1kb User : 李子木

Thinking in Java相关教材的实验题及答案,内含1多种算法计算PI,2多态与抽象类,3学生成绩管理系统,4温室管理系统等源码-Thinking in Java-related materials and answer the test questions, including more than one kinds of algorithm for calculating the PI, 2 polymorphism and abstract class, 3 student achievement management system, 4-source, such as greenhouse management system
Date : 2026-01-01 Size : 42kb User : Kiara

Distributed Logical clocks. Code will spawn n (distributed) processes Pi, 0 ≤ i < n, each one looping forever. Each loop iteration is a loop interval and its duration can be set to 1 second. In every loop interval Pi does the following: − If there is a message m pending to be received it receives m − Otherwise o It does an internal action with probability 0.80 o It sends a message to process Pj, 0 ≤ j < n and j ≠ i with probability 0.20. The message gets delayed at its source for a random amount of time < 2 sec to simulate network delay. − It calculates and prints its logical clock value along with the action it takes. Note: several messages may arrive in a process within a loop interval. In such a case they will be queued and delivered to the process in subsequent loop intervals.-Distributed Logical clocks. Code will spawn n (distributed) processes Pi, 0 ≤ i < n, each one looping forever. Each loop iteration is a loop interval and its duration can be set to 1 second. In every loop interval Pi does the following: − If there is a message m pending to be received it receives m − Otherwise o It does an internal action with probability 0.80 o It sends a message to process Pj, 0 ≤ j < n and j ≠ i with probability 0.20. The message gets delayed at its source for a random amount of time < 2 sec to simulate network delay. − It calculates and prints its logical clock value along with the action it takes. Note: several messages may arrive in a process within a loop interval. In such a case they will be queued and delivered to the process in subsequent loop intervals.
Date : 2026-01-01 Size : 5kb User : Araz

DL : 0
利用JNI技术实现java对window API的调用进而得到windows操作系统的所有进程信息。-Java using JNI technology and then on the window API calls to get all the windows operating system process information.
Date : 2026-01-01 Size : 2.52mb User : 大麦哥

计算圆周率,打印出第一个大于 3.1415小于 3.1416的值-Calculation of pi, print out the first one is greater than the value of 3.1415 is less than 3.1416
Date : 2026-01-01 Size : 3kb User : 常文静

PI实时数据库调用driver ,可通过java实现对PI实时数据库的读数。(PI real-time database calls driver, which can read PI real-time database through Java.)
Date : 2026-01-01 Size : 190kb User : 一片云之雨云
« 12 3 »
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.