Lines Matching refs:nc
738 nc, dc, e1 = try_e(e0)
743 return nc, dc
752 nc, dc, e2 = try_e(e1)
760 nc, dc, enew = try_e(emid)
769 return nc, dc
826 (nc, dc) = ratfn_leastsquares(f, grid, n, d, w)
828 ratfn_to_string(nc, dc))
849 approx_y = ratfn_eval(nc, dc, x)
867 return nc, dc, max_err, extrema
872 (nc, dc) = ratfn_equal_deviation(f, map(x->x[1], extrema),
874 @debug("minimax", "refined approx = ", ratfn_to_string(nc, dc))
953 (nc, dc) = ratfn_leastsquares(x->exp(x), a, 2, 2)
954 println(" ",ratfn_to_string(nc, dc))
956 test(approx_eq(exp(x), ratfn_eval(nc, dc, x), 1e-4))
984 (nc, dc, e, x) = ratfn_minimax(x->exp(x), (BigFloat(0), BigFloat(1)), 4, 0)
986 println(" ",ratfn_to_string(nc, dc))
989 test(abs(ratfn_eval(nc, dc, x) - exp(x)) <= e * 1.0000001)
993 (nc, dc, e, x) = ratfn_minimax(x->exp(x), (BigFloat(0), BigFloat(1)), 2, 2)
995 println(" ",ratfn_to_string(nc, dc))
998 test(abs(ratfn_eval(nc, dc, x) - exp(x)) <= e * 1.0000001)
1002 (nc, dc, e, x) = ratfn_minimax(x->exp(x), (BigFloat(0), BigFloat(1)), 4, 0,
1005 println(" ",ratfn_to_string(nc, dc))
1008 test(abs(ratfn_eval(nc, dc, x) - exp(x))/exp(x) <= e * 1.0000001)
1012 (nc, dc, e, x) = ratfn_minimax(x->exp(x), (BigFloat(0), BigFloat(1)), 2, 2,
1015 println(" ",ratfn_to_string(nc, dc))
1018 test(abs(ratfn_eval(nc, dc, x) - exp(x))/exp(x) <= e * 1.0000001)
1022 (nc, dc, e, x) = ratfn_minimax(x->exp(x), (BigFloat(0), BigFloat(1)), 2, 1,
1025 println(" ",ratfn_to_string(nc, dc))
1028 test(abs(ratfn_eval(nc, dc, x) - exp(x))/exp(x) <= e * 1.0000001)
1260 (nc, dc, e, extrema) = ratfn_minimax(func, (lo, hi), n, d, weight)
1263 functext = join([string(x)*",\n" for x=nc],"")
1271 functext = ratfn_to_string(nc, dc) * "\n"
1279 string(wellcond(nc, lo, hi)))
1283 println("wellconditioning = ", string(wellcond(nc, lo, hi)))