Commit 88648f32 authored by jose.alencastro's avatar jose.alencastro

ok

parent 4c0bb318
public class Complex
{
public double real;
public double imag;
public Complex()
{
real = 0;
imag = 0;
}
public Complex(double r, double i)
{
real = r;
imag = i;
double d = Math.atan2(i,r);
}
public double imag()
{
return imag;
}
public double real()
{
return real;
}
public double magnitude()
{
return 1.0;
}
public double argument()
{
return 1.0;
}
public String toString()
{
return "";
}
public Complex add(Complex complexNum)
{
Complex answer = new Complex(0.0,0.0);
return answer;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment