Home | History | Annotate | Download | only in creals

Lines Matching refs:CR

40 // 5/2015 Added support for direct asin() implementation in CR.
55 abstract public CR execute(CR x);
64 * The function object corresponding to the <TT>negate</tt> method of CR.
70 * The function object corresponding to the <TT>inverse</tt> method of CR.
76 * The function object corresponding to the <TT>abs</tt> method of CR.
82 * The function object corresponding to the <TT>exp</tt> method of CR.
88 * The function object corresponding to the <TT>cos</tt> method of CR.
94 * The function object corresponding to the <TT>sin</tt> method of CR.
113 // CR half_pi = CR.PI.divide(CR.valueOf(2));
133 * The function object corresponding to the <TT>ln</tt> method of CR.
139 * The function object corresponding to the <TT>sqrt</tt> method of CR.
158 public UnaryCRFunction inverseMonotone(CR low, CR high) {
169 public UnaryCRFunction monotoneDerivative(CR low, CR high) {
177 public CR execute(CR x) {
183 public CR execute(CR x) {
189 public CR execute(CR x) {
195 public CR execute(CR x) {
201 public CR execute(CR x) {
211 CR one = CR.valueOf(1);
212 public CR execute(CR x) {
213 CR x2 = x.multiply(x);
214 CR abs_sin_atan = x2.divide(one.add(x2)).sqrt();
215 CR sin_atan = x.select(abs_sin_atan.negate(), abs_sin_atan);
221 public CR execute(CR x) {
227 public CR execute(CR x) {
233 public CR execute(CR x) {
239 public CR execute(CR x) {
245 public CR execute(CR x) {
251 public CR execute(CR x) {
257 public CR execute(CR x) {
269 public CR execute(CR x) {
284 final CR low[] = new CR[1];
285 final CR high[] = new CR[1];
286 final CR f_low[] = new CR[1];
287 final CR f_high[] = new CR[1];
304 inverseMonotone_UnaryCRFunction(UnaryCRFunction func, CR l, CR h) {
306 CR tmp_f_low = func.execute(l);
307 CR tmp_f_high = func.execute(h);
326 class inverseIncreasingCR extends CR {
327 final CR arg;
328 inverseIncreasingCR(CR x) {
417 CR h_cr = CR.valueOf(h).shiftLeft(working_arg_prec);
426 CR l_cr = CR.valueOf(l).shiftLeft(working_arg_prec);
490 CR guess_cr = CR.valueOf(guess)
494 CR f_guess_cr = fn.execute(guess_cr);
507 CR l_cr = CR.valueOf(l)
509 CR h_cr = CR.valueOf(h)
567 public CR execute(CR x) {
579 final CR low[] = new CR[1]; // endpoints and mispoint of interval
580 final CR mid[] = new CR[1];
581 final CR high[] = new CR[1];
582 final CR f_low[] = new CR[1]; // Corresponding function values.
583 final CR f_mid[] = new CR[1];
584 final CR f_high[] = new CR[1];
596 monotoneDerivative_UnaryCRFunction(UnaryCRFunction func, CR l, CR h) {
603 CR difference = h.subtract(l);
609 CR appr_diff2 = f_high[0].subtract(f_mid[0].shiftLeft(1)).add(f_low[0]);
613 class monotoneDerivativeCR extends CR {
614 CR arg;
615 CR f_arg;
617 monotoneDerivativeCR(CR x) {
622 CR left_diff = arg.subtract(low[0]);
624 CR right_diff = high[0].subtract(arg);
639 CR delta = ONE.shiftLeft(log_delta);
641 CR left = arg.subtract(delta);
642 CR right = arg.add(delta);
643 CR f_left = f[0].execute(left);
644 CR f_right = f[0].execute(right);
645 CR left_deriv = f_arg.subtract(f_left).shiftRight(log_delta);
646 CR right_deriv = f_right.subtract(f_arg).shiftRight(log_delta);
664 public CR execute(CR x) {