What can I do? C++, "error: no match for ‘operator*’" using product of complex numbers in exp()?

I'm using the C++ STD library <complex> and get the error message:

error: no match for ‘operator*’

when trying to evaluate an expression like: exp(a*b*c) with a, b, c complex and real numbers.

It says in the <complex> library the operator for multiplication "*" is already overloaded, so I thought I could use it right away.

Any ideas?

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 1QUIZZ.COM - All rights reserved.