This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ri = 1.8 | |
| rf = 2.7 | |
| te = 0.00 | |
| def get_value(x): | |
| return x**2-5*x+6 | |
| yi = get_value(ri) | |
| yf = get_value(rf) | |
| rm = (ri + rf)/2 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <script> | |
| (function(){ | |
| //three JS files that need to be loaded one after the other | |
| var libs = [ | |
| "assets/js/products.js", | |
| "assets/js/sales.js", | |
| // 'https://cdnjs.cloudflare.com/ajax/libs/underscore.string/3.3.4/underscore.string.js' | |
| ]; | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  |  | |
| #include "mpi.h" | |
| void main(int argc, char *argv[]) | |
| { | |
| int nrow, mcol, root, Iam, ndim, p, rank; | |
| int dims[2], coords[2], cyclic, reorder; | |
| MPI_Comm comm, comm1, ceven, codd; | |
| MPI_Group e_group, o_group; | |
| MPI_Init(&argc, &argv); /* starts MPI */ |