代码搜索结果
找到约 36,166 项符合
Raspberry Pi 的代码
mksplash
#!/bin/sh
qembed splash.png > splash.h
perl -pi -e s/Embed/Embed2/ splash.h
perl -pi -e s/embed_vec/embed_vec2/ splash.h
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)
fredex.c
#include
#include
#include "nrutil.h"
#define PI 3.14159265
#define N 40
main() /* Program fredex */
{
void lubksb(),ludcmp(),quadmx();
float **a,d,*g,x;
int *indx,j;
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
l11.1a
#once #create message
.ND
.tr %$
.EQ
delim $$
.EN
.LP
We have introduced a fair number of "magic" words like
sub and sup and over and pi and sum. What happens if
you need to print an equation that co
pi.txt
This file describes how pi is computed by the program in 'pi.c' (see
the utils subdirectory).
Basically, we use Machin's formula, which is what everyone in the
world uses as a simple method for compu
pi.c
/*
* pi.c
*
* Compute pi to an arbitrary number of digits. Uses Machin's formula,
* like everyone else on the planet:
*
* pi = 16 * arctan(1/5) - 4 * arctan(1/239)
*
* This is pretty effe
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
9.m
b=1.031*[1,0,1];
a=[1,0,1.0621];
zplane(b,a);
[H,w]=freqz(b,a,250);
plot(w/pi,abs(H));