Variation: constant plus one term
Variation: constant plus one term
Determine the two coefficients from two values of a model that becomes y=a+bu, then evaluate the requested expression.
- 100 bytes
- COMP mode
Worked examples
Example 1
Original exercise. Determine the two coefficients from two values of a model that becomes y=a+bu, then evaluate the requested expression. y=a+bu; y(2)=11; y(5)=23. a=?, b=?, y(7)=?
Answer
Standard solution (without a calculator)
- Substitute the conditions, solve the equations, then retain only values satisfying the stated domain.
- Equation: a+2b=11; a+5b=23 ⇒ 3b=12.
- Calculation: b=4; a=11−8=3; y=3+4u.
- Conclusion: y(7)=3+4×7=31; y(2)=11, y(5)=23.
Example 2
Original exercise. Determine the two coefficients from two values of a model that becomes y=a+bu, then evaluate the requested expression. y=a+bx²; y(1)=7; y(3)=31. 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: u=x² ⇒ (u₁,y₁)=(1,7), (u₂,y₂)=(9,31).
- Calculation: 8b=31−7=24 ⇒ b=3; a=7−3=4.
- Conclusion: y(2)=4+3×2²=16; y(1)=7, y(3)=31.
Example 3
Original exercise. Determine the two coefficients from two values of a model that becomes y=a+bu, then evaluate the requested expression. y=ax²+b/x, x≠0; y(1)=−8; y(2)=10. 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: xy=ax³+b; (u,v)=(x³,xy): (1,−8),(8,20).
- Calculation: 7a=20−(−8)=28 ⇒ a=4; b=−12; v=−12+4u.
- Conclusion: y(−2)=4×4+(−12)/(−2)=22; y(1)=−8, y(2)=10.
When to use it
Determine the two coefficients from two values of a model that becomes y=a+bu, then evaluate the requested expression.
Input order
- u₁ → y₁ → u₂ → y₂
- Enter all fields again for every run. Blank EXE retains old memory; zero must be typed as 0EXE.
Results
- S → a → b
- S → b → a
- 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
- Enter u₁,y₁,u₂,y₂ after transforming the variable if needed. Output S,a,b only when S=0. If transforming xy=ax³+b, the constant output is original b and the slope is original a; map the coefficients back before evaluating y. No automatic model selection or inverse x calculation.
- 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…