Hello, there was a difficulty in the following: how to put into shape a given system of vectors? I will be grateful for the help

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace c_system { public partial class Form1 : Form { public struct TupleComp //ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Π° ΠΊΠΎΡ€Ρ‚Π΅ΠΆΠ° { public int var; //Π½ΠΎΠΌΠ΅Ρ€ ΠΏΠ΅Ρ€Π΅ΠΌΠ΅Π½Π½ΠΎΠΉ public uint value; //значСния public static TupleComp Set(int avar,uint avalue) //Ρ‡Ρ‚ΠΎ Ρ‚Π°ΠΊΠΎΠ΅ set? //ΠΏΠΎΡ‡Π΅ΠΌΡƒ ΠΈ public ΠΈ static? { TupleComp result; result.var = avar; result.value = avalue; return result; } public TupleComp(int avar, uint avalue) { var = avar; value = avalue; } } public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { int[] all_variables = new int[] { 3, 2, 4 }; //задаю количСства Π·Π½Π°Ρ‡Π΅Π½ΠΈΠΉ Ρƒ ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅ΠΌΡ‹Ρ… ΠΏΠ΅Ρ€Π΅ΠΌΠ΅Π½Π½Ρ‹Ρ… x1, x2, x3; TupleComp[] tuple1 = new TupleComp[] { TupleComp.Set(0, 1), TupleComp.Set(2, 3) }; //(x1,1)(x3,1+x3,2) TupleComp[] tuple2 = new TupleComp[] { TupleComp.Set(1, 2), TupleComp.Set(2, 1<<1 | 1<<3) }; //(x2,2)(x3,2+x3,4) TupleComp[][] system = new TupleComp[][] { tuple1, tuple2 }; //Π‘-систСма public String PrintTupleComp(int var, uint value) { //result = val1 + val2 + ... + valN } public String PrintTuple(TupleComp[] tuple) { //result = comp1 * comp2 + ... + compN } public String PrintSystem(TupleComp[][] system) { //result = tuple1 + tuple2 + ... + tupleN } } private void system_btn_Click(object sender, EventArgs e) { } } } 
  • And in what form do you want it to be displayed? - VladD 2:21 pm
  • one
    Try to write more detailed questions. Explain exactly what you see the problem, how to reproduce it, what you want to get as a result, etc. - Nicolas Chabanovsky ♦

0