============================================================================
Architectures: Classic AMIGAs, WinUAE, FS-UAE, Linux, APPLE, (Windows WSL?)
---------------------------------------------------------------------------
MINIMUM Requirements Are:-
--------------------------
Amiga environment:-
Stock AMIGA A1200(HD), 4MB FastRAM, ( HDD ).
WinUAE 3.4.0, minimum.
FS-UAE 2.8.1, minimum.
Standard AMIGA OS 3.0.x install or better.
Full ADE *NIX environment install, ( full install on AMINET ):
https://aminet.net/package/dev/gcc/ADE
The bc calculator utilitiy/command. NOTE: This is a '.tar' file:
https://main.aminet.net/package/dev/gg/bc-bin
Library file ixnet.library version 48.0
Library file ixemul.library version 48.0
Both files are here if you have NOT got them:
https://aminet.net/package/util/libs/ixemul-48.0
( It might even work under CygWin but it is untested so you use
it at your own risk, see 'The Legal Stuff:-' below. )
Other systems-
Works on GNU/Linux Mint 22.1 terminals.
Also Works on Apple OSX 10.15.7 terminal.
I have no idea whether it works on WSL as I am really not interested,
therefore you try it out at your own risk!
Also I have NO access to any APPLE 'M' series HW, so I have no idea
whether this works or not inside their current terminals; there is
no reason why not however.
----------------------------------------------------------------------------
History:-
---------
01-01-2026.
-----------
Version 1.00.00. Probably the one and only upload for this archive.
----------------------------------------------------------------------------
General:-
---------
( Apologies for any typos, etc... )
DFT_POSIX_ALL_BC
----------------
'bc' version for rhe AMIGA -> 1.03 circa 1994.
'bc' version for GNU/Linux Mint Cinnamon 22.1 -> 1.07.1.
As is usual for me I try to include as many platforms as possible without
any modifications, but, making the AMIGA the priority, and fun it was too!
NOTE:- On a stock AMIGA A1200(HD) this is slow, so be patient!
( Read the code for more information... )
This is another exercise in futility, a code snippet/recipe that generates
a arbitrary data length Discrete Fourier Transform AND its Inverse using
fully POSIX ONLY 'bc'. This DEMO is Radix 2 but it does not have to be!
In the archive is the code, a text file with the results, and this readme.
Also a bonus drawer containing GNU/Linux Mint pictures of the results, and
a GNU compliant 5 data point version to show how much simpler it is to do.
Another text file showing the main differences between the GNU version and
the POSIX version of 'bc', there are others not mentioned in the file.
POSIX mode 'bc' is much more limited and difficult than 'bc' with all of
the GNU and modern extensions.
Doing it as a script in GNU extended mode was easy but I opted for this to
see how difficult it would be.
Because the default AmigaShell cannot be scrolled back to see any results
I redirected said results as a text file to view via the 'more' utility.
<CR> is the ENTER key:
Your_ADE_Prompt> bc -ls DFT_POSIX_ALL.bc > DFT_POSIX_ALL_BC.txt<CR>
Read the code for more information...
It is issued under AMINET, and, the Creative Commons CC0 Licence.
That is: Public Domain.
( Dare I try and do it in pure POSIX dc, reverse Polish notation? 8^O )
Enjoy...
Bazza...
----------------------------------------------------------------------------
IMPORTANT:-
-----------
The Legal Stuff:-
-----------------
The authors are 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 WinUAE, FS-UAE and Classic AMIGA test conditions were/are running
standard OS 3.0.x and using standard ~topaz 8~ fonts throughout. The
minimum hardware 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.
----------------------------------------------------------------------------
A very useful HardWare related site, (C) Anthony Hoffman, for
modifications, schematics, repairs and the like is:-
http://amiga.serveftp.net/
============================================================================
|