@Amalia, are you perhaps referring to the book published in 1731 by Thomas Bayes, entitled "Divine Benevolence, or an Attempt to Prove That the Principal End of the Divine Providence and Government is the Happiness of His Creatures"?
The lines of thinking in there led, in a zig-zag way, to what we call today Bayesian statistical inference. As the very title admits, the logician in Bayes prevailed over hith faith and made him admit that his attempt has in fact failed, at least mathematically speaking.
Ever since Thomas Aquinas opened the Church of Rome towards the idea that the divine MIGHT be rationally scrutinized (thus enabling the birth of Western civilization) there were recurrent attempts to apply ALSO mathematics to such scrutiny. But, as far as I am able to judge, such attempts did not lead far and did not affect anybody's happiness. See, for example, https://www.religiousstudiesproject.com/podcast/god-and-mathematics/.
I would like to know(read) Religious Mathematics..Is it separate branch of Mathematics? Once it is known, it can be connected with Happiness. I think Historically Mathematics itself is religious.
Amalia Rodríguez Rodríguez Modern mathematics results are not quite different from religious mathematics but the methods do. In Eastern region, where most of the dwellers are hindus, religious mathematics is referred to "vedic ganit." Vedic ganit is derived from the hindu holi book "Veda" which justifies all forms of mathematical calculations including astrology. This type of study is very popular among the Gurukulas. Gurukul is a ancient method of studying mathematics in sanskrit in the teachers resident.