Numerical Recipes Forum  

Go Back   Numerical Recipes Forum > Obsolete Editions Forum > General Problems in Using NR

Reply
 
Thread Tools Display Modes
  #1  
Old 07-14-2005, 09:37 AM
shelf shelf is offline
Registered User
 
Join Date: Jul 2005
Location: Guelph, Ontario, Canada
Posts: 1
complex.h

I am trying to manipulate complex matrices.
Could anyone tell me how to print the complex numbers with use of complex.h to the terminal?
Reply With Quote
  #2  
Old 07-31-2005, 08:48 AM
Kevin Dolan Kevin Dolan is offline
Registered User
 
Join Date: Jun 2002
Location: Aachen, Germany
Posts: 48
Are you are talking about the C99 complex.h header, or the C++ non-standard complex.h header?

In C++ you can simply use the iostream classes to output complex numbers. In C, the stdio functions like printf may or may not be designed to work with the C99 complex types. If they are, then you need to find out what the control string is for complex numbers. If they are not, then you need to explicitely output the real and imaginary parts seperately.


Kevin
Reply With Quote
  #3  
Old 08-01-2005, 09:59 AM
siddharth siddharth is offline
Member
 
Join Date: Jun 2005
Posts: 14
f3tensor..

can anyone tell me the meaning (what it does)of f3tensor subtoutine which is present in nrutil.c
waiting for the reply.
thank you.
sid.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is On

Forum Jump


All times are GMT -5. The time now is 05:08 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.