I am trying to teach myself Chudnovsky’s algorithm using Python and this wikipedia page: https://en.wikipedia.org/wiki/Chudnovsky_algorithm On the wiki, I am focused on the “high performance iterative implementation, [that] can be simplified to”: I tried to code up the equation on the far right that is using the Sigma symbol. I am familiar with Python but am not that great at
Tag: symbolic-math
How might I find an approximate solution to this equation?
The following code is meant to find for how much Bitcoin one is meant to buy in order to break even given the expected inflation, the holding period, and the amount of savings in dollars: When the program is fed with years=3, times=4, cpi=8, and a=1000 it does not find a solution. Because of it I introduced a loop that
Python: Equation symbolic solution
I was wondering if there was any way I could get the symbolic solution for a variable in an equation using python, as I’ve been looking around but didn’t find exactly what I wanted. What I intend to do is, for example, given: eq = x + y + 5 I’d like to get: x = – 5 – y
Sympy multiplies answer changing it and making it wrong
I am trying to find the inverse of a matrix, however, sympy always multiplies the final answer by 4, thereby making the answer wrong. This multiplication also happens when I use the factor function. Here is the matrix I want to change And here is the “wrong” answer it gives The true answer is the same only NOT multiplied by