Examples |
Example 1. Initial data, which were subject to approximation, were generated by the function sin(2x/π)sin(2y/π) with changing values of its argument on the interval [0 , 1] with the step 0.25 for x and y.
Input file contained coordinates of 25 points: Selected values qx=0, qy=0, ex=0, ey=0.
|
Output: |
x-coordinates | y-coordinates | Given z-coordinates | Calculated z-coordinates |
0.0 | 0.0 | 0.0 | 0.0 |
0.0 | 0.25 | 0.0 | 0.0 |
0.0 | 0.5 | 0.0 | 0.0 |
0.0 | 0.75 | 0.0 | 0.0 |
0.0 | 1.0 | 0.0 | 0.0 |
0.25 | 0.0 | 0.0 | 0.0 |
0.25 | 0.25 | 0.146 | 0.14958091 |
0.25 | 0.5 | 0.271 | 0.2692286 |
0.25 | 0.75 | 0.354 | 0.35021353 |
0.25 | 1.0 | 0.383 | 0.38493684 |
0.5 | 0.0 | 0.0 | 0.0 |
0.5 | 0.25 | 0.27059805 | 0.2689886 |
0.5 | 0.5 | 0.5 | 0.50140226 |
0.5 | 0.75 | 0.6532815 | 0.65494895 |
0.5 | 1.0 | 0.70710677 | 0.70724756 |
0.75 | 0.0 | 0.0 | 0.0 |
0.75 | 0.25 | 0.35355338 | 0.3498144 |
0.75 | 0.5 | 0.6532815 | 0.6547578 |
0.75 | 0.75 | 0.8535534 | 0.8554822 |
0.75 | 1.0 | 0.9238795 | 0.92152405 |
1.0 | 0.0 | 0.0 | 0.0 |
1.0 | 0.25 | 0.38268343 | 0.38459048 |
1.0 | 0.5 | 0.70710677 | 0.7071866 |
1.0 | 0.75 | 0.9238795 | 0.92169076 |
1.0 | 1.0 | 1.0 | 1.001386 |
Excel can be used for data visualization
By selecting qx=1, qy=1, ex=1 ey=1 for the same input data, we had obtained the following
Example 2. Initial data, which were subject to approximation, were generated by the function (0.5 + Math.Sqrt(x) + y)/(1+2*Math.Sqrt(x)+0.5*y) Input file contained coordinates of 9 points: 1 1 1 2 2 2 3 3 3 1 2 3 1 2 3 1 2 3 0.714285714 0.875 1 0.673273103 0.810660172 0.922263446 0.65108474 0.774519053 0.877257154 Selected values qx=0, qy=0, ex=0, ey=0.
|
Output: |