Exemple #1
0
 public void testSinInf() {
   TestUtils.assertSame(infInf, oneInf.sin());
   TestUtils.assertSame(infNegInf, oneNegInf.sin());
   TestUtils.assertSame(Complex.NaN, infOne.sin());
   TestUtils.assertSame(Complex.NaN, negInfOne.sin());
   TestUtils.assertSame(Complex.NaN, infInf.sin());
   TestUtils.assertSame(Complex.NaN, infNegInf.sin());
   TestUtils.assertSame(Complex.NaN, negInfInf.sin());
   TestUtils.assertSame(Complex.NaN, negInfNegInf.sin());
 }
Exemple #2
0
 public void testSin() {
   Complex z = new Complex(3, 4);
   Complex expected = new Complex(3.853738, -27.01681);
   TestUtils.assertEquals(expected, z.sin(), 1.0e-5);
 }