Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

ID: 13775, Complex arithmetic and transcendental functions

by Earl F. Glynn Email:

Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Turbo Pascal, Version 7.0  to 7.0 371 downloads
Copyright: Commercial use requires permission

Size: 42,718 bytes
Updated on Sat, 14 Aug 1999 00:00:00 GMT
Originally uploaded on Sat, 14 Aug 1999 00:00:00 GMT
SHA1 Hash: 420459FCB3D5C00C8620DA2228404004D989D4B6
MD5 Hash: 88FD51D83547294431FAD7070912CC29

    Explore the files in this upload

The ComplexOps UNIT provides complex arithmetic and transcendental functions in Turbo Pascal, including complex trig (sin, cos, tan, csc, sec, cot), hyperbolic (cosh, sinh, tanh, sech, csch, coth), Bessel (I0, J0) and certain special functions (Log Gamma and Gamma). Complex values can be represented in either rectangular or polar form with conversions taking place as necessary (or on request). A "CDemo" program is included that shows how many of the complex functions can be used. The output from CDemo is also included.

A good rewrite in Delphi is in order, especially since a Delphi function could return a Complex type -- only PROCECUREs were used in Turbo Pascal. Keeping the program looking more like the math is always very desirable.

Originally these functions were used to calculate a number of Julia- and Mandelbrot-like fractal images. The Turbo Pascal programs (FRACTALS/SHOW) to compute and display these fractal images are available on request. Someday I may convert this all to Delphi, too.

Some ideas in this UNIT were borrowed from "A Pascal Tool for Complex Numbers", Journal of Pascal, Ada, & Modula-2, May/June 1985, pp. 23-29.

Many complex formulas were taken from Chapter 4, "Handbook of Mathematical Functions" (Ninth Printing), Abramowitz and Stegun (editors), Dover, 1972.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03