Join GitHub today
limit(fibonacci(n + 1)/fibonacci(n), n, oo) does not give GoldenRatio #10382
Calling rewrite(sqrt) on the expression first to get the closed-form expression for fibonacci that uses GoldenRatio results in
At any rate, assumedly to make this work, one just needs to define the series expansion for fibonacci.
I would like to work on this. I have a few questions though.
@meghana1995 wrap your expressions with backticks (like
Anyway, the rewrite(sqrt) comment above refers to doing this:
I called this on the input expression and limit gave the NotImplementedError. I guess it doesn't like the exponent with the negative base.
Apparently the series expansion has complex coefficients. I don't know if the gruntz algorithm can handle this.
added a commit
Jan 13, 2016
I think we can support instances of
-1 for allowing all instances. We could allow singletons though.
So there are two ways it can be done.
referenced this issue
Feb 13, 2017
n = symbols('n')
n = Symbol('n' , integer=True)
n = Symbol('n' , positive=True, integer=True)
n = Symbol('n' , positive = True)
I think this might be a bug in the