Pi.H C/C++ script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: pi.h
  • Last update:
  • Platform: Windows / Linux
  • Language: C/C++
  • Price:Freeware
  • Company: Bob Stout (View more)

Pi.H script description:



Pi.H is a C/C++ script for Snippets scripts design by Bob Stout. It runs on following operating system: Windows / Linux.
Pi.H - Computes Pi to an arbitrary number of digits

Publisher review:
Pi.H - Computes Pi to an arbitrary number of digits Uses far arrays when/where required so may be compiled in any memory modelThe formula that most use (including the one in the Snippets) is the classic Machin formula, with the Gregory series. pi=16arctan(1/5)-4arctan(1/239)And use the traditional Gregory arctangent series to calculate the arctangents. That's the:arctan(x)=x-(x^3)/3 (x^5)/5-(x^7)/7..... With 1/5 and 1/239, it would be:arctan(x)=1/5-1/(3*5^3) 1/(5*5^5)-1/(7*5^7)...arctan(x)=1/239-1/(3*239^3) 1/(5*239^5)-1/(7*239^7)....Doing the multi-precision isn't too hard, since we don't really need to have a general purpose math package. We can hardwire it all. Due to the % operator, ms[i] < (temp * (239**2)) so temp < 3759 and i < 1879, it fails at the 1879th term which translates to 1879 * log10(239**2) == 8941th decimal.In practice we get a few more digits, (2 -> 8943th)
Operating system:
Windows / Linux

Related script downloads:

Latest script and internet news

Samsung launched the Premium Music Hub

Samsung launched the Premium Music Hub

Samsung finally gives consumers multiple audio streaming countries promised a while. Premium Music Hub allows users access to over 19 million songs, along with other useful functions.

Posted on: 30 May 2012 13:02 by A. Brown

This could be the first photos of iPhone 5

This could be the first photos of iPhone 5

IPhone\'s case came online in a few pictures that confirm rumors of a larger screen. This could be the first photos of the next iPhone, but nothing is really safe to Apple announcement.

Posted on: 30 May 2012 12:58 by A. Brown

IE 10 for Windows 8, comes with Adobe Flash support

IE 10 for Windows 8, comes with Adobe Flash support

After criticism received at Metro version of Internet Explorer 10 , initially offered no support for Adobe Flash technology, Microsoft has taken measures to correct this problem by working directly with Adobe to integrate the necessary components into the

Posted on: 25 May 2012 10:36 by A. Brown

Windows 8: boot to fast to furious

Windows 8: boot to fast to furious

Last year began to circulate on the Internet videos where Windows 8 systems boot in 7 seconds. Unfortunately, from this performance derives some problems.

Posted on: 25 May 2012 07:28 by A. Brown

SPREAD THE WORD

User Rating

Pi.H
Rating: 0.0 out of 5
Based on 0 ratings. 0 user reviews.

  • Currently 0.00 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5