代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
2571.txt
Problem Id:2571 User Id:fzk
Memory:36K Time:15MS
Language:C++ Result:Accepted
Source
#include"stdio.h"
#include"math.h"
#define pi 3.1415926535898
void change( double th,double fi,
computpi.java
// Exercise 3.9
public class ComputPI { //saved as "ComputPI.java"
public static void main (String[] args) {
int numTerms = 50000;
double sum = 0.0;
double PI;
//calcula
trigtabs.c
/* ***** BEGIN LICENSE BLOCK *****
* Version: RCSL 1.0/RPSL 1.0
*
* Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved.
*
* The contents of this file, and the files incl
trigtabs.c.bak
/* ***** BEGIN LICENSE BLOCK *****
* Version: RCSL 1.0/RPSL 1.0
*
* Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved.
*
* The contents of this file, and the files incl
ex10_5.m
t=0:pi/20:2*pi;
y1=sin(t);
y2=cos(t);
figh=figure('Position',[30,100,800,350]);
axes('GridLineStyle','-.','XLim',[0,2*pi],'YLim',[-1,1]);
line('XData',t,'YData',y1,'LineWidth',2);
line(t,y2);
g
ex10_4.m
clf; %清除图形窗口中的内容
x=linspace(0,2*pi,20);
y=sin(x);
axes('Position',[0.2,0.2,0.2,0.7],'GridLineStyle','-.');
plot(y,x);
grid on
axes('Position',[0.4,0.2,0.5,0.5]);
t=0:pi/1
ex10_3.m
x=linspace(0,2*pi,60);
y=sin(x);
hf=figure('Color',[0,1,0],'Position',[1,1,450,250],...
'Name','我的图形窗口','NumberTitle','off','MenuBar','none',...
'KeyPressFcn', 'plot(x,y);axis([0
ex5_6.m
x=linspace(0,2*pi,1000);
y1=0.2*exp(-0.5*x).*cos(4*pi*x);
y2=2*exp(-0.5*x).*cos(pi*x);
k=find(abs(y1-y2)
ex10_6.m
x=-pi:.1:pi;
y=sin(x);
y1=sin(x);
y2=cos(x);
h=line(x,y1,'LineStyle',':','Color','g');
line(x,y2,'LineStyle','--','Color','b');
xlabel('-\pi \leq \Theta \leq \pi')
ylabel('sin(\Theta)')
title(
ex6_15.m
N=128; % 采样点数
T=1; % 采样时间终点
t=linspace(0,T,N); % 给出N个采样时间ti(I=1:N)
x=12*sin(2*pi*10*t+pi/4)+5*cos(2*pi*40*t); % 求各采样点样本值x
dt