HP Forums
unable to plot UTPN - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: unable to plot UTPN (/thread-166020.html)

unable to plot UTPN - stroran - 04-19-2010


Plotting the function

<< -> X << 0 1 X LN UTPN >> >>

leads to an error message: "UTPN Error: Bad Argument Type". Any suggestions as to why this is happening?

When I store the function above in a variable V and enter it in the command line, it evaluates to a number just fine, e.g., V(1) EVAL leads to 0.5 as expected. But when I use V(X) as the function to be plotted it complains as described above.

This issue is related to having the function LN(X) as the argument to UTPN. Do I need an extra step to make sure LN(X) evaluates to whatever datatype UTPN takes?

Thank you very much for your time.

Re: unable to plot UTPN - Tim Wessman - 04-19-2010

If you are in approximate mode, then you should be fine. If not, add in a ->NUM right before the UTPN.


Re: unable to plot UTPN - stroran - 04-20-2010

Thanks Tim.

Unfortunately, I can't still get it to plot even with ->NUM. The funny thing is that

<< -> X << 0 1 X COS ->NUM UTPN >> >>
<< -> X << 0 1 X EXP ->NUM UTPN >> >>

plot as expected. However,

<< -> X << 0 1 X LN ->NUM UTPN >> >>
<< -> X << 0 1 X LOG ->NUM UTPN >> >>

refuse to plot giving "UTPN Error: Bad Argument Type". Do log functions need to be treated differently? I have an HP50g.

Re: unable to plot UTPN - Kiyoshi Akima - 04-21-2010

What's your plot range? Can x be negative? Then ln(x) is complex, and UTPN doesn't like complex numbers.