|
From: Alfred P. R. <al...@ya...> - 2005-03-23 18:38:26
|
Hi Rohit, I'd like a link to that manual! I've got a 10-23-2004 download of the GCC manual in HTML format and it doesn't address complex data structures at all. My solution has always been to use a structure, however grepping into the Dev-Cpp includes for complex returns <complex> as the header file. It appears to contain all of the functions such as pow, tanh, etc. It's in the sub-folder include/c++/3.3.1 (BTW: I really hate IE's propensity to interpret \ as an escape character start in my e-mails!) If you still want to code your own complex routines, see http://mathworld.wolfram.com/ComplexNumber.html formulas 12 through 14. Then follow the links at the bottom of that page to other subjects related to complex computations. Another important resource is Chemical Research Corporation's Standard Mathematical Tables and Formulae ($24.03 at Amazon, used, which is a hell of a buy!) rohit bhute <rv...@gm...> wrote: I read up the complex data type in the gcc manual. I need a quick crash course on complex data type - 1. How to declare them 2. assign values using the format z=(x,y) where x and y may be any expressions. Or if there are any other ways to assign values to complex data types, please let me know. 3. Operations on them - sum, product, conjugation, polar<->rectangular conversion and so on. I would appreciate being pointed out to a resource on complex data types. The gcc manual fell short. -- Rohit V. Bhute http://rvbhute.freelinuxhost.com/ <snip> Alfred P. Reaud |