Esempio n. 1
0
  /**
   * Calculate
   *
   * @param context the context
   * @param source the tokensource
   * @return the real-value
   * @throws InterpreterException if a error occoured
   */
  protected Real calculate(final Context context, final TokenSource source)
      throws InterpreterException {

    Real real = new Real(context, source);
    return new Real(Math.log(real.getValue()));
  }