This commit is contained in:
2025-05-13 17:45:19 +03:00
parent b610a38682
commit 00cf1834e9
4 changed files with 25 additions and 7 deletions

View File

@@ -80,7 +80,7 @@ int main()
npk += 8;
std::ranges::fill(tk, -1);
std::ranges::fill(pk, -1);
ec = mcc::fitpack::fitpack_sphere_smooth(tetha, phi, func, 1.0, 56000.0, ntk, npk, tk, pk, coeffs, rs);
ec = mcc::fitpack::fitpack_sphere_smooth(tetha, phi, func, 1.0, 1800.0, ntk, npk, tk, pk, coeffs, rs);
std::cout << "FIT EC = " << ec << "\n";
std::cout << "FIT RESI = " << rs << "\n";
@@ -105,6 +105,12 @@ int main()
tetha.resize(nt);
phi.resize(np);
tk.resize(ntk);
pk.resize(npk);
print_func(tetha, "TETHA:");
print_func(phi, "PHI:");
ec = mcc::fitpack::fitpack_eval_spl2d(tk, pk, coeffs, tetha, phi, f_func);
// ec = mcc::fitpack::fitpack_eval_spl2d(pk, tk, coeffs, phi, tetha, f_func);
std::cout << "EVAL EC = " << ec << "\n";