Variation: two arbitrary terms
Variation: two arbitrary terms
Determine coefficients in y=aF(x)+bG(x) from two observations, then evaluate the model.
- 154 bytes
- COMP mode
Worked examples
Example 1
Original exercise. Determine coefficients in y=aF(x)+bG(x) from two observations, then evaluate the model. y=a+b x²; y(2)=19; y(4)=67. a=?, b=?, y(3)=?
Answer
Standard solution (without a calculator)
- Substitute the conditions, solve the equations, then retain only values satisfying the stated domain.
- Equation: F=1, G=x²: a+4b=19; a+16b=67.
- Calculation: 12b=48 ⇒ b=4; a=3.
- Conclusion: y(3)=3+4×9=39; y(2)=19, y(4)=67.
Example 2
Original exercise. Determine coefficients in y=aF(x)+bG(x) from two observations, then evaluate the model. y=ax²+bx; y(2)=22; y(3)=45. a=?, b=?, y(4)=?
Answer
Standard solution (without a calculator)
- Substitute the conditions, solve the equations, then retain only values satisfying the stated domain.
- Equation: F=x², G=x: 4a+2b=22; 9a+3b=45.
- Calculation: 2a+b=11; 3a+b=15 ⇒ a=4, b=3.
- Conclusion: y(4)=4×16+3×4=76; y(2)=22, y(3)=45.
Example 3
Original exercise. Determine coefficients in y=aF(x)+bG(x) from two observations, then evaluate the model. y=ax²+b/x; y(1)=−6; y(2)=18. a=?, b=?, y(−2)=?
Answer
Standard solution (without a calculator)
- Substitute the conditions, solve the equations, then retain only values satisfying the stated domain.
- Equation: F=x², G=1/x: a+b=−6; 4a+b/2=18.
- Calculation: 8a+b=36 ⇒ 7a=42 ⇒ a=6, b=−12.
- Conclusion: y(−2)=6×4+(−12)/(−2)=30; y(1)=−6, y(2)=18.
When to use it
Determine coefficients in y=aF(x)+bG(x) from two observations, then evaluate the model.
Input order
- F₁ → G₁ → y₁ → F₂ → G₂ → y₂
- Enter all fields again for every run. Blank EXE retains old memory; zero must be typed as 0EXE.
Results
- S → a → b
- All displayed values follow the output order below. A pause requires EXE; the final screen uses AC.
- S=0: unique solution, then two coefficients. S=1: no solution. S=2: nonunique coefficients. S=3: unsupported input or a determinant below the relative 10⁻¹⁰ threshold; this is a numerical refusal, not proof of no solution. All prompts require fresh entries; blank EXE retains old memory. Values within |input|≤10⁹ are recommended. Overflow can still produce Math ERROR instead of S=3. Check the original equations and variable transformation. Working variables A,B,C,D,X,Y,M and Ans may be overwritten.
Conditions and limits
- Compute the bases first, then enter F₁,G₁,y₁,F₂,G₂,y₂. The program does not infer F and G from x. For a unique solution read S=0,a,b; degenerate systems include the all-zero coefficient matrix. More than two independent unknowns and nonlinear unknown coefficients require another method.
- S=0: unique solution, then two coefficients. S=1: no solution. S=2: nonunique coefficients. S=3: unsupported input or a determinant below the relative 10⁻¹⁰ threshold; this is a numerical refusal, not proof of no solution. All prompts require fresh entries; blank EXE retains old memory. Values within |input|≤10⁹ are recommended. Overflow can still produce Math ERROR instead of S=3. Check the original equations and variable transformation. Working variables A,B,C,D,X,Y,M and Ans may be overwritten.
- The finite precision and numeric range of the calculator limit very large, very small or nearly cancelling values.
Checking access…