So I wrote a program that has one main function call two other functions in an equation and then calculates a value. The problem is the numbers I need returned from those two other functions need to stay in their complex form. Using double() I get an error when trying to return that. Is there any other function type that can return the numbers in their complex form?(adsbygoogle = window.adsbygoogle || []).push({});

Note: the program is in C.

**Physics Forums | Science Articles, Homework Help, Discussion**

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

# Have a function return a complex number in C?

Loading...

Similar Threads for function return complex |
---|

Surface plot for a 3D function |

Program that calculates the list of x and f(x) for a given function |

C/++/# Is Pass-by-Reference part of a Function Signature? |

Fortran Fortran external functions vs subroutines |

**Physics Forums | Science Articles, Homework Help, Discussion**