Documentos de Académico
Documentos de Profesional
Documentos de Cultura
using
using
using
using
using
using
using
using
System;
System.Collections.Generic;
System.ComponentModel;
System.Data;
System.Drawing;
System.Linq;
System.Text;
System.Threading.Tasks;
System.Windows.Forms;
namespace Fuerza_de_Lorentz
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
panelVELOCIDAD.Visible = false;
panelMAGNETICO.Visible = false;
panelRESULTADOS.Visible = false;
}
private void button1_Click(object sender, EventArgs e)
{
panelVELOCIDAD.Visible = true;
textBox1.Enabled = false;
}
private void button2_Click(object sender, EventArgs e)
{
panelMAGNETICO.Visible = true;
textBox2.Enabled = false;
textBox3.Enabled = false;
textBox4.Enabled = false;
}
private void button4_Click(object sender, EventArgs e)
{
int N = 3; // Numero de componentes vectoriales
double q = 0; // variable carga
double[] velocidad = new double[N]; // vector velocidad
double[] magnetico = new double[N]; // vector magnetico
double[] fuerza = new double[N]; // vector fuerza
double F = 0; // magnitud de fuerza