i have a a little problem in fortan90 i just wanted to know how to input a complex number ( input real and img part alone ) all i want to do is to make a simple program about DeMoivres Theorem i have been around in google(adsbygoogle = window.adsbygoogle || []).push({});

all i know how to declare a argument as complex

complex a

then how to let the user input the real and img part for argument a

i did read(*,*)a

every time it give runtime error :)

thanks in advance

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Complex number in fortran 90

Loading...

Similar Threads - Complex number fortran | Date |
---|---|

Complex numbers in java | Aug 26, 2013 |

Have a function return a complex number in C? | Jun 21, 2013 |

Fortran 95 & complex numbers question | Oct 3, 2010 |

How do you implement complex numbers into programming? | Jul 12, 2009 |

Fortran complex numbers and do loops | Nov 25, 2008 |

**Physics Forums - The Fusion of Science and Community**