==== ONE DIMENSIONAL HELMHOLTZ EQUATION ==== ==== DIRICHLET ------- NEUMANN PROBLEM ==== ---- GALERKINS WEIGHTING FUNCTION---- # OF GL INTEGRATION SAMPLING POINTS = 3 APPROXIMATING FUNCTION: U(X) = F0(X) + A1*F1(X) WHERE F0(X) = U0-SL(X/L)(1-X/L) AND F1(X) = (X/L)*(1-X/L) + (X/L) LENGTH OF DOMAIN = 0.5 NUMBER OF SEGMENTS FOR INTEGRATION = 100 DX FOR DERIVATIVE EVALUATION = 0.0005 X-COORDINATE OF LEFT END BOUNDARY = 0. X-COORDINATE OF RIGHT END BOUNDARY = 0.5 ALPHASQ = 1. NUMBER OF SEGMENTS = 100 DX FOR DERIVATIVE EVALUATION = 0.0005 U(X) AT X=0 = 1. S AT X=L = 0. H(F1,F1)= -2.399999999999757 H(F0,F1)= 0.3333333333333004 A1 = -(H(F0,F1)+S)/H(F1,F1) = 0.13888888888888923 X-COORDINATE U(X)-RIGHT-NEUMANN DU/DX EXACT 0. 1. 0.5555555555555569 1. 0.05 1.026388888888889 0.500000000000004 1.0260540050078621 0.1 1.05 0.44444444444444287 1.0495434093618006 0.15000000000000002 1.0708333333333335 0.3888888888888933 1.0704095017839756 0.2 1.088888888888889 0.3333333333333437 1.0886001279101831 0.25 1.104166666666667 0.2777777777777787 1.1040698206486024 0.30000000000000004 1.116666666666667 0.22222222222222912 1.1167799138238472 0.35000000000000003 1.126388888888889 0.16666666666666413 1.1266986388222686 0.4 1.1333333333333337 0.11111111111111456 1.1338012039969423 0.45 1.1375000000000004 0.05555555555556499 1.138069856633876 0.5 1.1388888888888893 0. 1.1394939273245492