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

EOorg.EOeolang.EOmath.EOnumber$EOabs 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.0
//       
//       
//        
//         
//       
//     
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
// 
@XmirObject(name = "number$abs", oname = "abs", source = "/home/r/repo/target/eo/04-pull/org/eolang/math/number.eo")
public final class EOnumber$EOabs extends PhDefault {
  public EOnumber$EOabs(final Phi sigma) {
    super(sigma);
    this.add("value", new AtOnce(new AtComposite(this, rho -> {
      Phi ret_base = new PhMethod(rho, "ρ");
        ret_base = new PhLocated(ret_base, 145, 4);
      Phi ret = new PhMethod(ret_base, "n");
        ret = new PhLocated(ret, 145, 5);
      return ret;
    })));
    this.add("φ", new AtOnce(new AtComposite(this, rho -> {
      Phi ret_base = new PhMethod(new PhMethod(rho, "σ"), "is-int");
        ret_base = new PhLocated(ret_base, 147, 6);
      Phi ret = new PhMethod(ret_base, "if");
        ret = new PhLocated(ret, 146, 4);
      ret = new PhCopy(ret);
        Phi ret_1_base_base = new PhMethod(rho, "value");
          ret_1_base_base = new PhLocated(ret_1_base_base, 149, 8);
        Phi ret_1_base = new PhMethod(ret_1_base_base, "gte");
          ret_1_base = new PhLocated(ret_1_base, 149, 13);
        ret_1_base = new PhCopy(ret_1_base);
          Phi ret_1_base_1 = new EOorg.EOeolang.EOint(Phi.Φ);
            ret_1_base_1 = new PhLocated(ret_1_base_1, 149, 18);
            ret_1_base_1 = new PhWith(ret_1_base_1, "Δ", new Data.Value(0L));
          ret_1_base = new PhWith(ret_1_base, 0, ret_1_base_1);
        Phi ret_1 = new PhMethod(ret_1_base, "if");
          ret_1 = new PhLocated(ret_1, 148, 6);
        ret_1 = new PhCopy(ret_1);
          Phi ret_1_1 = new PhMethod(rho, "value");
            ret_1_1 = new PhLocated(ret_1_1, 150, 8);
          Phi ret_1_2_base = new PhMethod(rho, "value");
            ret_1_2_base = new PhLocated(ret_1_2_base, 151, 8);
          Phi ret_1_2 = new PhMethod(ret_1_2_base, "neg");
            ret_1_2 = new PhLocated(ret_1_2, 151, 13);
          ret_1 = new PhWith(ret_1, 0, ret_1_1);
          ret_1 = new PhWith(ret_1, 1, ret_1_2);
        Phi ret_2_base_base = new PhMethod(rho, "value");
          ret_2_base_base = new PhLocated(ret_2_base_base, 153, 8);
        Phi ret_2_base = new PhMethod(ret_2_base_base, "gte");
          ret_2_base = new PhLocated(ret_2_base, 153, 13);
        ret_2_base = new PhCopy(ret_2_base);
          Phi ret_2_base_1 = new EOorg.EOeolang.EOfloat(Phi.Φ);
            ret_2_base_1 = new PhLocated(ret_2_base_1, 153, 18);
            ret_2_base_1 = new PhWith(ret_2_base_1, "Δ", new Data.Value(0.0d));
          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, 152, 6);
        ret_2 = new PhCopy(ret_2);
          Phi ret_2_1 = new PhMethod(rho, "value");
            ret_2_1 = new PhLocated(ret_2_1, 154, 8);
          Phi ret_2_2_base = new PhMethod(rho, "value");
            ret_2_2_base = new PhLocated(ret_2_2_base, 155, 8);
          Phi ret_2_2 = new PhMethod(ret_2_2_base, "neg");
            ret_2_2 = new PhLocated(ret_2_2, 155, 13);
          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;
    })));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy