From 901521631f484275afeb4bb18ea9d57db9939cf0 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 10 Jun 2023 11:05:13 +0200 Subject: [PATCH] inverse_exp_newton --- hyperpoint.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/hyperpoint.cpp b/hyperpoint.cpp index cc0f500d..d3b7c513 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -1650,6 +1650,22 @@ EX hyperpoint inverse_exp(const shiftpoint h, flagtype prec IS(pNORMAL)) { return v; } +/** more precise */ +EX hyperpoint inverse_exp_newton(hyperpoint h, int iter) { + auto approx = inverse_exp(shiftless(h)); + for(int i=0; i