代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
ex_2_3_2.java
/*
* 文件名 ex_2_3_2.java
* 说 明:用双精度浮点数计算圆的面积
*/
class ex_2_3_2{
public static void main(String args[]) {
double pi,r,a;
r = 10.8; // 圆的半径
pi = 3.1416; // 圆周率的近似值
a = pi * r * r; //
finalvariable.java
//FinalVariable.java
class FinalVariable
{
//常量
final float PI = 3.14f;
//成员变量
float fRadius;
//成员方法
public float getArea()
{
return PI*fRadius*fRadius;
}
//构造方法
xmoment.c
/* Driver for routine moment */
#include
#include
#include "nr.h"
#include "nrutil.h"
#define PI 3.14159265
#define NPTS 5000
#define NBIN 100
#define NPPNB (NPTS+NBIN)
xmoment.c
/* Driver for routine moment */
#include
#include
#define NRANSI
#include "nr.h"
#include "nrutil.h"
#define PI 3.14159265
#define NPTS 5000
#define NBIN 100
#define NP
i_init.c
/************************************************************************
* *
* Copyright (c) 1987,1988 by *
* Digital Equipment Corporation, Maynard, MA *
* Bull, Franc
license
Within this directory, each of the file listed below is licensed under
the terms given in the file LICENSE-MPL, also in this directory.
pi1k.txt
pi2k.txt
pi5k.txt
creatcolorimageli.m
function [ColorImage] = CreatColorImageli(Row1,Row2,Periods,RH,GH,BH,a1,a2,a3)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%输入要生成图象的行与列的大小,然后输出一幅RGB上都为正弦条纹的彩色图象
%07年9月29日 qfw
batewosidaitong.m
clear%清除内存
f1=300;f2=500;fs1=100;fs2=600;%实际频率
fs=2000;%采样频率
t=1/fs;%采样时钟
wp1=2*f1*pi/fs;%数字滤波器的通带带下限角频率
wp2=2*pi*f2/fs;%数字滤波器的通带上限角频率
ap=3; %带边频率的衰减
ws1=2*pi*fs1/fs;%数字滤波器的下阻带角频率
ws2=2*pi*f
phispan.m
function T=phispan(x,phitype,dilation,uo,a,bord1,bord2,Family,par);
% USAGE T=phispan(x,phitype,dilation,uo,a,bord1,bord2)
%
% This function returns a matrix Tij that contains elements
% \phi_
6-6.cpp
#include
#include
void main()
{
int s;
float n,t,pi;
t=1;pi=0;n=1.0;s=1;
while(fabs(t)>1e-6)
{pi=pi+t;
n=n+2;
s=-s;
t=s/n;
}
pi=pi*4;
printf("pi=%10.6f\n",pi);