|
|
last edited 9 years ago by test1 |
1 2 | ||
Editor:
Time: 2007/11/17 22:27:06 GMT-8 |
||
Note: |
changed: - \begin{axiom} L:=generate(s+->s+1,1.1)$Stream Float for i in L repeat output i+0.01 \end{axiom} But of course L is a Stream and iteration within list comprehension works. \begin{axiom} P:=[i+0.01 for i in L] \end{axiom}
L:=generate(s+->s+1,1.1)$Stream Float
Line 1: L:=generate(s+->s+1,1.1)$Stream Float ...A Error A: syntax error at top level Error A: Improper syntax. 2 error(s) parsing for i in L repeat output i+0.01
FriCAS cannot iterate with i over your form now. Perhaps you should try using a conversion to make sure your form is a list or stream,for example.
But of course L is a Stream and iteration within list comprehension works.
P:=[i+0.01 for i in L]
FriCAS cannot iterate with i over your form now. Perhaps you should try using a conversion to make sure your form is a list or stream,for example.