代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
pi.dsw
Microsoft Developer Studio Workspace File, Format Version 6.00
# 警告: 不能编辑或删除该工作区文件!
###############################################################################
Project: "pi"=".\pi.dsp" - Pa
pi.plg
Build Log
--------------------Configuration: pi - Win32 Debug--------------------
Command Lines
Creating temporary file "C:\DOCUME~1\colo\LOCAL
pi.txt
3.
1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
8214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493
pi.cpp
#include
using namespace::std;
const int LOOP = 100000000;
int main()
{
int R=RAND_MAX; //RAND_MAX = 0x7fff;
int x;
int y;
int count=0;
for(int i=0; i
pi.rc
;***********************************************************************************************************
;计算原理:
;PI=PI=16x(1/5-1/(5^3/3)+1/(5^5/5)-1/(5^7/7)+...)-4x(1/239-1/(239^3/3)+1/(239^5/5)
pi.h
/* +++Date last modified: 05-Jul-1997 */
#ifndef PI__H
#define PI__H
#ifndef PI
#define PI (4*atan(1))
#endif
#define deg2rad(d) ((d)*PI/180)
#define rad2deg(r) ((r)*180/PI)
#
pi.c
/* +++Date last modified: 05-Jul-1997 */
/*
** PI.C - Computes Pi to an arbitrary number of digits
**
** Uses far arrays when/where required so may be compiled in any memory model
**
** The
pi.m
%
% Function to calculate the objective function where
% input k = temporary vector
% b = unstable vector
function [ value ] = PI(k, b)
Q=eye(length(k));
a=Levinson(k);
value=0.5*(a(2:lengt