==== DIRICHLET - DIRICHLET PROBLEM ==== ---- GALERKIN WEIGHTING FUNCTION ---- APPROXIMATING FUNCTION: F0(X)+A1*F1(X)+A2*F2(X)...... WHERE F0(X) = U(0)*X/L + U(L)*(1-X/L) F1(X) = (X/L)*(1-X/L) F2(X) = ((X/L)**K*(1-X/L))**2 F3(X) = ((X/L)**K*(1-X/L))**3 SQUARE OF ALPHA = 1. X-COORDINATE OF LEFT END BOUNDARY = 0. X-COORDINATE OF RIGHT END BOUNDARY = 1. U(0) = 1. U(L) = 1. LENGTH OF DOMAIN = 1. NUMBER OF SEGMENTS FOR INTEGRATION = 10000 DX FOR DERIVATIVE EVALUATION = 0.00001 A1= 0.5463025550937965 A2= 0.04630072819787019 A3= 0.0015674725675114138 U(X)=F0(X)+ 0.5463025550937965 *F1(X)+ 0.04630072819787019 *F2(X)+ 0.0015674725675114138 *F3(X) X-COORDINATE U(X) DU/DX EXACT(X) |U(X)-EXACT(X)| 0. 1. 0.5463025550937965 1. 0. 0.1 1.0495434085443462 0.4437398206017887 1.0495434093618006 8.174543264516387E-10 0.2 1.0886001278245094 0.336743502006647 1.0886001279101831 8.567369036427408E-11 0.30000000000000004 1.116779915046671 0.22638249502326477 1.1167799138238472 1.2228238421840842E-9 0.4 1.1338012039074816 0.1137595527778083 1.1338012039969423 8.946066110127049E-11 0.5 1.1394939260446835 0. 1.1394939273245492 1.2798657689216952E-9 0.6000000000000001 1.1338012039074816 -0.11375955277780848 1.1338012039969423 8.946066110127049E-11 0.7000000000000001 1.116779915046671 -0.22638249502221072 1.1167799138238472 1.2228238421840842E-9 0.8 1.0886001278245092 -0.33674350200444086 1.0886001279101831 8.5673912408879E-11 0.9 1.049543408544346 -0.4437398205990908 1.0495434093618004 8.174543264516387E-10 1. 1. -0.5463025550948484 1. 0.