Calculating precision of sum of fractions
问题 I have this mathematical expression : ∑(2k+1)/(2k)! , k =0,... ,∞ , it is sum from zero to infinity of all fractions in the form (2k+1)/(2k)! I want to create a method which when passed an integer "n", it will output me the result with n digits after the decimal point.This expression first 100 digits can be viewed here : https://miniwebtool.com/first-n-digits-of-e/?number=100 Here is my code, what I have attempted package pi.strategy; import java.math.BigDecimal; import java.math.BigInteger;