1. New version of the General Functions package
- Posted by rforno at tutopia.com Oct 04, 2002
- 340 views
This is a multi-part message in MIME format. ------=_NextPart_000_0025_01C26BD1.152246E0 boundary="----=_NextPart_001_0026_01C26BD1.152246E0" ------=_NextPart_001_0026_01C26BD1.152246E0 charset="iso-8859-1" Rob: I am attaching a new version of the General Functions package. The modifications include: some minor speed-ups and corrections, both to = the routines and the comments; the addition of examples to all routine = comments; a new format for the comments to be used by a program by Dan = Moyer that generates a HTML file; a large speed-up and name change for = the CountEquals (now CountEqual) and the addition of five more routines = to count elements greater, greater or equal, etc.; a change of name and = functionality to the routine AnyBase3 (now AnyBaseN); the addition of = four math routines: Xor, Xor_bits, Subtract and Divide (this last one = useful to avoid the zero-division problem); two more non-repeating number generation routines (Deal1 and = DealSorted1); and, most important, a group of string/sequence routines = (RemoveFirstElement, ReplaceFirstElement, RemoveFirstSlice, = ReplaceFirstSlice, RemoveAllElements, ReplaceAllElements, = RemoveAllSlices, ReplaceAllSlices, ReplaceAllSlicesX, PrepareAscii, and = TranslateString). I've found that the routines in the All group have = very good performance in most cases, including short or long = strings/sequences and few or many hits. Regards.=20 ------=_NextPart_001_0026_01C26BD1.152246E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D3>Rob:</FONT></DIV> <DIV><FONT face=3DArial>I am attaching a new version of the General = Functions=20 package.</FONT></DIV> <DIV><FONT face=3DArial>The modifications include: some minor speed-ups = and=20 corrections, both to the routines and the comments; the addition of = examples to=20 all routine comments; a new format for the comments to be used by a = program by=20 Dan Moyer that generates a HTML file; a large speed-up and name change = for the=20 CountEquals (now CountEqual) and the addition of five more routines to = count=20 elements greater, greater or equal, etc.; a change of name and = functionality to=20 the routine AnyBase3 (now AnyBaseN); the addition of four math routines: = Xor,=20 Xor_bits, Subtract and Divide (this last one useful to avoid the = zero-division=20 problem);</FONT></DIV> <DIV><FONT face=3DArial>two more non-repeating number generation = routines (Deal1=20 and DealSorted1); and, most important, a group of string/sequence = routines=20 (RemoveFirstElement, ReplaceFirstElement, RemoveFirstSlice, = ReplaceFirstSlice,=20 RemoveAllElements, ReplaceAllElements, RemoveAllSlices, = ReplaceAllSlices,=20 ReplaceAllSlicesX, PrepareAscii, and TranslateString). I've found that = the=20 routines in the All group have very good performance in most cases, = including short or long strings/sequences and few or many=20 hits.</FONT></DIV> ------=_NextPart_001_0026_01C26BD1.152246E0-- ------=_NextPart_000_0025_01C26BD1.152246E0 Content-Type: application/x-zip-compressed; name="genfunc.ZIP"