@ -988,6 +988,14 @@ public class TasksFrame extends JFrame {
return x;
}
public int bin2(int a, int b)
{
int x = 0;
x = a*a - 2*a*b + b*b;
private void setupBinF()
JPanel jPanel = setupPanel("Binomisches Formel");
@ -16,6 +16,17 @@ class TasksFrameTest {
assertEquals(100,x2);
@Test
void bin2()
TasksFrame tasksFrame = new TasksFrame();
int x = tasksFrame.bin2(5,4);
assertEquals(1, x);
int x2 = tasksFrame.bin2(7,3);
assertEquals(16,x2);
void setupPI() {