代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
pi.lsp
;;;highflybird 2008.4.20 Haikou
(defun c:test (/ digit n Result t1 t2 time str)
(setq digit 10000) ;每次输出位数
(initget 7) ;非零非负非空
(setq n (getint "\n请输入精度
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.c
/*
** PI.C - Computes Pi to an arbitrary number of digits
**
** Uses far arrays so may be compiled in any memory model
*/
#include
#include
#if defined(__ZTC__)
#incl
pi.java
package com.prefect.pi;
import java.net.*;
import java.rmi.*;
import java.rmi.registry.*;
import java.rmi.server.*;
public class Pi extends UnicastRemoteObject
implements PiRemote {
pi.cpp
//这段程序可以输出π的前781位。
//它表现出来的数学功底是很惊人的,值得大家研究研究。
//当然,不提倡写这样费解的代码!
#include
using namespace std;
long a=10000,b=0,c=2800,d,e=0,f[2801],g;
void main()
{
for(;b-c;)
pi.dsp
# Microsoft Developer Studio Project File - Name="pi" - Package Owner=
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Consol
pi.dsw
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################