2018jason

https://pintia.cn/problem-sets/12/problems/348

1 struct complex multiply(struct complex x, struct complex y)
2 {
3     struct complex ret;
4 
5     ret.real = x.real * y.real - x.imag * y.imag;
6     ret.imag = x.real * y.imag + x.imag * y.real;
7 
8     return ret;
9 }

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2021-10-14
  • 2021-12-19
  • 2022-12-23
猜你喜欢
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2021-04-13
相关资源
相似解决方案