Examples of conjugate()


Examples of cc.redberry.core.groups.permutations.PermutationGroup.conjugate()

                mapping[nPointer++] = index;
            }
        }
        PermutationGroup result = allIndices.getSymmetries().getPermutationGroup().
                pointwiseStabilizerRestricted(stabilizedPoints);
        return result.conjugate(Permutations.createPermutation(mapping));
    }
}
View Full Code Here

Examples of com.thecrouchmode.vector.Quaternion.conjugate()

   
    System.out.println(p.conjugate().conjugate());
    System.out.println(p.multiply(q));
    System.out.println(q.multiply(p));
    System.out.println(p.multiply(q).conjugate());
    System.out.println(q.conjugate().multiply(p.conjugate()));

    Quaternion r = p.normalize();
 
    System.out.println(1-2*r.j*r.j-2*r.k*r.k);
    System.out.println(r.r*r.r+r.i*r.i-r.j*r.j-r.k*r.k);
 
View Full Code Here

Examples of org.apache.commons.math3.complex.Complex.conjugate()

        } else if (token.equals("asin")) {
          stackAnswer.push(complexFormat.format(a.asin()));
        } else if (token.equals("atan")) {
          stackAnswer.push(complexFormat.format(a.atan()));
        } else if (token.equals("conj")) {
          stackAnswer.push(complexFormat.format(a.conjugate()));
        } else if (token.equals("cos")) {
          stackAnswer.push(complexFormat.format(a.cos()));
        } else if (token.equals("cosh")) {
          stackAnswer.push(complexFormat.format(a.cosh()));
        } else if (token.equals("exp")) {
View Full Code Here

Examples of org.jamesii.core.math.complex.ComplexArray1D.conjugate()

   */
  public void testConjugateExceptions() {
    ComplexArray1D a = new ComplexArray1D(new Complex[] { new Complex(1, 1) });

    try {
      a.conjugate(-1);
      fail();
    } catch (IndexOutOfBoundsException e) {
      assertTrue(true);
    } catch (Exception e) {
      fail();
View Full Code Here

Examples of org.jamesii.core.math.complex.ComplexArray1D.conjugate()

      assertTrue(true);
    } catch (Exception e) {
      fail();
    }
    try {
      a.conjugate(5);
      fail();
    } catch (IndexOutOfBoundsException e) {
      assertTrue(true);
    } catch (Exception e) {
      fail();
View Full Code Here

Examples of org.zkoss.zss.engine.Complex.conjugate()

   * @param ctx the function context.
   * @return the complex conjugate of a complex number.
   */
  public static Object engineerImconjugate(Object[] args, XelContext ctx) {
    Complex complex = UtilFns.validateComplex(args[0].toString());
    return UtilFns.cToComplex(complex.conjugate(), complex.getSuffix());
  }
 
  /**
   * Returns the cosine of a complex number.
   * This function implements the IMCOS(arg0) spreadsheet function.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.