[HP Prime] Solve 함수 사용법
solve 관련 기능은 CAS 모드에서 작동합니다.
1. solve
Syntax:
solve(Expr,[Var])
solve({Eq1, Eq2, ...}, [Var])
solve(Expr, Var=Guess)
solve(Expr, Var=Val .. Val2)
Returns a list of the solutions (real and complex) to a polynomial equation or a set of polynomial equations.
Example: solve(x^2‐3=1) returns {‐2,2}

2. 범위 (interval) 인자
pdf 설명서(manual 문서)에는 2개의 인자(Expr, [Var]) 만 나오지만, 3번째 인자로서 interval 내지 guess 를 추가하면 실질 적용됩니다.
계산기 내부 【Help】 화면에서는 이렇게 나옵니다.
The user is advised to supply a guess or define an interval in which to search for a solution to get the best results in cases where the solution is known to be approximate.
To supply a guess, use the syntax Var=Guess.
To supply an interval, use the syntax Var=Val1 .. Val2.
In the latter case, the search is confined to the closed interval [Val1, Val2].
해가 근사치로 알려진 경우 최상의 결과를 얻으려면, 사용자는 해를 탐색할 추정값(guess)을 제공하거나 구간(interval)을 정의하는 것이 좋습니다.
추정값을 제공하려면 Var=Guess 구문을 사용하십시오.
구간을 제공하려면 Var=Val1 .. Val2 구문을 사용하십시오.
후자의 경우(구간을 지정한 경우), 탐색은 닫힌 구간(closed interval) [Val1, Val2] 내로 제한됩니다.
Examples:
solve(x²-3=1) → {-2,2}
solve(x²-y²=0,x²-z²=0],[x,y,z]) → {[x,x,x],[x-x,-x],[x,x,-x],[x,-x,x]}
solve(x²-(LN(x)+5)=0,x=2) → 2.42617293082
solve(x²-(LN(x)+5)=0,x=2..3) → 2.42617293082

인터벌은 xmin .. xmax 형식으로 입력합니다.
원래는 띄어쓰기가 필요한데, 띄어쓰기가 없으면 자동 추가되는 듯 합니다.
이 때 Ans 형식이 { } 에서 [ ] 로 바뀌는 차이도 있습니다. '닫힌 구간에서 찾았다'는 표시일까요?
3. method, 수치해석 방식 인자?

이(바로 위) 예에서는 같은 2차 방정식인데도,
guess만 입력(x=2)하면 해 1 이 찾아지지만,
구간을 지정하면, 적절한 구간(-1 .. 2) 이더라도 해가 찾아지지 않고 빈칸만 나옵니다. [ ]
찾아지지 않는 이유가 정확한 문서로 나와 있는 것은 아닌데,
구간(interval) 입력시 수치해석 방법(method)으로 bisection(이분법) 방식으로 지정되기 때문인 듯 보입니다.
https://allcalc.org:443/board_hp/55715#comment_55751
* 이분법에서는 구간 양단에서 부호가 바뀌지 않으면 해가 찾아질 수 없습니다.
따라서 solve함수의 수치해석 방식을 지정해 주면 해결될 수도 있는데,
그 방식이 설명으로 나오지 않아 "100% 확신"은 없습니다.
그런데 마지막 인자로 ,3을 입력하면 해가 찾아지니
,3 으로 인해 iterative 방식(아마도 newton-raphson's method)이 지정되었다고
아니면 적어도 bisection 방식과는 다른 방식으로 지정되었다고 일단은 이해할 수 있겠습니다.
댓글1
-
세상의모든계산기
2^x = x^2 의 해
https://h30434.www3.hp.com/t5/Tablets-and-Mobile-Devices-Archive-Read-Only/hp-prime-calculator-Cannot-Solve-simple-equation/td-p/3606687


세상의모든계산기 님의 최근 댓글
뉴턴-랩슨 적분 방정식 시각화 v1.0 body { font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; display: flex; flex-direction: column; align-items: center; background: #f8f9fa; padding: 40px 20px; margin: 0; color: #333; } .container { background: white; padding: 40px; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.08); max-width: 900px; width: 100%; } header { border-bottom: 2px solid #f1f3f4; margin-bottom: 30px; padding-bottom: 20px; } h1 { color: #1a73e8; margin: 0 0 10px 0; font-size: 1.8em; } p.subtitle { color: #5f6368; margin: 0; font-size: 1.1em; } .equation-box { background: #f1f3f4; padding: 15px; border-radius: 10px; text-align: center; margin-bottom: 30px; font-size: 1.3em; } canvas { border: 1px solid #e0e0e0; border-radius: 12px; background: #fff; width: 100%; height: auto; display: block; } .controls { margin-top: 30px; display: flex; gap: 15px; align-items: center; justify-content: center; flex-wrap: wrap; } button { padding: 12px 25px; border: none; border-radius: 8px; background: #1a73e8; color: white; cursor: pointer; font-weight: 600; font-size: 1em; transition: all 0.2s; box-shadow: 0 2px 5px rgba(26,115,232,0.3); } button:hover { background: #1557b0; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(26,115,232,0.4); } button:active { transform: translateY(0); } button.secondary { background: #5f6368; box-shadow: 0 2px 5px rgba(0,0,0,0.2); } button.secondary:hover { background: #4a4e52; } .status-badge { background: #e8f0fe; color: #1967d2; padding: 8px 15px; border-radius: 20px; font-weight: bold; font-size: 0.9em; } .explanation { margin-top: 40px; padding: 25px; background: #fff8e1; border-left: 5px solid #ffc107; border-radius: 8px; line-height: 1.8; } .explanation h3 { margin-top: 0; color: #856404; } .math-symbol { font-family: 'Times New Roman', serif; font-style: italic; font-weight: bold; color: #d93025; } .code-snippet { background: #202124; color: #e8eaed; padding: 2px 6px; border-radius: 4px; font-family: monospace; } 📊 Newton-Raphson 적분 방정식 시뮬레이터 미분적분학의 기본 정리(FTC)를 이용한 수치해석 시각화 목표 방정식: ∫₀ᴬ (2√x) dx = 20 을 만족하는 A를 찾아라! 계산 시작 (A 추적) 초기화 현재 반복: 0회 💡 시각적 동작 원리 (Newton-Raphson & FTC) Step 1 (오차 측정): 현재 A까지 쌓인 파란색 면적이 목표치(20)와 얼마나 차이나는지 계산합니다. Step 2 (FTC의 마법): 면적의 변화율(미분)은 그 지점의 그래프 높이 f(A)와 같습니다. Step 3 (보정): 다음 A = 현재 A - (면적 오차 / 현재 높이) 공식을 사용하여 A를 이동시킵니다. 결론: 오차를 현재 높이로 나누면, 오차를 메우기 위해 필요한 가로 길이(ΔA)가 나옵니다. 이 과정을 반복하면 정답에 도달합니다! const canvas = document.getElementById('graphCanvas'); const ctx = canvas.getContext('2d'); const iterText = document.getElementById('iterText'); // 수학 설정 const targetArea = 20; const f = (x) => Math.sqrt(x) * 2; // 피적분 함수 f(x) = 2√x const F = (x) => (4/3) * Math.pow(x, 1.5); // 정적분 결과 F(x) = ∫ 2√x dx = 4/3 * x^(3/2) let A = 1.5; // 초기값 let iteration = 0; let animating = false; // 그래프 드로잉 설정 const scale = 50; const offsetX = 60; const offsetY = 380; function drawGrid() { ctx.strokeStyle = '#f1f3f4'; ctx.lineWidth = 1; ctx.beginPath(); for(let i=0; i 2026 04.11 참값 : A = ±2√5 근사값 : A≈±4.472135954999579392818347 2026 04.10 fx-570 ES 입력 결과 초기값 입력 반복 수식 입력 반복 결과 2026 04.10 파이썬 코드 검증 결과 초기값: 5.0 반복 1회차: 4.5000000000 반복 2회차: 4.4722222222 반복 3회차: 4.4721359558 반복 4회차: 4.4721359550 반복 5회차: 4.4721359550 초기값: 10.0 반복 1회차: 6.0000000000 반복 2회차: 4.6666666667 반복 3회차: 4.4761904762 반복 4회차: 4.4721377913 반복 5회차: 4.4721359550 2026 04.10 감사합니다. 주말 잘 보내세요. 2026 03.06