From: Gjermund Skailand on
Hi,
"Joe Veazey" <charon(a)pluto.sol.milkyway.localcluster.universe0> wrote in
message news:Xns9824A18F4BDSleazeyWombat(a)207.115.17.102...
> There are a number of numeric functions in the HP-50g for single variable
> polynomials, that represent the polynomial as a numeric array, containing
> the coefficients of the polynomial stored in dsecending order of the
> powers
> of the variable.
>
> That is, the polynomial:
>
> (1): '4*x^3 + 0.36*x^2 - 7*x + 14'
>
> would be stored as this numeric array:
>
> (2): [4.0, 0.36, -7.0, 14.0]
>
>
> MAIN QUESTION:
> Is there a function to convert from polynomial form (1) to array form (2)
> automatically? I searched thru the documentation and I couldn't find
----
What you want to look at is FPTR2 ^VXXLext

input
polynomial
{list of variables}
->
{list of coeffisients }

E.g.
'4*x^3+ o.36*x' 'f' STO
f RCL LVAR AXL --> f { x } ./ get all variables into a list
FPTR2 ^VXXLext ./ convert to internal list

If you're using the HP49G+ you can get the FPTR2 ^VXXLext function on the
stack by entering the following ( --> is right arrow)

"CA6206007D40" H--> ./ if flag -85 is set, you'll se FPTR 6 4D7

'VXXLext' STO

But be careful, double check the string and make sure whenever you call the
function you have symbolic _expression and a list (of variables ) on stack,
there are no safeguards. Then your program would be something like this <<
LVAR AXL VXXLext >>

Best regards

Gjermund


From: Gjermund Skailand on
HI
WARNING, my hp just went plain dead. Perhaps you should not do as I
suggested. I doesn't look good. I have changed batteries, tried
paper-clip-reset, removed even the backup battery. Will let you know how it
turns out.
I had another 49g+ do something similar.
Only use is as doorstop.
Regards
Gjermund


"Gjermund Skailand" <gjermund_skailand(a)yahoo.no> wrote in message
news:SP6dnUfgSPdl0HXZ4p2dnA(a)telenor.com...
> Hi,
> "Joe Veazey" <charon(a)pluto.sol.milkyway.localcluster.universe0> wrote in
> message news:Xns9824A18F4BDSleazeyWombat(a)207.115.17.102...
>> There are a number of numeric functions in the HP-50g for single variable
>> polynomials, that represent the polynomial as a numeric array, containing
>> the coefficients of the polynomial stored in dsecending order of the
>> powers
>> of the variable.
>>
>> That is, the polynomial:
>>
>> (1): '4*x^3 + 0.36*x^2 - 7*x + 14'
>>
>> would be stored as this numeric array:
>>
>> (2): [4.0, 0.36, -7.0, 14.0]
>>
>>
>> MAIN QUESTION:
>> Is there a function to convert from polynomial form (1) to array form (2)
>> automatically? I searched thru the documentation and I couldn't find
> ----
> What you want to look at is FPTR2 ^VXXLext
>
> input
> polynomial
> {list of variables}
> ->
> {list of coeffisients }
>
> E.g.
> '4*x^3+ o.36*x' 'f' STO
> f RCL LVAR AXL --> f { x } ./ get all variables into a
> list
> FPTR2 ^VXXLext ./ convert to internal list
>
> If you're using the HP49G+ you can get the FPTR2 ^VXXLext function on the
> stack by entering the following ( --> is right arrow)
>
> "CA6206007D40" H--> ./ if flag -85 is set, you'll se FPTR 6 4D7
>
> 'VXXLext' STO
>
> But be careful, double check the string and make sure whenever you call
> the function you have symbolic _expression and a list (of variables ) on
> stack, there are no safeguards. Then your program would be something like
> this << LVAR AXL VXXLext >>
>
> Best regards
>
> Gjermund
>
>


From: Steen Schmidt on
Joe Veazey wrote:

> Is there a function to convert from polynomial form (1) to array form
> (2) automatically?

http://www.hpcalc.org/hp49/math/symbolic/polyv21.zip

Regards
Steen
From: Joe Veazey on
I want to thank everybody who replied.

There have been several useful pointers, and some nice examples extremely
tight coding in sysRPL.

I ended up writing my own last night in a hour or so, based on the example
code.

I haven't quite tested utterly thouroughly yet, so I'll post it later.
From: John H Meyers on
On Sat, 19 Aug 2006 15:52:49 -0500, Joe Veazey wrote:

> I did have one that worked fine on the HP-48G,
> but I found that just copying it over to the 50g didn't quite work,
> because of differences in the COLLECT and EXPAND cmds.

My 48G has neither COLLECT nor EXPAND
(tho it does have COLCT and EXPAN :)

[r->] [OFF]
First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4
Prev: hp 50g rom
Next: HP 50g + ROM 2.09