代码搜索结果
找到约 36,166 项符合
Raspberry Pi 的代码
pi.cpp
/* Boost test/pi.cpp
* test if the pi constant is correctly defined
*
* Copyright 2002-2003 Guillaume Melquiond, Sylvain Pion
*
* Distributed under the Boost Software License, Version 1.0.
harmony_wavelet.m
clear all;
t=-10:0.01:10;
w=(exp(i*4*pi*t)-exp(i*2*pi*t))./(2*pi*t);
subplot(2,1,1);
plot(t,imag(w))
subplot(2,1,2);
plot(t,real(w))
shili2.m
clc;
clear;
x=sin(2*pi*0.01*(1:128));
z=harw(x,128);
plot(z.*conj(z));
sinc.m
function y=sinc(x)
%SINC Sin(pi*x)/(pi*x) function.
% SINC(X) returns a matrix whose elements are the sinc of the elements
% of X, i.e.
% y = sin(pi*x)/(pi*x) if x ~= 0
%
lvalue4.c
// { dg-do run }
int main() {
int i = 2;
int *pi = &(++i);
return i != 3;
}
eb102.c
// { dg-do run }
// Error: intenral compiler error on 1998/05/28 snapshot.
#include
#include
void evilRises (void **ptr)
{
int *pi;
pi = new int;
*pi = 0;
*pt
oldstyle_1.f90
integer i, j /1/, g/2/, h ! { dg-warning "" "" }
integer k, l(3) /2*2,1/ ! { dg-warning "" "" }
real pi /3.1416/, e ! { dg-warning "" "" }
if (j /= 1) call abort ()
950929-1.c
int f (char *p) { }
main ()
{
char c;
char c2;
int i = 0;
char *pc = &c;
char *pc2 = &c2;
int *pi = &i;
*pc2 = 1;
*pi = 1;
*pc2 &= *pi;
f (pc2);
*pc2 = 1;
*pc2 &= *pi;
if (
920625-1.c
#include
typedef struct{double x,y;}point;
point pts[]={{1.0,2.0},{3.0,4.0},{5.0,6.0},{7.0,8.0}};
static int va1(int nargs,...)
{
va_list args;
int i;
point pi;
va_start(args,nargs
exp_out.c
#include
void main(void)
{
float pi = 3.14159;
float radius = 2.0031;
printf("The circle's area is %e\n", 2 * pi * radius);
printf("The circle's area is %E\n", 2 * pi