Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads WEB Code JSP/Java
  • Category : JSP/Java
  • Tags :
  • Update : 2015-10-12
  • Size : 1kb
  • Downloaded :0次
  • Author :liq****
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Download1 Download2
Don't use download software fo downloading.
If download fail,Try it again for free.
Introduction - If you have any usage issues, please Google them yourself
创建一个执行复数运算的Complex类。复数具有如下格式: realPart+imaginary*j 其中j为虚数。该类分别提供一个构造函数无参的默认构造函数,以防没有提供初始化值,及一个有参构造函数。同时提供为执行如下操作的公有方法: (1)两个复数相加:实部与实部相加,虚部与虚部相加。 (2)两个复数相减:实部与实部相减(-号左侧实部减-号右侧实部),虚部与虚部相减(-号左侧虚部减-号右侧虚部)。 (3)两个复数相乘。(a+b*j)(x+y*j)=(ax-by)+(ay+bx)*j (4)两个复数相除。(a+b*j)/(x+y*j)=(a+b*j)(x-y*j)/(x*x+y*y) (5)以(a,b)的格式打印复数,其中a 是实部,b是虚部。 提供测试程序,测试该类。
Packet file list
(Preview for download)


Complex.java
TestComplex.java
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.