HP Forums
solution of equations with constraints HP 50g - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: solution of equations with constraints HP 50g (/thread-21191.html)



solution of equations with constraints HP 50g - jam - 01-22-2024 01:55 AM

Greetings. I have a question. On the ti 89 calculator you could do, for example, 'solve(x^2 - 1 = 0)|x>0' to obtain the positive solution of an equation. Is it possible to do this with the hp48g or hp50g? How would it be done in agebraic mode and in rpn mode? I greatly appreciate your collaborations.


RE: solution of equations with constraints HP 50g - Namir - 01-22-2024 11:43 AM

Supply a guess x> 0 and ignore any negative x results.


RE: solution of equations with constraints HP 50g - jam - 01-22-2024 12:01 PM

(01-22-2024 11:43 AM)Namir Wrote:  Supply a guess x> 0 and ignore any negative x results.

Thanks for your answer. What you say is valid for a numerical solution, I am really interested in including the restriction, even with functions like SOLVEX in 50g, so an initial assumption would not work.


RE: solution of equations with constraints HP 50g - roem76 - 01-22-2024 12:32 PM

You could use ASSUME (and UNASSUME).

Example with ASSUME:
'X>0'
ASSUME
MSGBOX: Replacing strict with large inequality
'X>0' is replaced by 'X>=0'
'X^3-3=0'
SOLVEVX
'X=\v/3'

'X'
UNASSUME
SOLVEVX
{ 'X=-\v/3' 'X=\v/3' }

That was done with the HP50G in RPN-mode.

HTH
Roman


RE: solution of equations with constraints HP 50g - jam - 01-22-2024 01:18 PM

(01-22-2024 12:32 PM)roem76 Wrote:  You could use ASSUME (and UNASSUME).

Example with ASSUME:
'X>0'
ASSUME
MSGBOX: Replacing strict with large inequality
'X>0' is replaced by 'X>=0'
'X^3-3=0'
SOLVEVX
'X=\v/3'

'X'
UNASSUME
SOLVEVX
{ 'X=-\v/3' 'X=\v/3' }

That was done with the HP50G in RPN-mode.

HTH
Roman

thanks, it worked perfect.