Question: rtable writing seperate rows on each call of a function

Consider a function for a sample say

 

operations := proc(A)

local O1, O2, O3, O4, O5, O6, O7, O8;

O1 := A + 2;

O2 := 2*A;

O3 := A^2;

O4 := A mod 2;

O5 := A + 3;

O6 := 3*A;

O7 := A^3;

O8 := A mod 3;

end proc;

 

First time when I call operations function as operations(3) the output should come in first row

second time when i call the same function as operations(8) the output should come in second row

5

6

9

1

6

9

27

0

10

16

64

0

11

24

512

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Similiarly the third time i call in the third row of the rtable.

In generale senario The rtable can contain say k columns based on the number of outputs in that function called.

And each call of the same function the new output is written in a new row.

 

Finally we should be able to export this rtable to excel.

Please Wait...