Slimelite BBS

CEB.lha

Back to math

Solves a 'Countdown' arithmetic problem

Size
136K (139,071 bytes)
Added
2026-11-20 13:06
Downloads
2
Long Description
DESCRIPTION: Solves a 'Countdown' arithmetic problem (in english) or 'Le Compte Est Bon' (in french). The target must be fitted arithmetically with the argument list and the operators +, -, *, / (and optionally exponant). See Help() function below for all options. PRINCIPLE: Solves [target] from [a1, a2, a3, a4, a5, a6]. Solves [67] from [15, 8, 50, 4, 5, 21]. One possible answer could be : 5 * 15 = 75 75 - 8 = [67] SYNTAX: CEB a1 a2 a3 a4 a5 a6 [target] [options] AMIGA PORT: You probably all knows the TV game on which you need solves arithmetically a number from six random numbers. This program, CEB, written by Gilles BANNAY, is a resolver for this game. It was last updated in 2012. It was originally compiled for GCC compiler (intel-linux), using : gcc -march=i686 -O2 -fomit-frame-pointer -oceb ceb.c I compiled it on Amiga with the SAS/C Compiler 6.59 (m68k-amiga), without any modification. sc ceb.c TO ceb_ANY LINK CPU=ANY MATH=STANDARD CHKABORT NOICONS STRIPDEBUG OPT OPTGO sc ceb.c TO ceb_020 LINK CPU=68020 MATH=STANDARD CHKABORT NOICONS STRIPDEBUG OPT OPTGO sc ceb.c TO ceb_040 LINK CPU=68040 MATH=STANDARD CHKABORT NOICONS STRIPDEBUG OPT OPTGO sc ceb.c TO ceb_060 LINK CPU=68060 MATH=STANDARD CHKABORT NOICONS STRIPDEBUG OPT OPTGO ENGLISH VERSION: Executable MD5 Size ceb_en_ANY 9ffe2fa2c27dcce0185886c42aacfc11 27936 bytes ceb_en_020 06fe97e8480260865708cc83a024af0d 27672 bytes ceb_en_040 df1758e1bd951956ba2bf9ec5ed8b021 27660 bytes ceb_en_060 b7547d83a0212cec3f4b1ed42ceff89e 27684 bytes FRENCH VERSION: Executable MD5 Size ceb_fr_ANY 05a78fd08cd74888af63fb5fff46e212 27980 bytes ceb_fr_020 bac3b367f5611dea794c7e1a3622353a 27716 bytes ceb_fr_040 6046a476413aaf6f55b0871b730ea656 27704 bytes ceb_fr_060 f82b87ec44f52838b8f39944a8b860a0 27728 bytes HISTORY: V 1.00 (GBY) 11-Mar-1998 Mod: creation V 1.01 (GBY) 02-Mai-1998 Add: Linux portage V 1.10 (GBY) 03-Mai-1998 Fix: display issue when lines<5 V 1.20 (GBY) 05-Mai-1998 Opt: rewrite EssaiOp() for speed Add: BorlandC 4.5 portage Add: verbose in multi-line format (-v option) V 1.30 (GBY) 01-Sep-2000 Opt: add some tests in EssaiOp() Opt: don't explore 2*2 after 2+2 V 1.31 (GBY) 01-Sep-2000 Add: excluding mode ('-x[P]' option) V 1.40 (GBY) 02-Sep-2000 Mod: rewrite code V 1.41 (GBY) 02-Sep-2000 Opt: using SWAP V 1.42 (GBY) 06-Sep-2000 Add: variable arguments number ('-a[N]' option) V 1.43 (GBY) 07-Sep-2000 Add: diagnostic mode ('-d' option) V 1.44 (GBY) 08-Sep-2000 Add: using mode ('-u[N]' option) Fix: special case for -u0 et -u1 Add: optimize mode ('-o' option) V 1.45 (GBY) 15-Sep-2000 Add: mapping mode for statistics V 1.50 (GBY) 23-Jan-2001 Mod: 16 bits compiler portage Mod: max arguments number = 64. V 1.51 (GBY) 23-May-2006 Add: operators selection (-s[+*-/] option) V 1.52 (GBY) 01-Mar-2007 Add: exponant operator selection (-s[+*-/e] option) V 1.53 (GBY) 16-Mar-2007 Add: verbose in one-line format (-v1 option) Add: test overflow. V 1.54 (GBY) 18-Mar-2007 Add: associativity V 1.60 (GBY) 19-Mar-2007 Fix: -s option (- without + or / without *) V 1.61 (GBY) 09-Avr-2011 Add: -g option global V 1.62 (GBY) 11-Avr-2011 Fix: bugfix end variable init V 1.63 (GBY) 30-Avr-2011 Add: -w option (with) V 1.64 (GBY) 01-May-2011 Mod: merge 1.62 & 1.63 version for performance Fix: Operation with 0^0=1 is allowed. V 1.65 (GBY) 14-Sep-2012 Add: -f option (fractionnal) V 1.66 (GBY) 29-Sep-2012 Opt: power_frac() uses nthroot() in place of exp & log V 1.67 (GBY) 22-Oct-2012 Opt: El