UTPN in the solver



#7

Hi,
I like to enter the following equation in the singe equation solver:

'p=UTPN(µ, B, x)' but I still get "invalid syntax".

I tried it on the 50g and on the 48gx. Does this look familiar to somebody?

Thanks,

Benny


#8

Hi Benny,

Quote:
Hi,
I like to enter the following equation in the singe equation solver:

'p=UTPN(µ, B, x)' but I still get "invalid syntax".

I tried it on the 50g and on the 48gx. Does this look familiar to somebody?


Sure, it's because UTPN is implemented only as a postfix RPN command, not as
an algebraic function, thus it can be used an an "immediate" RPN command with
the arguments already on the stack, or as a command within a program, but not
as a function within an algebraic object.

You can, however, make your own user-defined function with the UTPN command.
Write the program:

\<< \-> m v x \<< m v x UTPN \>>
and store it in a global variable with any valid global name that you choose
to use. If you use, for example, the name 'Utpn' for the variable, then you
can use it as either a postfix RPN command with the syntax m v x Utpn, or
within an algebraic object with the syntax 'Utpn(m,v,x)', where m, v, and x
represent the mean, variance, and a given value of a normal distribution.

Regards,
James


#9

Quote:
Sure, it's because UTPN is implemented only as a postfix RPN command, not as
an algebraic function

No. In ALG mode you can use it this way: UTPN(1.2,0.5,0.75)


#10

Quote:
No. In ALG mode you can use it this way: UTPN(1.2,0.5,0.75)

Ah, good point. I'll take your word for that. I often forget that the 49 series has an ALG mode.

Regards,
James

#11

Thanks a lot James,

That does the job.
I was confused because I took the example of the 49G+/50g manual where the command is used straight away in the single equation solver (see page 17-16 in the user's guide).

Kind regards,

Benny


#12

I suppose that the manual was assuming ALG mode, which I'd forgotten about.

Another way to use UTPN while in RPN mode would be to enclose the expression in "back-ticks", which tells the 49 series to treat it as it would in ALG mode. For example, `UTPN(m,v,x)` works just fine.

To key in a "`" character on a 49 series, hold down the Right-Shift key while pressing th "'" ("O") key (without being in ALPHA mode).

Regards,
James

Edited: 11 Dec 2007, 6:21 p.m.


Possibly Related Threads…
Thread Author Replies Views Last Post
  hp-prime solver and variable name fabrice48 22 8,169 12-10-2013, 03:25 AM
Last Post: fabrice48
  HP Prime Triangle solver BruceH 29 8,433 11-28-2013, 12:03 AM
Last Post: Dale Reed
  Using units in Numeric Solver Harold A Climer 1 1,251 10-13-2013, 10:44 AM
Last Post: Tim Wessman
  Does Prime Have a Multiple Equation Solver? Norman Dziedzic 2 1,349 09-20-2013, 09:43 AM
Last Post: Norman Dziedzic
  Just a lazy solver algortihm PGILLET 1 1,048 06-28-2013, 11:47 PM
Last Post: Namir
  [43s] : How the solver will be implemented Miguel Toro 3 1,568 03-14-2013, 06:09 PM
Last Post: Walter B
  TVM-Solver for the PC fhub 14 3,891 12-26-2012, 03:24 PM
Last Post: fhub
  [WP34s] New TVM-solver version fhub 43 10,618 12-26-2012, 06:12 AM
Last Post: fhub
  HP-Solver Mike (Stgt) 2 1,109 10-10-2012, 02:44 AM
Last Post: Mike (Stgt)
  WP34S solver question Reth 22 5,932 07-13-2012, 06:55 PM
Last Post: Paul Dale

Forum Jump: