32 axis lines=left, |
30 axis lines=left, |
33 width=5cm, |
31 width=5cm, |
34 height=5cm, |
32 height=5cm, |
35 legend entries={Python,Ruby}, |
33 legend entries={Python,Ruby}, |
36 legend pos=north west, |
34 legend pos=north west, |
37 legend cell align=left |
35 legend cell align=left] |
38 ] |
|
39 \addplot[blue,mark=*, mark options={fill=white}] |
36 \addplot[blue,mark=*, mark options={fill=white}] |
40 table {re-python.data}; |
37 table {re-python.data}; |
41 \addplot[brown,mark=pentagon*, mark options={fill=white}] |
38 \addplot[brown,mark=pentagon*, mark options={fill=white}] |
42 table {re-ruby.data}; |
39 table {re-ruby.data}; |
43 \end{axis} |
40 \end{axis} |
44 \end{tikzpicture} |
41 \end{tikzpicture} |
45 & |
42 & |
46 \begin{tikzpicture} |
43 \begin{tikzpicture} |
47 \begin{axis}[ |
44 \begin{axis}[xlabel={\pcode{a}s},ylabel={time in secs}, |
48 xlabel={\pcode{a}s}, |
|
49 ylabel={time in secs}, |
|
50 enlargelimits=false, |
45 enlargelimits=false, |
51 xtick={0,3000,...,12000}, |
46 xtick={0,3000,...,12000}, |
52 xmax=12000, |
47 xmax=12000, |
53 ymax=35, |
48 ymax=35, |
54 ytick={0,5,...,30}, |
49 ytick={0,5,...,30}, |
55 scaled ticks=false, |
50 scaled ticks=false, |
56 axis lines=left, |
51 axis lines=left, |
57 width=6.5cm, |
52 width=6.5cm, |
58 height=5cm |
53 height=5cm] |
59 ] |
|
60 \addplot[green,mark=square*,mark options={fill=white}] table {re2b.data}; |
54 \addplot[green,mark=square*,mark options={fill=white}] table {re2b.data}; |
61 \addplot[black,mark=square*,mark options={fill=white}] table {re3.data}; |
55 \addplot[black,mark=square*,mark options={fill=white}] table {re3.data}; |
62 \end{axis} |
56 \end{axis} |
63 \end{tikzpicture} |
57 \end{tikzpicture} |
64 \end{tabular} |
58 \end{tabular} |
559 function introduced. Does this improve the speed? You bet!! |
553 function introduced. Does this improve the speed? You bet!! |
560 |
554 |
561 \begin{figure}[p] |
555 \begin{figure}[p] |
562 \lstinputlisting{../progs/app6.scala} |
556 \lstinputlisting{../progs/app6.scala} |
563 \caption{The simplification function and modified |
557 \caption{The simplification function and modified |
564 \pcode{ders}-function.\label{scala2}} |
558 \texttt{ders}-function.\label{scala2}} |
565 \end{figure} |
559 \end{figure} |
566 |
560 |
567 \begin{center} |
561 \begin{center} |
568 \begin{tikzpicture} |
562 \begin{tikzpicture} |
569 \begin{axis}[ |
563 \begin{axis}[xlabel={\pcode{a}s},ylabel={time in secs}, |
570 xlabel={\pcode{a}s}, |
|
571 ylabel={time in secs}, |
|
572 enlargelimits=false, |
564 enlargelimits=false, |
573 xtick={0,2000,...,12000}, |
565 xtick={0,2000,...,12000}, |
574 xmax=12000, |
566 xmax=12000, |
575 ytick={0,5,...,30}, |
567 ytick={0,5,...,30}, |
576 scaled ticks=false, |
568 scaled ticks=false, |
577 axis lines=left, |
569 axis lines=left, |
578 width=9cm, |
570 width=9cm, |
579 height=4cm, |
571 height=4cm, |
580 legend entries={Scala V2,Scala V3}, |
572 legend entries={Scala V2,Scala V3}] |
581 ] |
|
582 \addplot[green,mark=square*,mark options={fill=white}] table {re2b.data}; |
573 \addplot[green,mark=square*,mark options={fill=white}] table {re2b.data}; |
583 \addplot[black,mark=square*,mark options={fill=white}] table {re3.data}; |
574 \addplot[black,mark=square*,mark options={fill=white}] table {re3.data}; |
584 \end{axis} |
575 \end{axis} |
585 \end{tikzpicture} |
576 \end{tikzpicture} |
586 \end{center} |
577 \end{center} |