代码搜索:Math

找到约 10,000 项符合「Math」的源代码

代码结果 10,000
www.eeworm.com/read/113242/15466766

c showfabs.c

#include #include void main (void) { float value; for (value = -1.0; value
www.eeworm.com/read/113242/15466767

c show_cos.c

#include #include void main (void) { printf("cosine of pi/2 is %6.4f\n", cos(3.14159/2.0)); printf("cosine of pi is %6.4f\n", cos(3.14159)); }
www.eeworm.com/read/112799/15476516

c sine.c

/* sine.c - sine wavetable of length D */ #include double sine(D, i) int D, i; { double pi = 4 * atan(1.0); return sin(2 * pi * i / D); }
www.eeworm.com/read/112620/15481582

java bigbomb.java

import java.awt.*; public class bigBomb{ private int xPos, yPos; private int timeofbomb = 6; public bigBomb(int a, int b){ xPos = a; yPos = b; } public void draw(Graphics g){
www.eeworm.com/read/112620/15481589

java smallbomb.java

import java.awt.*; public class smallBomb{ private int xPos, yPos; private int timeofbomb = 3; public smallBomb(Point a){ xPos = a.x; yPos = a.y; } public void draw(Graphics g){
www.eeworm.com/read/112279/15490372

java randvals.java

//: c08:RandVals.java // From 'Thinking in Java, 2nd ed.' by Bruce Eckel // www.BruceEckel.com. See copyright notice in CopyRight.txt. // Initializing interface fields with // non-constant initia
www.eeworm.com/read/112037/15495023

java particletree.java

import java.awt.*; import java.applet.*; //定义ParticleTree类 public class ParticleTree extends java.applet.Applet implements Runnable { fPointTree root; //定义类fPointTree的对象root Image
www.eeworm.com/read/112037/15495032

java particle.java

//定义particle类 public class Particle { float velocityX, velocityY, x, y; public Particle() { } //initialize方法,负责初始化 public void initialize(int mx, int my) { velocityX = (float)((Math.ra
www.eeworm.com/read/112035/15495063

java graphapplet.java

import java.awt.Graphics; public class GraphApplet extends java.applet.Applet { double f(double x) { return (Math.cos(x/5) + Math.sin(x/7) + 2) * getSize().height / 4; } public void pai
www.eeworm.com/read/111824/15502295

c gaussian.c

#include #define pi 3.1415 double gaussian(double x) { double resu; resu=-0.5*x*x; resu=exp(resu); resu=resu/sq