zinon
zinon

Reputation: 4664

Fortran: Evaluation of a multiplication in parenthesis

In Fortran I have print *,(4,2)*(2,1) and the result is (6.,8.). How does this computation is evaluated?

Upvotes: 1

Views: 46

Answers (1)

High Performance Mark
High Performance Mark

Reputation: 78364

Those are complex numbers, an intrinsic type in Fortran since the year . And you are looking at a complex multiplication.

Upvotes: 2

Related Questions