File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,9 +35,9 @@ Node 1 contains the following code:
3535
3636``` ruby
37370 .step(6 * Math ::PI , 0.01 ) do |x |
38- $outContainer << Cells .new .double(x).
39- double(Math .sin(x)).
40- double(Math .sin(x + Math ::PI / 3 ))
38+ $out_data_0 << Cells .new .double(x).
39+ double(Math .sin(x)).
40+ double(Math .sin(x + Math ::PI / 3 ))
4141end
4242```
4343
@@ -46,17 +46,17 @@ Node 2 contains the following code:
4646``` ruby
4747$outContainer .rowKey = 100000 # generate table keys from this number
48480 .step(6 * Math ::PI , 0.01 ) do |x |
49- $outContainer << Cells .new .double(x).
50- double(Math .cos(x)).
51- double(Math .cos(0.3 * x))
49+ $out_data_0 << Cells .new .double(x).
50+ double(Math .cos(x)).
51+ double(Math .cos(0.3 * x))
5252end
5353```
5454
5555Node 3 contains the following code:
5656
5757``` ruby
58- $inData0 .each do |row |
59- $outContainer << (row << Cells .new .double(row.y1.to_f- row.y2.to_f))
58+ $in_data_0 .each do |row |
59+ $out_data_0 << (row << Cells .new .double(row.y1.to_f- row.y2.to_f))
6060
6161 # alternative
6262 # $outContainer << (row << Cells.new.double(row[1].to_f-row[2].to_f))
6666Node 4 contains the following code:
6767
6868``` ruby
69- $inData0 . each do |row |
70- $outContainer0 << row
71- end
72- $inData1 .each do | row |
73- $outContainer1 << row
74- end
69+ ( 0 .. 1 ). each do |i |
70+ out = $output_datatable_arr [i]
71+ $input_datatable_arr [i].each do | row |
72+ out << row
73+ end
74+ end
7575```
7676
7777Node 6 contains the following code:
You can’t perform that action at this time.
0 commit comments