F
foice
Hello to everybody
I am dealing with a rather long mathematical expression generated by a
CAS and this contains products of real numbers and complex numbers.
Of course the real numbers can be thought as complex and
multiplication between complex numbers would not be a problem.
Unfortunately the CAS gives output where a real is put in real form
and apparently a multiplication between a float and complex like this
amp = 2. * complex<float> (1.,1.);
cannot be digested by the compiler.
Mathematically the operation makes perfectly sense ... why is not
defined the multiplication of reals and complex?
Any idea how to simply get this multiplication done without writing
complex<float> (2.,0)*complex<float>(1.,1.) ??
Thanks a lot
Roberto
I am dealing with a rather long mathematical expression generated by a
CAS and this contains products of real numbers and complex numbers.
Of course the real numbers can be thought as complex and
multiplication between complex numbers would not be a problem.
Unfortunately the CAS gives output where a real is put in real form
and apparently a multiplication between a float and complex like this
amp = 2. * complex<float> (1.,1.);
cannot be digested by the compiler.
Mathematically the operation makes perfectly sense ... why is not
defined the multiplication of reals and complex?
Any idea how to simply get this multiplication done without writing
complex<float> (2.,0)*complex<float>(1.,1.) ??
Thanks a lot
Roberto