Examples of cos()


Examples of calculator.sci.SciCalculatorService.cos()

        System.out.println((new StringBuilder()).append("\tSquare Root of 81 = ").append(sciCalculator
            .sqrt(81D)).toString());
        System.out.println("\tInvoking Java Implementation configured for Property  ... ");
        System.out.println((new StringBuilder()).append("\tSine 90 Degrees = ")
            .append(sciCalculator.sin(90D)).toString());
        System.out.println((new StringBuilder()).append("\tCos 90 Degrees = ").append(sciCalculator.cos(90D))
            .toString());
        System.out.println((new StringBuilder()).append("\tTan 90 Degrees = ").append(sciCalculator.tan(90D))
            .toString());
        System.out.println("\nExiting...");
    }
View Full Code Here

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

        } 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")) {
          stackAnswer.push(complexFormat.format(a.exp()));
        } else if (token.equals("imag")) {
View Full Code Here

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

   * @param ctx the function context.
   * @return the cosine of a complex number.
   */
  public static Object engineerImcos(Object[] args, XelContext ctx) {
    Complex complex = UtilFns.validateComplex(args[0].toString());
    return UtilFns.cToComplex(complex.cos(), complex.getSuffix());
  }
 
  /**
   * Returns the quotient of two complex numbers.
   * This function implements the IMDIV(arg0, arg1) 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.