#include <iostream>
using namespace std;
#include "math.h"
//#define e 2.718281828;
#define step 0.5
int W1[3][3] = { { 1, 2, 3 }, { 1, 0, 3 }, { 1, 2, -3 } };
int W2[3][2] = { { 1, 0 }, { -1, 1 }, { 1, 1 } };
int X[3] = { 1, -1, 1 };
int Y[2] = { 1, 1 };
double getf(float x)
{
double e = 2.718;
return (2 / (1 + pow(e, -x))) - 1;
}
double getJ(double *p1,int *p2,int i)
{
return p1[i] * (1 - p1[i])*(p1[i] - p2[i]);
}
void rukou()
{
double sum[3]