⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 complextest.java

📁 真的是复数运算噢
💻 JAVA
字号:
public class ComplexTest{
  public static void main(String [] args) 
  { 
   Complex a = new Complex (1,1); 
   Complex b = new Complex (1,-1); 
   Complex c = new Complex (a.real+b.real,a.image+b.image);
   Complex d = new Complex (a.real-b.real,a.image-b.image);
   Complex e = new Complex (a.real*b.real-a.image*b.image,a.real*b.image+a.image*b.real);
   System.out.println(a.toString());
   System.out.println(b.toString());
   System.out.println(c.toString()); 
   System.out.println(d.toString()); 
   System.out.println(e.toString()); 

} 
	}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -