public Tile(Window v, Rectangle bnds, tensor t = null, formula f = null) { def = f; sub = t; foc = false; pan = new Panel(); pan.Location = bnds.Location; pan.Name = "pan"; pan.Size = bnds.Size; pan.TabIndex = 2; pan.Paint += ppaint; pan.Click += pclick; v.Controls.Add(pan); text = new TextBox(); text.Location = bnds.Location; text.Name = "text"; text.Size = bnds.Size; text.TabIndex = 1; text.TextChanged += tchange; //text.Visible = false; text.Click += pclick; v.Controls.Add(pan); }
public ActionResult <formula> Put([FromBody] formula formula, [FromHeader] string token) { if (UsuarioConexion <usuario> .Instance.getUserToken(token)) { FormulaConexion <formula> .Instance.Update(formula); return(Json("El proceso de almacenado se realizó con éxito.")); } else { return(null); } }
private void tchange(object sender, EventArgs e) { Debug.Write("."); if (def == null) { def = new formula(new List <term>()); } /*if (text.Text.Last() == '+') * { * Debug.Write("+"); * var novus = new term(new List<coefficient>(), new List<coefficient>()); * for() * }*/ }
static void Sqrt(int microseconds) { formula f1 = (double n) => Math.Sqrt(n); int i = 1_000_000 - 100; while (i < int.MaxValue) { Console.Clear(); Console.Write($"{i}: {f1(i)}"); Console.Write(" "); if (f1(i) > microseconds) { break; } i++; } }
static void InsertAndMergeSort2() { formula insert = (double n) => 100 * (n * n); formula merge = (double n) => Math.Pow(2, n); int i = 2; while (i < 1000) { Console.Write(i); Console.Write(" "); if (merge(i) > insert(i)) { break; } i++; } }
static void InsertAndMergeSort1() { lognat ln = (double n) => Math.Log2(n); formula insert = (double n) => n * n; formula merge = (double n) => 64 * n * ln(n); int i = 2; while (i < 1000000) { if (merge(i) > insert(i)) { Console.Write(i); Console.Write(" "); } else { break; } i++; } }
private FormulaConexion(formula aux) : base(aux) { }