Class ml: Arithmetic Methods
public static ml add(ml x, ml y)
{
return new ml(x.re + y.re, x.im + y.im);
}
public static ml sub(ml x, ml y)
{
return new ml(x.re - y.re, x.im - y.im);
}
/* other operators:
.* ./ < <= > >= == ~= unary- etc.
*/
Previous slide
Next slide
Back to first slide
View graphic version