close
          Warning:
          Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.
      
 
    
        
        
          
            | File testIM.tol, 750 bytes (added by Pedro Gea, 15 years ago) | 
          
            |  | 
        
        
          
  | Line |  | 
|---|
| 1 |  | 
|---|
| 2 | NameBlock linked = [[ | 
|---|
| 3 | Set linkers = Copy(Empty); | 
|---|
| 4 | Real AppendLinker1(NameBlock linker) { | 
|---|
| 5 | Set Append(linkers, [[linker]], False); | 
|---|
| 6 | 1}; | 
|---|
| 7 | Real AppendLinker2(NameBlock linker) { | 
|---|
| 8 | Set Append(linkers, [[ [[linker]] ]], False); | 
|---|
| 9 | 1} | 
|---|
| 10 | ]]; | 
|---|
| 11 |  | 
|---|
| 12 | Real t1 = Copy(Time); | 
|---|
| 13 | Set grafico1 = For(1, 500, Real (Real i) { | 
|---|
| 14 | Real linked::AppendLinker1(linked); | 
|---|
| 15 | Copy(Time)-t1 | 
|---|
| 16 | }); | 
|---|
| 17 |  | 
|---|
| 18 | NameBlock linked::linkers := Copy(Empty); | 
|---|
| 19 |  | 
|---|
| 20 | Real t2 = Copy(Time); | 
|---|
| 21 | Set grafico2 = For(1, 500, Real (Real i) { | 
|---|
| 22 | Real linked::AppendLinker2(linked); | 
|---|
| 23 | Copy(Time)-t2 | 
|---|
| 24 | }); | 
|---|
| 25 |  | 
|---|
| 26 | NameBlock linked::linkers := Copy(Empty); | 
|---|
| 27 |  | 
|---|
| 28 | NameBlock linked := [[ Real void = ? ]]; | 
|---|
| 29 |  | 
|---|
| 30 | Set grafico12 = Traspose([[grafico1, grafico2]]); | 
|---|
| 31 | // Graficar todas contra con la genérica | 
|---|
| 32 |  | 
|---|
| 33 |  | 
|---|
| 34 |  | 
|---|
| 35 |  | 
|---|
         
     
    
      Download in other formats: