All Downloads are FREE. Search and download functionalities are using the official Maven repository.

EOorg.EOeolang.EOmath.EOnumber$EOmod Maven / Gradle / Ivy

/*
 * This file was auto-generated by eolang-maven-plugin
 * on 2022-07-25T15:16:23.401Z. Don't edit it,
 * your changes will be discarded on the next build.
 *
 * The EO sources were compiled to XMIR on
 * 2022-07-25T15:14:48.665082Z by the compiler v.0.24.0.
 */

package EOorg.EOeolang.EOmath;

import org.eolang.*;

//  
//   
//    
//     
//   
//   
//    
//      
//       
//       0
//     
//      
//       
//       
//       
//       
//       
//       
//       
//       
//       
//       
//       
//       
//       
//       
//       
//       
//       
//       
//       
//       
//     
//      
//        
//         
//         0
//       
//       
//        
//         
//       
//     
//   
//    
//     
//     
//     
//     
//     
//     
//     
//     
//     
//     
//     
//     
//     
//     
//     
//     
//     
//     
//     
//     
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
// 
@XmirObject(name = "number$mod", oname = "mod", source = "/home/r/repo/target/eo/04-pull/org/eolang/math/number.eo")
public final class EOnumber$EOmod extends PhDefault {
  public EOnumber$EOmod(final Phi sigma) {
    super(sigma);
    this.add("x", new AtFree(/* default */));
    this.add("dividend", new AtOnce(new AtComposite(this, rho -> {
      Phi ret_base = new PhMethod(rho, "ρ");
        ret_base = new PhLocated(ret_base, 122, 4);
      Phi ret = new PhMethod(ret_base, "n");
        ret = new PhLocated(ret, 122, 5);
      return ret;
    })));
    this.add("divisor", new AtOnce(new AtComposite(this, rho -> {
      Phi ret = new PhMethod(rho, "x");
        ret = new PhLocated(ret, 123, 4);
      return ret;
    })));
    this.add("φ", new AtOnce(new AtComposite(this, rho -> {
      Phi ret_base_base = new PhMethod(rho, "divisor");
        ret_base_base = new PhLocated(ret_base_base, 126, 6);
      Phi ret_base = new PhMethod(ret_base_base, "eq");
        ret_base = new PhLocated(ret_base, 126, 13);
      ret_base = new PhCopy(ret_base);
        Phi ret_base_1 = new EOorg.EOeolang.EOint(Phi.Φ);
          ret_base_1 = new PhLocated(ret_base_1, 126, 17);
          ret_base_1 = new PhWith(ret_base_1, "Δ", new Data.Value(0L));
        ret_base = new PhWith(ret_base, 0, ret_base_1);
      Phi ret = new PhMethod(ret_base, "if");
        ret = new PhLocated(ret, 125, 4);
      ret = new PhCopy(ret);
        Phi ret_1 = new EOnumber$EOmod$EOt3$EOa1(rho);
          ret_1 = new PhLocated(ret_1, 127, 6);
        Phi ret_2_base_base = new PhMethod(rho, "dividend");
          ret_2_base_base = new PhLocated(ret_2_base_base, 130, 8);
        Phi ret_2_base = new PhMethod(ret_2_base_base, "gt");
          ret_2_base = new PhLocated(ret_2_base, 130, 16);
        ret_2_base = new PhCopy(ret_2_base);
          Phi ret_2_base_1 = new EOorg.EOeolang.EOint(Phi.Φ);
            ret_2_base_1 = new PhLocated(ret_2_base_1, 130, 20);
            ret_2_base_1 = new PhWith(ret_2_base_1, "Δ", new Data.Value(0L));
          ret_2_base = new PhWith(ret_2_base, 0, ret_2_base_1);
        Phi ret_2 = new PhMethod(ret_2_base, "if");
          ret_2 = new PhLocated(ret_2, 129, 6);
        ret_2 = new PhCopy(ret_2);
          Phi ret_2_1 = new PhMethod(rho, "abs-mod");
            ret_2_1 = new PhLocated(ret_2_1, 131, 8);
          Phi ret_2_2_base = new PhMethod(rho, "abs-mod");
            ret_2_2_base = new PhLocated(ret_2_2_base, 133, 10);
          Phi ret_2_2 = new PhMethod(ret_2_2_base, "neg");
            ret_2_2 = new PhLocated(ret_2_2, 132, 8);
          ret_2 = new PhWith(ret_2, 0, ret_2_1);
          ret_2 = new PhWith(ret_2, 1, ret_2_2);
        ret = new PhWith(ret, 0, ret_1);
        ret = new PhWith(ret, 1, ret_2);
      return ret;
    })));
    this.add("abs-mod", new AtOnce(new AtComposite(this, rho -> {
      Phi ret = new EOnumber$EOmod$EOabs_mod(rho);
        ret = new PhLocated(ret, 135, 4);
      return ret;
    })));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy