mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-12-16 15:44:39 +00:00
9 lines
134 B
C
9 lines
134 B
C
PLEX multi(PLEX a,PLEX b) {
|
|
PLEX c;
|
|
|
|
c.re = a.re * b.re - a.im * b.im;
|
|
c.im = a.re * b.im + a.im * b.re;
|
|
|
|
return c;
|
|
}
|