Help with HP42S program input
#1

I have the following lines to input:

475 1
476 -1
477 PIXEL

I have no clue on what combination of key strokes causes a '-1' to be displayed on one line. I have tried hitting the 1 and the +/- key, that gives me two lines. I have tried the minus key followed by the number 1 and that also gives me two program lines. I have tried looking in the alpha menus and anything in there will give me the quotes around the -1...

I suspect that the lines 1 and -1 are pixel coordinates for the display so I believe that if I try to fudge this command it will have a very bad consequence.

dannyg77

#2

Hi, Danny;

the [1] followed by the [+/-] key should work; I am not sure, but you could also reverse the order.. It changes the sign of the number you are entering as a program line.

Luiz (Brazil)

Edited: 28 Mar 2005, 6:10 p.m.

#3

Input the following, considering you're at step 475:

1
ENTER
1
+/-

Then press the UP key (BST) to go back to step 476 and press the Back Arrow key (CLEAR) to clear the "ENTER".

Regards,

Gerson.

#4

Hi;

I just realized after Gerson's answer that the issue was actually separating two numbers in a program sequence without [ENTER]... Not exactly entering a negative number.

A senior moment of mine, perhaps...

Sorry!

Luiz (Brazil)

Edited: 29 Mar 2005, 7:42 a.m.

#5

Hi, Danny;

just to add that the PIXEL command (function) in the HP42S uses only two numbers as coordinates, so after the sequence:

475
1
476
-1
477
PIXEL
PIXEL will actually use both (-1) and (477) as arguments. In fact, I'm not quite sure if negative values will cause the pixel to be off the display limit OR if only the integer part is used, meaning (-1) (477) PIXEL is the same as (1) (477) PIXEL. Also, after the very sequence you mention, (475) is lost without being used as argument.

Cheers.

Luiz (Brazil)

#6

That worked quite nicely, Gerson! Very many thanks.

Dan



Possibly Related Threads…
Thread Author Replies Views Last Post
  INPUT for HP Prime Eddie W. Shore 3 1,620 11-17-2013, 04:46 PM
Last Post: Michael de Estrada
  HP Prime Tutorial #4 is up (CASE/CHOOSE/INPUT) Eddie W. Shore 1 1,285 11-15-2013, 07:32 AM
Last Post: Davi Ribeiro de Oliveira
  HP Prime: run a program in another program Davi Ribeiro de Oliveira 6 2,644 11-11-2013, 08:28 PM
Last Post: Davi Ribeiro de Oliveira
  HP Prime Programming Tutorial #3: WHILE, INPUT, KILL, REPEAT, GETKEY Eddie W. Shore 5 2,329 11-07-2013, 12:25 AM
Last Post: Han
  minor visual bug in INPUT Han 0 946 10-03-2013, 01:13 PM
Last Post: Han
  Input syntax on the Prime Gilles Carpentier 6 2,135 08-23-2013, 04:31 AM
Last Post: Gilles Carpentier
  Input CAS var on HP Prime Mic 2 1,312 08-22-2013, 02:29 PM
Last Post: Mic
  HP 85 Serial Interface; INPUT Example? inaki 1 1,232 06-12-2013, 11:09 PM
Last Post: Paul Berger (Canada)
  HP33E how to input numbers RalfGeiger 6 2,017 05-07-2013, 02:41 PM
Last Post: Ron Ross
  HP 35s - multiple program input values? Arno 3 1,620 04-29-2013, 11:27 AM
Last Post: Gerson W. Barbosa

Forum Jump: