|
|
|
last edited 5 days ago by test1 |
| 1 2 3 4 | ||
|
Editor: test1
Time: 2026/07/01 20:13:07 GMT+0 |
||
| Note: | ||
added:
RecurrenceOperator is included in FriCAS, content below is kept for historical reasons.
RecurrenceOperator? is included in FriCAS, content below is kept for historical reasons.
Here is a simple implemention of a recurrence relation operator. It is far from finished, but might serve as a starting point. I experienced the following difficulties:
(1) -> sum(k,k=1.0..2.5)
| (1) |
sum, rootOf or the like needs to be written.
The operation evalRec is just for a startevalRec needs to be speeded upevalADE doesn't really work concerning evaluationThe pamphlet is [rec.spad.pamphlet]? and the source is [rec.spad]?.
Here is an example:
)lib RECOP
)library cannot find the file RECOP. dummy := new()$Symbol;
f := operator 'f;
eq := f(dummy) - f(dummy - 1) - f(dummy - 2);
r:=evalRec(f,dummy, n, n0, eq, [1, 1])$RecurrenceOperator(Integer, Expression Integer)
The function evalRec is not implemented in RecurrenceOperator( Integer,Expression(Integer)) .