Short: Calculate PI in an AMIGA shell script. Author: wisecracker.bazza@gmail.com (Barry Walker, G0LCU) Uploader: LAG (Lincolnshire Amiga Group) Type: util/shell Version: 1.00.00 Architecture: generic ============================================================================ Architectures: Classic AMIGAs FS-UAE, and probably WinUAE. ---------------------------------------------------------- MINIMUM Requirements Are:- -------------------------- Stock A1200(HD), no extras required except a/the Hard Disk Drive. Standard OS 3.0x install or better. FS-UAE 2.8.1, minimum. Standard OS 3.0x install or better. (FastRam, Accelerators, CPUs, etc, are an enormous bonus.) NOT tested on WinUAE but will probably work. NOT tested os machines with AMIGA OS2.xx but might just work. ---------------------------------------------------------------------------- History:- --------- 16-02-2021. ----------- Version 1.00.00. Probably the one and only upload for this archive. ---------------------------------------------------------------------------- General:- --------- (Apologies for any typos, etc...) Calculate Pi in a pure AMIGA shell script to 5 decimal places... Nilakantha's series... https://en.wikipedia.org/wiki/Pi#Infinite_series PI=3+(4/(2*3*4))-(4/(4*5*6))+(4/(6*7*8))-(4/(8*9*10))+... NOTE: It is possible to do 8 decimal places, but would take a LONG time. There are two versions: 1) A simple one that uses ( 22 / 7 ) as an approximation of Pi, a value of 3.1428571 to 7 decimal places, with a line by line description of what is going on to show the concepts. This is PiApproxExample.shell and can be launched from the IconX icon. 2) Pi.shell that uses the above series and is slow, but accurate. It prints each calculated stage until the 26th calculation loop is finished and then exits the loop to print out the value 3.14159. This too can be launched from the IconX icon. Just read the scripts for more information. From PiApproxExample.shell the principles are described on screen but the shell script shows how exactly how it was done. Exactly the same principles were applied to the Pi.shell script. This uses nothing more than a Stock, (Boxed), Amiga A1200(HD) and OS3.0x. Apart from the Hard Disk Drive, an option when boxed, there are NO dependancies software or hardware at all... Enjoy... Bazza... ---------------------------------------------------------------------------- Lincolnshire Amiga Group: https://lincsamiga.org.uk/wordpress/ ---------------------------------------------------------------------------- This archive is issued under the CC0 Licence. Public Domain. ---------------------------------------------------------------------------- IMPORTANT:- ----------- The Legal Stuff:- ----------------- This code is CC0 licenced, Public Domain. The author is not responsible for any damage to, or loss of, or failure of equipment or data caused in any way by the use of this code. There is NO warranty with the use of this software release and YOU USE IT AT YOUR OWN RISK. ---------------------------------------------------------------------------- Testing Evaluation:- -------------------- All FS-UAE and Classic AMIGA test conditions were/are running standard OS 3.0x and using standard ~topaz 8~ fonts throughout. The minimum hardware and software requirements ARE needed however. I have no idea what strange configuration setups will create so refer to the ~The Legal Stuff~ above. ---------------------------------------------------------------------------- Barry Walker, G0LCU. wisecracker.bazza@gmail.com ---------------------------------------------------------------------------- A very useful HardWare related site, (C) Anthony Hoffman, for modifications, schematics, repairs and the like is:- http://amiga.serveftp.net/ ============================================================================