CEILING function substitute for 35s
#1

Does anyone know a set of functions that combined, will return the same result as the CEILING function (38G)?

Will be used on the 35s.

Thanks for any ideas.

#2

For the FLOOR function: left shift-INTG-4


For the CEIL function: do the above and add 1

Edited: 11 Sept 2007, 3:36 p.m.

#3

Not really so! CEIL(x) is *equal* to FLOOR(x) if x is an integer!

I don't have a 35s yet but CEIL(x) = -FLOOR(-x), so a solution is to write a short program executing

NEG FLOOR NEG

Eduardo

#4

Quote:
For the CEIL function: do the above and add 1

Which would be wrong when the argument is an exact integer.

- Pauli

#5

Of course, the more enlightened posters above me are right!

But with that neat NEG FLOOR NEG trick everything is provided for...;-)



Possibly Related Threads…
Thread Author Replies Views Last Post
  HP50g: Writing a function that returns a function Chris de Castro 2 2,072 12-10-2013, 06:49 PM
Last Post: Han
  Any substitute for HP 41C series???? Larry Estatico 36 7,861 10-08-2010, 05:25 PM
Last Post: Martin Pinckney
  HP-97 battery pack substitute? Mike McCauley 12 2,744 10-03-2007, 04:11 PM
Last Post: geoff quickfall
  Incomplete gamma function et al. for 35s Les Wright 8 2,262 08-27-2007, 10:21 PM
Last Post: Karl Schneider
  A Sigma Function in the 35s Solver! Katie Wasserman 16 3,872 08-21-2007, 10:10 AM
Last Post: Gene Wright
  Error function 35s vs. 32SII Thomas Radtke 8 2,298 08-01-2007, 12:37 PM
Last Post: Les Wright
  Substitute Magnetic Cards for HP-97? Paul Brogger 3 1,260 03-31-2003, 08:58 PM
Last Post: Paul Brogger
  9114 substitute question Andy 0 640 02-22-2003, 10:35 PM
Last Post: andy
  x=4? Function Shawn 2 1,106 10-01-2002, 10:12 AM
Last Post: Vieira, Luiz C. (Brazil)
  Implement 'AND' function with 'XOR' function. tal 4 1,349 12-13-2000, 05:55 AM
Last Post: Steve (Australia)

Forum Jump: