Homework 1
Completion requirements
<?php
print $r;
?>
print $r
// Add necessary class, object, and implicit def definitions in order to make the statements in the main work.
// ...
// ...
// ...
object ComplexNumbers {
// ...
def main(args: Array[String]) {
println(Complex(1,2))
// 1+2i println(1 + 2*I + I*3 + 2)
// 3+5i val c = (2+3*I + 1 + 4*I) * I println(-c)
// 7-3i
}
}
Last modified: Wednesday, 1 October 2014, 10:35 PM
