Closed newptcai closed 5 months ago
Use SymFunction
: https://jverzani.github.io/SymPyCore.jl/dev/reference/#SymPyCore.SymFunction
using SymPy
@syms n
y = SymFunction("y")
f = y(n+2)-y(n+1)-y(n)
Just to add, the function can also be defined through
@syms n y()
I see. Thanks. Hope solving linear recurrence can be added to the documentations!
Describe the bug
When I tried the following code in order to solve a linear recurrence, I got an error (as shown below).
Desktop (please complete the following information):