HP Forums
[HP-42s] Plotting a function to screen and 82240B. - 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: [HP-42s] Plotting a function to screen and 82240B. (/thread-222773.html)



[HP-42s] Plotting a function to screen and 82240B. - jerome ibanes - 05-23-2012

Hello,

Could somebody please send me a concrete example on how to plot a function (on a HP-42s) to the screen, for instance Sin(x) and another example on how to plot it on a 82240B?

Finally, is it possible to display, and then plot a graph composed of a sequence of numbers, i.e. Fibonacci numbers, from 1 to 100.


Thank you,
Jerome


Re: [HP-42s] Plotting a function to screen and 82240B. - Bill (Smithville, NJ) - 05-23-2012

I'm guessing that you do not have the manual? On pages 154-165 are programs for Display Plotting (DPLOT) and plotting to the printer (PLOT). If you don't have the manual, you can get a copy on the HPMUSEUM DVD set - well worth the price. The DVD also has the HP-42S Programming Examples and Techniques.

You should also check out FREE42 - a great simulator for many different computers. There's also files there for the plot routines from the manual. Links:

Free 42

HP-42 Programs (RAW Files)

The programs are raw files that can be loaded into the simulator. From there you can get the source by listing it and transferring to an actual 42S or just run it on the simulator.

Thanks to Thomas for making FREE 42 - it's on all my computers and cell phone.

Bill


Re: [HP-42s] Plotting a function to screen and 82240B. - jerome ibanes - 05-23-2012

Bill,

I have ordered the DVD yesterday. But I was hoping someone could give me pointers on how to achieve this, either on a real or virtual hp-42s. I have loaded the Plot and Dplot programs, although I do not know how to use them.

thank you.


Re: [HP-42s] Plotting a function to screen and 82240B. - LHH - 05-23-2012

I just tried Free42Decimal and in the first minute or so of initial operation SONAR (part of my Norton 360?) suddenly removed it as a security threat? Has anybody else had this problem?

LHH


Re: [HP-42s] Plotting a function to screen and 82240B. - Luiz C. Vieira (Brazil) - 05-23-2012

Hi.

In both cases you'll need to write a program with whatever you want to plot. If you want to plot Sin(x) you'd key in something like this:

LBL "FCN"
SIN
END
Yep, even if you have just a single operation to be performed, you'll need a program.

Then, after having all of them loaded - DPLOT, PLOT and the program with whatever you want to plot - execute ([XEQ]) DPLOT (for display, LCD) or PLOT (for the 82240A or 82240B) and fill the parameter variables - YMIN, YMAX, AXIS, XMIN and XMAX - with their related contents. Then the program stops and shows current label (or blank display, IIRC) of the program to be plotted. This is the point you enter the label of the program you keyed in - FCN, in this case -. Press R/S and the function is plotted.

If you are using PLOT instead, you'll also have XINC amongst the parameter variables. This is used just to define how many points (step?) will be plotted between XMIN and XMAX.

Hope this helps a bit.

Cheers.

Luiz (Brazil)

Edited: 23 May 2012, 11:21 p.m.


Re: [HP-42s] Plotting a function to screen and 82240B. - jerome ibanes - 05-23-2012

Thank you Luiz, this is precisely what I was looking for.