SlideShare a Scribd company logo
1 of 24
Download to read offline
VERSION 5.00
Begin VB.Form Form1
Caption = "Calculadora by marco"
ScaleMode = 1
AutoRedraw = False
FontTransparent = True
BorderStyle = 4 'Fixed ToolWindow
'Icon = n/a
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ClientLeft = 45
ClientTop = 285
ClientWidth = 3975
ClientHeight = 3195
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin CommandButton salir
Caption = "Salir"
Left = 2160
Top = 2520
Width = 1695
Height = 495
TabIndex = 11
End
Begin CommandButton new
Caption = "Nuevo calculo"
Left = 120
Top = 2520
Width = 1695
Height = 495
TabIndex = 10
End
Begin CommandButton dividir
Caption = "/"
Left = 3240
Top = 1800
Width = 615
Height = 495
TabIndex = 9
BeginProperty Font
Name = "MS Sans Serif"
Size = 13,5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin CommandButton por
Caption = "x"
Left = 2160
Top = 1800
Width = 615
Height = 495
TabIndex = 8
BeginProperty Font
Name = "MS Sans Serif"
Size = 13,5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin CommandButton restar
Caption = "-"
Left = 1200
Top = 1800
Width = 615
Height = 495
TabIndex = 7
BeginProperty Font
Name = "MS Sans Serif"
Size = 13,5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin CommandButton sumar
Caption = "+"
Left = 120
Top = 1800
Width = 615
Height = 495
TabIndex = 6
BeginProperty Font
Name = "MS Sans Serif"
Size = 13,5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin TextBox res
Left = 1680
Top = 1080
Width = 1215
Height = 405
TabIndex = 5
BeginProperty Font
Name = "MS Sans Serif"
Size = 9,75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin TextBox can2
Left = 1680
Top = 600
Width = 1215
Height = 405
TabIndex = 4
BeginProperty Font
Name = "MS Sans Serif"
Size = 9,75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin TextBox can1
Left = 1680
Top = 120
Width = 1215
Height = 405
TabIndex = 3
BeginProperty Font
Name = "MS Sans Serif"
Size = 9,75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin Label Label3
Caption = "Resultado"
Left = 240
Top = 1200
Width = 1095
Height = 255
TabIndex = 2
BeginProperty Font
Name = "MS Sans Serif"
Size = 9,75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin Label Label2
Caption = "Cantidad2"
Left = 240
Top = 720
Width = 1095
Height = 615
TabIndex = 1
BeginProperty Font
Name = "MS Sans Serif"
Size = 9,75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin Label Label1
Caption = "Cantidad1"
Left = 240
Top = 240
Width = 1215
Height = 495
TabIndex = 0
BeginProperty Font
Name = "MS Sans Serif"
Size = 9,75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
End
Attribute VB_Name = "Form1"
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 1575
ClientLeft = 60
ClientTop = 450
ClientWidth = 3600
LinkTopic = "Form1"
ScaleHeight = 1575
ScaleWidth = 3600
StartUpPosition = 3 'Windows Default
Begin VB.TextBox Text3
Height = 285
Left = 120
TabIndex = 3
Text = "Text3"
Top = 600
Width = 1455
End
Begin VB.TextBox Text1
Height = 285
Left = 120
TabIndex = 2
Text = "Text1"
Top = 120
Width = 1455
End
Begin VB.CommandButton Command2
Caption = "Command2"
Height = 255
Left = 1800
TabIndex = 1
Top = 1200
Width = 1695
End
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 255
Left = 120
TabIndex = 0
Top = 1200
Width = 1455
End
Begin VB.Label Label2
Caption = "Label2"
Height = 255
Left = 1800
TabIndex = 5
Top = 600
Width = 1695
End
Begin VB.Label Label1
Caption = "Label1"
Height = 255
Left = 1800
TabIndex = 4
Top = 120
Width = 1695
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Function IntToBin(ByVal IntegerNumber As Long)
IntNum = IntegerNumber
Do
'Use the Mod operator to get the current binary digit from the
'Integer number
TempValue = IntNum Mod 2
BinValue = CStr(TempValue) + BinValue
'Divide the current number by 2 and get the integer result
IntNum = IntNum  2
Loop Until IntNum = 0
IntToBin = BinValue
End Function
Function BinToInt(ByVal BinaryNumber As String)
'Get the length of the binary string
Length = Len(BinaryNumber)
'Convert each binary digit to its corresponding integer value
'and add the value to the previous sum
'The string is parsed from the right (LSB - Least Significant Bit)
'to the left (MSB - Most Significant Bit)
For x = 1 To Length
TempValue = TempValue + Val(Mid(BinaryNumber, Length - x + 1, 1)) * 2 ^ (x - 1)
Next
BinToInt = TempValue
End Function
Private Sub Command1_Click()
'Text1 contains the integer number. Text2 shows the binary result
Label1.Caption = IntToBin(Val(Text1.Text))
End Sub
Private Sub Command2_Click()
'Text3 contains the binary string. Text4 shows the integer result
Label2.Caption = BinToInt(Text3.Text)
End Sub
package metodo_de_la_bisección;
import java.awt.Color;
import java.awt.Container;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.GroupLayout.ParallelGroup;
import javax.swing.GroupLayout.SequentialGroup;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;
import javax.swing.UnsupportedLookAndFeelException;
import org.lsmp.djep.djep.DJep;
import org.math.plot.Plot2DPanel;
import org.nfunk.jep.JEP;
public class Bisección
extends JFrame
{
public Bisección()
{
initComponents();
getContentPane().setBackground(Color.BLACK);
this.d.setBounds(30, 140, 400, 320);
add(this.d);
}
Plot2DPanel d = new Plot2DPanel();
JEP j = new JEP();
double value;
double xr;
double x1;
double x;
double valor;
public String derivar(String funcion, double x)
{
String derivada = "";
DJep Derivar = new DJep();
Derivar.addStandardFunctions();
Derivar.addStandardConstants();
Derivar.addVariable("x", x);
Derivar.addComplex();
Derivar.setAllowUndeclared(true);
Derivar.setAllowAssignment(true);
Derivar.parseExpression(funcion);
Derivar.setImplicitMul(true);
Derivar.addStandardDiffRules();
this.value = Derivar.getValue();
return derivada;
}
private void initComponents()
{
this.txt_funcion = new JTextField();
this.txt_x = new JTextField();
this.txt_x1 = new JTextField();
this.jLabel1 = new JLabel();
this.jLabel2 = new JLabel();
this.jLabel3 = new JLabel();
this.txt_cs = new JTextField();
this.jLabel4 = new JLabel();
this.btn_calcular = new JButton();
this.txt_resp = new JTextField();
this.jLabel5 = new JLabel();
this.jLabel6 = new JLabel();
setDefaultCloseOperation(3);
this.txt_x1.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
Bisección.this.txt_x1ActionPerformed(evt);
}
});
this.jLabel1.setForeground(new Color(255, 255, 255));
this.jLabel1.setText("F(x)");
this.jLabel2.setForeground(new Color(255, 255, 255));
this.jLabel2.setText("X");
this.jLabel3.setForeground(new Color(240, 240, 240));
this.jLabel3.setText("X+1");
this.jLabel4.setForeground(new Color(255, 255, 255));
this.jLabel4.setText("CS");
this.btn_calcular.setText("CALCULAR");
this.btn_calcular.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
Bisección.this.btn_calcularActionPerformed(evt);
}
});
this.txt_resp.setEnabled(false);
this.jLabel5.setForeground(new Color(255, 255, 255));
this.jLabel5.setText("Raiz");
this.jLabel6.setForeground(new Color(255, 255, 255));
this.jLabel6.setText("La Función Grafica ");
GroupLayout layout = new GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(layout
.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(22, 22, 22)
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addComponent(this.jLabel2)
.addComponent(this.jLabel1))
.addGap(18, 18, 18))
.addGroup(GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
.addComponent(this.jLabel4)
.addComponent(this.jLabel3))
.addGap(18, 18, 18)))
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addComponent(this.txt_x1, -2, 66, -2)
.addComponent(this.txt_x, -2, 68, -2)
.addComponent(this.txt_funcion, -2, 165, -2))
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, -1, 32767)
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(this.btn_calcular)
.addGap(97, 97, 97))
.addGroup(GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(this.jLabel5)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(this.txt_resp, -2, 144, -2)
.addGap(34, 34, 34))))
.addGroup(layout.createSequentialGroup()
.addComponent(this.txt_cs, -2, 66, -2)
.addGap(31, 31, 31)
.addComponent(this.jLabel6)
.addGap(0, 0, 32767)))));
layout.setVerticalGroup(layout
.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(56, 56, 56)
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(this.txt_resp, -2, -1, -2)
.addComponent(this.jLabel5)))
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(this.txt_funcion, -2, -1, -2)
.addComponent(this.jLabel1)
.addComponent(this.btn_calcular))
.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(this.txt_x, -2, -1, -2)
.addComponent(this.jLabel2))
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(this.txt_x1, -2, -1, -2)
.addComponent(this.jLabel3))
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(this.txt_cs, -2, -1, -2)
.addComponent(this.jLabel4)))
.addGroup(layout.createSequentialGroup()
.addGap(17, 17, 17)
.addComponent(this.jLabel6)))))
.addContainerGap(353, 32767)));
pack();
}
double xn = 0.0D;
double f3;
double fx;
double fx1;
double temp;
double aux;
String funcion;
String cadena;
private JButton btn_calcular;
private JLabel jLabel1;
private JLabel jLabel2;
private JLabel jLabel3;
private JLabel jLabel4;
private JLabel jLabel5;
private JLabel jLabel6;
private JTextField txt_cs;
private JTextField txt_funcion;
private JTextField txt_resp;
private JTextField txt_x;
private JTextField txt_x1;
private void txt_x1ActionPerformed(ActionEvent evt) {}
private void btn_calcularActionPerformed(ActionEvent evt)
{
try
{
this.funcion = this.txt_funcion.getText();
this.x = Double.parseDouble(this.txt_x.getText());
this.x1 = Double.parseDouble(this.txt_x1.getText());
this.valor = Double.parseDouble(this.txt_cs.getText());
double cs = 0.5D * Math.pow(10.0D, 2.0D - this.valor);
if (this.x > this.x1)
{
JOptionPane.showMessageDialog(null, "NO S POSIBLE OPERAR");
}
else
{
this.cadena = derivar(this.funcion, this.x);
this.fx = this.value;
this.cadena = derivar(this.funcion, this.x1);
this.fx1 = this.value;
this.aux = (this.fx * this.fx1);
this.xr = 0.0D;
if (this.aux < 0.0D)
{
do
{
this.xr = ((this.x1 + this.x) / 2.0D);
this.xn = this.xr;
this.cadena = derivar(this.funcion, this.xr);
this.f3 = this.value;
this.cadena = derivar(this.funcion, this.x);
this.fx = this.value;
this.cadena = derivar(this.funcion, this.x1);
this.fx1 = this.value;
double au = this.fx * this.f3;
if (au < 0.0D) {
this.x1 = this.xr;
} else if (au > 0.0D) {
this.x = this.xr;
}
this.xr = ((this.x1 + this.x) / 2.0D);
this.temp = ((this.xr - this.x) / this.xr * 100.0D);
if (this.temp < 0.0D) {
this.temp *= -1.0D;
}
this.xn = this.xr;
} while (this.temp >= cs);
this.txt_resp.setText(String.valueOf(this.xr));
}
else
{
this.txt_resp.setText(String.valueOf(this.aux));
}
this.j.addVariable("x", 0.0D);
this.j.addStandardConstants();
this.j.addStandardFunctions();
this.j.parseExpression(this.funcion);
double[] x = new double[100];
double[] y = new double[100];
double xi = -10.0D;
for (int i = 0; i < 100; i++)
{
x[i] = (xi + i * 0.1D);
y[i] = evaluar(x[i]);
}
this.d.addLegend("SOUTH");
this.d.removeAllPlots();
this.d.addLinePlot(this.funcion, x, y);
}
}
catch (Exception e)
{
JOptionPane.showMessageDialog(null, "CAMPOS VACIOS");
}
}
public double evaluar(double x)
{
this.j.addVariable("x", x);
double r = this.j.getValue();
return r;
}
public static void main(String[] args)
{
try
{
for (UIManager.LookAndFeelInfo info : ) {
if ("Nimbus".equals(info.getName()))
{
UIManager.setLookAndFeel(info.getClassName());
break;
}
}
}
catch (ClassNotFoundException ex)
{
Logger.getLogger(Bisección.class.getName()).log(Level.SEVERE, null, ex);
}
catch (InstantiationException ex)
{
Logger.getLogger(Bisección.class.getName()).log(Level.SEVERE, null, ex);
}
catch (IllegalAccessException ex)
{
Logger.getLogger(Bisección.class.getName()).log(Level.SEVERE, null, ex);
}
catch (UnsupportedLookAndFeelException ex)
{
Logger.getLogger(Bisección.class.getName()).log(Level.SEVERE, null, ex);
}
EventQueue.invokeLater(new Runnable()
{
public void run()
{
new Bisección().setVisible(true);
}
});
}
}

More Related Content

Viewers also liked

Welcome to the new intranet!
Welcome to the new intranet!Welcome to the new intranet!
Welcome to the new intranet!
Comms Unit
 
Tutor Feedback forms DS Course 18-21 Nov 2013
Tutor Feedback forms DS Course 18-21 Nov 2013Tutor Feedback forms DS Course 18-21 Nov 2013
Tutor Feedback forms DS Course 18-21 Nov 2013
Nik Johnson
 
권태기앱 앱그래픽작업 최종
권태기앱 앱그래픽작업 최종권태기앱 앱그래픽작업 최종
권태기앱 앱그래픽작업 최종
jiyein
 
Tutor Feedback forms DS Course 23-26 June 2014
Tutor Feedback forms DS Course 23-26 June 2014Tutor Feedback forms DS Course 23-26 June 2014
Tutor Feedback forms DS Course 23-26 June 2014
Nik Johnson
 
Darshan Chothani_Work Profile
Darshan Chothani_Work ProfileDarshan Chothani_Work Profile
Darshan Chothani_Work Profile
Darshan Chothani
 
Think Again - Carnegie Mellon Today 2007
Think Again - Carnegie Mellon Today 2007Think Again - Carnegie Mellon Today 2007
Think Again - Carnegie Mellon Today 2007
Jonathan Szish
 

Viewers also liked (20)

10 of the Most Exotic Hotels in the World | Architectural Digest
10 of the Most Exotic Hotels in the World | Architectural Digest10 of the Most Exotic Hotels in the World | Architectural Digest
10 of the Most Exotic Hotels in the World | Architectural Digest
 
Castle Resorts & Hotels Premieres in Thailand Market; Acquires Hotel Contract...
Castle Resorts & Hotels Premieres in Thailand Market; Acquires Hotel Contract...Castle Resorts & Hotels Premieres in Thailand Market; Acquires Hotel Contract...
Castle Resorts & Hotels Premieres in Thailand Market; Acquires Hotel Contract...
 
Best uPVC sliding sash window
Best uPVC sliding sash windowBest uPVC sliding sash window
Best uPVC sliding sash window
 
Monosomias
Monosomias Monosomias
Monosomias
 
Puertas ok
Puertas okPuertas ok
Puertas ok
 
bharti
bhartibharti
bharti
 
Welcome to the new intranet!
Welcome to the new intranet!Welcome to the new intranet!
Welcome to the new intranet!
 
Development of front cover
Development of front coverDevelopment of front cover
Development of front cover
 
Tutor Feedback forms DS Course 18-21 Nov 2013
Tutor Feedback forms DS Course 18-21 Nov 2013Tutor Feedback forms DS Course 18-21 Nov 2013
Tutor Feedback forms DS Course 18-21 Nov 2013
 
Ultimate in zen luxury: Villa Yin - San Diego interior decorating
Ultimate in zen luxury: Villa Yin - San Diego interior decoratingUltimate in zen luxury: Villa Yin - San Diego interior decorating
Ultimate in zen luxury: Villa Yin - San Diego interior decorating
 
The Flair Bears Sponsorship
The Flair Bears SponsorshipThe Flair Bears Sponsorship
The Flair Bears Sponsorship
 
luisa cervera -karol soto-daniela restrepo-laura I valencia
luisa cervera -karol soto-daniela restrepo-laura I valencialuisa cervera -karol soto-daniela restrepo-laura I valencia
luisa cervera -karol soto-daniela restrepo-laura I valencia
 
권태기앱 앱그래픽작업 최종
권태기앱 앱그래픽작업 최종권태기앱 앱그래픽작업 최종
권태기앱 앱그래픽작업 최종
 
Accommodative monetary policy breathing space or breeding risks for emergin...
Accommodative monetary policy   breathing space or breeding risks for emergin...Accommodative monetary policy   breathing space or breeding risks for emergin...
Accommodative monetary policy breathing space or breeding risks for emergin...
 
2nd paper
2nd paper2nd paper
2nd paper
 
Tutor Feedback forms DS Course 23-26 June 2014
Tutor Feedback forms DS Course 23-26 June 2014Tutor Feedback forms DS Course 23-26 June 2014
Tutor Feedback forms DS Course 23-26 June 2014
 
Eje cardiaco
Eje cardiacoEje cardiaco
Eje cardiaco
 
Darshan Chothani_Work Profile
Darshan Chothani_Work ProfileDarshan Chothani_Work Profile
Darshan Chothani_Work Profile
 
Think Again - Carnegie Mellon Today 2007
Think Again - Carnegie Mellon Today 2007Think Again - Carnegie Mellon Today 2007
Think Again - Carnegie Mellon Today 2007
 
Resume Imran
Resume ImranResume Imran
Resume Imran
 

Similar to Decompiladores

Ensambladores y decompiladores (27 de abril 2016)
Ensambladores y decompiladores (27 de abril 2016)Ensambladores y decompiladores (27 de abril 2016)
Ensambladores y decompiladores (27 de abril 2016)
pilar menacho
 
WPF L02-Graphics, Binding and Animation
WPF L02-Graphics, Binding and AnimationWPF L02-Graphics, Binding and Animation
WPF L02-Graphics, Binding and Animation
Mohammad Shaker
 
WP7 HUB_Diseño del interfaz con Silverlight
WP7 HUB_Diseño del interfaz con SilverlightWP7 HUB_Diseño del interfaz con Silverlight
WP7 HUB_Diseño del interfaz con Silverlight
MICTT Palma
 
Scala+swing
Scala+swingScala+swing
Scala+swing
perneto
 

Similar to Decompiladores (20)

Investigación Ensambladores y Decompiladores
Investigación Ensambladores y DecompiladoresInvestigación Ensambladores y Decompiladores
Investigación Ensambladores y Decompiladores
 
Compiladores
CompiladoresCompiladores
Compiladores
 
Ensambladores y decompiladores (27 de abril 2016)
Ensambladores y decompiladores (27 de abril 2016)Ensambladores y decompiladores (27 de abril 2016)
Ensambladores y decompiladores (27 de abril 2016)
 
DECOMPILADORES
DECOMPILADORESDECOMPILADORES
DECOMPILADORES
 
Text Editor By Harsh Mathur.
Text Editor By Harsh Mathur.Text Editor By Harsh Mathur.
Text Editor By Harsh Mathur.
 
Instalacion Descompiladores y Ejemplos
Instalacion Descompiladores y EjemplosInstalacion Descompiladores y Ejemplos
Instalacion Descompiladores y Ejemplos
 
Poliza de vehiculo
Poliza de vehiculo Poliza de vehiculo
Poliza de vehiculo
 
Poliza de vehiculo
Poliza de vehiculoPoliza de vehiculo
Poliza de vehiculo
 
Decompilador
DecompiladorDecompilador
Decompilador
 
Vb decompilador
Vb decompiladorVb decompilador
Vb decompilador
 
Programas decompiladores
Programas decompiladoresProgramas decompiladores
Programas decompiladores
 
Instalacion decompiladores
Instalacion decompiladoresInstalacion decompiladores
Instalacion decompiladores
 
WPF L02-Graphics, Binding and Animation
WPF L02-Graphics, Binding and AnimationWPF L02-Graphics, Binding and Animation
WPF L02-Graphics, Binding and Animation
 
WP7 HUB_Diseño del interfaz con Silverlight
WP7 HUB_Diseño del interfaz con SilverlightWP7 HUB_Diseño del interfaz con Silverlight
WP7 HUB_Diseño del interfaz con Silverlight
 
Scala+swing
Scala+swingScala+swing
Scala+swing
 
Documentation For Tab Setup
Documentation For Tab SetupDocumentation For Tab Setup
Documentation For Tab Setup
 
Christopher Latham Portfolio
Christopher Latham PortfolioChristopher Latham Portfolio
Christopher Latham Portfolio
 
Javascript
JavascriptJavascript
Javascript
 
Having fun power apps components HandsOn - Power Platform World Tour Copenhag...
Having fun power apps components HandsOn - Power Platform World Tour Copenhag...Having fun power apps components HandsOn - Power Platform World Tour Copenhag...
Having fun power apps components HandsOn - Power Platform World Tour Copenhag...
 
Ensure code quality with vs2012
Ensure code quality with vs2012Ensure code quality with vs2012
Ensure code quality with vs2012
 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 

Decompiladores

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6. VERSION 5.00 Begin VB.Form Form1 Caption = "Calculadora by marco" ScaleMode = 1 AutoRedraw = False FontTransparent = True BorderStyle = 4 'Fixed ToolWindow 'Icon = n/a LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ClientLeft = 45 ClientTop = 285 ClientWidth = 3975 ClientHeight = 3195 ShowInTaskbar = 0 'False StartUpPosition = 3 'Windows Default Begin CommandButton salir Caption = "Salir" Left = 2160 Top = 2520 Width = 1695 Height = 495 TabIndex = 11 End Begin CommandButton new Caption = "Nuevo calculo" Left = 120 Top = 2520
  • 7. Width = 1695 Height = 495 TabIndex = 10 End Begin CommandButton dividir Caption = "/" Left = 3240 Top = 1800 Width = 615 Height = 495 TabIndex = 9 BeginProperty Font Name = "MS Sans Serif" Size = 13,5 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty End Begin CommandButton por Caption = "x" Left = 2160 Top = 1800 Width = 615 Height = 495 TabIndex = 8 BeginProperty Font
  • 8. Name = "MS Sans Serif" Size = 13,5 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty End Begin CommandButton restar Caption = "-" Left = 1200 Top = 1800 Width = 615 Height = 495 TabIndex = 7 BeginProperty Font Name = "MS Sans Serif" Size = 13,5 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty End Begin CommandButton sumar Caption = "+" Left = 120
  • 9. Top = 1800 Width = 615 Height = 495 TabIndex = 6 BeginProperty Font Name = "MS Sans Serif" Size = 13,5 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty End Begin TextBox res Left = 1680 Top = 1080 Width = 1215 Height = 405 TabIndex = 5 BeginProperty Font Name = "MS Sans Serif" Size = 9,75 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty
  • 10. End Begin TextBox can2 Left = 1680 Top = 600 Width = 1215 Height = 405 TabIndex = 4 BeginProperty Font Name = "MS Sans Serif" Size = 9,75 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty End Begin TextBox can1 Left = 1680 Top = 120 Width = 1215 Height = 405 TabIndex = 3 BeginProperty Font Name = "MS Sans Serif" Size = 9,75 Charset = 0 Weight = 400 Underline = 0 'False
  • 11. Italic = 0 'False Strikethrough = 0 'False EndProperty End Begin Label Label3 Caption = "Resultado" Left = 240 Top = 1200 Width = 1095 Height = 255 TabIndex = 2 BeginProperty Font Name = "MS Sans Serif" Size = 9,75 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty End Begin Label Label2 Caption = "Cantidad2" Left = 240 Top = 720 Width = 1095 Height = 615 TabIndex = 1 BeginProperty Font
  • 12. Name = "MS Sans Serif" Size = 9,75 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty End Begin Label Label1 Caption = "Cantidad1" Left = 240 Top = 240 Width = 1215 Height = 495 TabIndex = 0 BeginProperty Font Name = "MS Sans Serif" Size = 9,75 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty End End Attribute VB_Name = "Form1"
  • 13.
  • 14. VERSION 5.00 Begin VB.Form Form1 Caption = "Form1" ClientHeight = 1575 ClientLeft = 60 ClientTop = 450 ClientWidth = 3600 LinkTopic = "Form1" ScaleHeight = 1575 ScaleWidth = 3600 StartUpPosition = 3 'Windows Default Begin VB.TextBox Text3 Height = 285 Left = 120 TabIndex = 3 Text = "Text3" Top = 600 Width = 1455 End Begin VB.TextBox Text1 Height = 285 Left = 120 TabIndex = 2 Text = "Text1" Top = 120 Width = 1455 End Begin VB.CommandButton Command2 Caption = "Command2"
  • 15. Height = 255 Left = 1800 TabIndex = 1 Top = 1200 Width = 1695 End Begin VB.CommandButton Command1 Caption = "Command1" Height = 255 Left = 120 TabIndex = 0 Top = 1200 Width = 1455 End Begin VB.Label Label2 Caption = "Label2" Height = 255 Left = 1800 TabIndex = 5 Top = 600 Width = 1695 End Begin VB.Label Label1 Caption = "Label1" Height = 255 Left = 1800 TabIndex = 4 Top = 120 Width = 1695
  • 16. End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Function IntToBin(ByVal IntegerNumber As Long) IntNum = IntegerNumber Do 'Use the Mod operator to get the current binary digit from the 'Integer number TempValue = IntNum Mod 2 BinValue = CStr(TempValue) + BinValue 'Divide the current number by 2 and get the integer result IntNum = IntNum 2 Loop Until IntNum = 0 IntToBin = BinValue End Function Function BinToInt(ByVal BinaryNumber As String) 'Get the length of the binary string Length = Len(BinaryNumber)
  • 17. 'Convert each binary digit to its corresponding integer value 'and add the value to the previous sum 'The string is parsed from the right (LSB - Least Significant Bit) 'to the left (MSB - Most Significant Bit) For x = 1 To Length TempValue = TempValue + Val(Mid(BinaryNumber, Length - x + 1, 1)) * 2 ^ (x - 1) Next BinToInt = TempValue End Function Private Sub Command1_Click() 'Text1 contains the integer number. Text2 shows the binary result Label1.Caption = IntToBin(Val(Text1.Text)) End Sub Private Sub Command2_Click() 'Text3 contains the binary string. Text4 shows the integer result Label2.Caption = BinToInt(Text3.Text) End Sub
  • 18. package metodo_de_la_bisección; import java.awt.Color; import java.awt.Container; import java.awt.EventQueue; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.logging.Level; import java.util.logging.Logger;
  • 19. import javax.swing.GroupLayout; import javax.swing.GroupLayout.Alignment; import javax.swing.GroupLayout.ParallelGroup; import javax.swing.GroupLayout.SequentialGroup; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JTextField; import javax.swing.LayoutStyle.ComponentPlacement; import javax.swing.UIManager; import javax.swing.UIManager.LookAndFeelInfo; import javax.swing.UnsupportedLookAndFeelException; import org.lsmp.djep.djep.DJep; import org.math.plot.Plot2DPanel; import org.nfunk.jep.JEP; public class Bisección extends JFrame { public Bisección() { initComponents(); getContentPane().setBackground(Color.BLACK); this.d.setBounds(30, 140, 400, 320); add(this.d); } Plot2DPanel d = new Plot2DPanel(); JEP j = new JEP(); double value; double xr; double x1; double x; double valor; public String derivar(String funcion, double x) { String derivada = ""; DJep Derivar = new DJep(); Derivar.addStandardFunctions(); Derivar.addStandardConstants(); Derivar.addVariable("x", x); Derivar.addComplex(); Derivar.setAllowUndeclared(true); Derivar.setAllowAssignment(true); Derivar.parseExpression(funcion); Derivar.setImplicitMul(true); Derivar.addStandardDiffRules(); this.value = Derivar.getValue(); return derivada; } private void initComponents() { this.txt_funcion = new JTextField(); this.txt_x = new JTextField(); this.txt_x1 = new JTextField(); this.jLabel1 = new JLabel(); this.jLabel2 = new JLabel(); this.jLabel3 = new JLabel();
  • 20. this.txt_cs = new JTextField(); this.jLabel4 = new JLabel(); this.btn_calcular = new JButton(); this.txt_resp = new JTextField(); this.jLabel5 = new JLabel(); this.jLabel6 = new JLabel(); setDefaultCloseOperation(3); this.txt_x1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { Bisección.this.txt_x1ActionPerformed(evt); } }); this.jLabel1.setForeground(new Color(255, 255, 255)); this.jLabel1.setText("F(x)"); this.jLabel2.setForeground(new Color(255, 255, 255)); this.jLabel2.setText("X"); this.jLabel3.setForeground(new Color(240, 240, 240)); this.jLabel3.setText("X+1"); this.jLabel4.setForeground(new Color(255, 255, 255)); this.jLabel4.setText("CS"); this.btn_calcular.setText("CALCULAR"); this.btn_calcular.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { Bisección.this.btn_calcularActionPerformed(evt); } }); this.txt_resp.setEnabled(false); this.jLabel5.setForeground(new Color(255, 255, 255)); this.jLabel5.setText("Raiz"); this.jLabel6.setForeground(new Color(255, 255, 255)); this.jLabel6.setText("La Función Grafica "); GroupLayout layout = new GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup(layout .createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(22, 22, 22) .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addComponent(this.jLabel2) .addComponent(this.jLabel1)) .addGap(18, 18, 18)) .addGroup(GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGroup(layout.createParallelGroup(GroupLayout.Alignment.TRAILING) .addComponent(this.jLabel4) .addComponent(this.jLabel3)) .addGap(18, 18, 18)))
  • 21. .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addComponent(this.txt_x1, -2, 66, -2) .addComponent(this.txt_x, -2, 68, -2) .addComponent(this.txt_funcion, -2, 165, -2)) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, -1, 32767) .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(this.btn_calcular) .addGap(97, 97, 97)) .addGroup(GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(this.jLabel5) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(this.txt_resp, -2, 144, -2) .addGap(34, 34, 34)))) .addGroup(layout.createSequentialGroup() .addComponent(this.txt_cs, -2, 66, -2) .addGap(31, 31, 31) .addComponent(this.jLabel6) .addGap(0, 0, 32767))))); layout.setVerticalGroup(layout .createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(56, 56, 56) .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(this.txt_resp, -2, -1, -2) .addComponent(this.jLabel5))) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(this.txt_funcion, -2, -1, -2) .addComponent(this.jLabel1) .addComponent(this.btn_calcular)) .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(this.txt_x, -2, -1, -2) .addComponent(this.jLabel2)) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(this.txt_x1, -2, -1, -2) .addComponent(this.jLabel3)) .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(this.txt_cs, -2, -1, -2) .addComponent(this.jLabel4))) .addGroup(layout.createSequentialGroup() .addGap(17, 17, 17) .addComponent(this.jLabel6))))) .addContainerGap(353, 32767))); pack(); } double xn = 0.0D; double f3;
  • 22. double fx; double fx1; double temp; double aux; String funcion; String cadena; private JButton btn_calcular; private JLabel jLabel1; private JLabel jLabel2; private JLabel jLabel3; private JLabel jLabel4; private JLabel jLabel5; private JLabel jLabel6; private JTextField txt_cs; private JTextField txt_funcion; private JTextField txt_resp; private JTextField txt_x; private JTextField txt_x1; private void txt_x1ActionPerformed(ActionEvent evt) {} private void btn_calcularActionPerformed(ActionEvent evt) { try { this.funcion = this.txt_funcion.getText(); this.x = Double.parseDouble(this.txt_x.getText()); this.x1 = Double.parseDouble(this.txt_x1.getText()); this.valor = Double.parseDouble(this.txt_cs.getText()); double cs = 0.5D * Math.pow(10.0D, 2.0D - this.valor); if (this.x > this.x1) { JOptionPane.showMessageDialog(null, "NO S POSIBLE OPERAR"); } else { this.cadena = derivar(this.funcion, this.x); this.fx = this.value; this.cadena = derivar(this.funcion, this.x1); this.fx1 = this.value; this.aux = (this.fx * this.fx1); this.xr = 0.0D; if (this.aux < 0.0D) { do { this.xr = ((this.x1 + this.x) / 2.0D); this.xn = this.xr; this.cadena = derivar(this.funcion, this.xr); this.f3 = this.value; this.cadena = derivar(this.funcion, this.x); this.fx = this.value; this.cadena = derivar(this.funcion, this.x1); this.fx1 = this.value; double au = this.fx * this.f3; if (au < 0.0D) { this.x1 = this.xr; } else if (au > 0.0D) { this.x = this.xr; } this.xr = ((this.x1 + this.x) / 2.0D);
  • 23. this.temp = ((this.xr - this.x) / this.xr * 100.0D); if (this.temp < 0.0D) { this.temp *= -1.0D; } this.xn = this.xr; } while (this.temp >= cs); this.txt_resp.setText(String.valueOf(this.xr)); } else { this.txt_resp.setText(String.valueOf(this.aux)); } this.j.addVariable("x", 0.0D); this.j.addStandardConstants(); this.j.addStandardFunctions(); this.j.parseExpression(this.funcion); double[] x = new double[100]; double[] y = new double[100]; double xi = -10.0D; for (int i = 0; i < 100; i++) { x[i] = (xi + i * 0.1D); y[i] = evaluar(x[i]); } this.d.addLegend("SOUTH"); this.d.removeAllPlots(); this.d.addLinePlot(this.funcion, x, y); } } catch (Exception e) { JOptionPane.showMessageDialog(null, "CAMPOS VACIOS"); } } public double evaluar(double x) { this.j.addVariable("x", x); double r = this.j.getValue(); return r; } public static void main(String[] args) { try { for (UIManager.LookAndFeelInfo info : ) { if ("Nimbus".equals(info.getName())) { UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { Logger.getLogger(Bisección.class.getName()).log(Level.SEVERE, null, ex); } catch (InstantiationException ex) { Logger.getLogger(Bisección.class.getName()).log(Level.SEVERE, null, ex);
  • 24. } catch (IllegalAccessException ex) { Logger.getLogger(Bisección.class.getName()).log(Level.SEVERE, null, ex); } catch (UnsupportedLookAndFeelException ex) { Logger.getLogger(Bisección.class.getName()).log(Level.SEVERE, null, ex); } EventQueue.invokeLater(new Runnable() { public void run() { new Bisección().setVisible(true); } }); } }