hp49g+ bug? Combinations, sums, and equivalence



#8

The following is true:
COMB(n, 2) + n = Sum of all integers from 1 to n

i.e. if n = 5

COMB(5, 2) + 5 = 5! ÷ (3!*2!) + 5 = 10 + 5 = 15
and
1 + 2 + 3 + 4 + 5 = 15

However, when I input
'COMB(5,2) + 5' on one level,
and '[Capital Sigma symbol](X=1,5,X)' on the other,
and I execute the == command on the Program-Test Menu, I get a 0 as a result (incorrect result)

Both objects inputed are same type (9 - algebriac expressions?).

A bug in the 49g+ CAS perhaps.


#9

Strange:
In the stack I can't recreate your bug: I do:
Experssion 1 [ENTER]
Expression 2 [ENTER]
== [EVAL] I get 1.

If I put the same in a program, I get 0.

Arnaud

#10

Hi,

the 0 doesn't mean 'incorrect result'.

The result is correct, the expressions are simply not the same,

as you can easily see on the stack.

Maybe it also depends on the status of the evaluation flags,

this may be a case for RTFM;-)

Raymond


#11

*NM*


#12

RTFM ~ Read The 'Fascinating' Manual...;-)

As VPN pointed out, the result seems to depend on either the mode,

and/or the type of arguments.

Raymond


#13

Which is actually taken as a friendly reminder or suggesttion among friends. It only shows irritation when you get to, "RTFM-41" which means, "read the "funny" manual for once!"

Another version is RTFD41 for which "D" stands for "drawing" as in mechanical drawing.

regards,

Bill

#14

Seems to be one of the "features of the calc

Using Approx ~ mode or reals (5.) will give the correct answer.

[VPN]


Possibly Related Threads...
Thread Author Replies Views Last Post
  combinations of k bits wp34s Andrew Nikitin 11 683 09-02-2013, 07:32 PM
Last Post: mjcohen
  Question about a "combinations" algorithm Namir 9 540 09-20-2012, 04:51 PM
Last Post: Gilles Carpentier
  HP-50G CAS Sums problem x34 4 321 10-12-2011, 12:45 PM
Last Post: Crawl
  transistor equivalence Alberto Fenini 6 435 01-24-2011, 04:42 PM
Last Post: Alberto Fenini
  HP49G+ and HP49G compatibility Les Wright 17 948 06-02-2006, 08:23 PM
Last Post: James M. Prange (Michigan)
  HP49G and HP49G+ emualtor Harry 4 351 12-05-2004, 09:11 PM
Last Post: Vieira, Luiz C. (Brazil)
  HP49G+ Bug? Eddie Shore 1 196 08-11-2004, 02:40 AM
Last Post: Vieira, Luiz C. (Brazil)
  HP49G+ vs. HP49G, pausing F. Casanellas 6 435 09-20-2003, 11:35 PM
Last Post: Ed Look
  HP49G IF-structure bug? Juergen Rodenkirchen 13 1,015 04-13-2003, 03:52 PM
Last Post: Juergen Rodenkirchen (GER)
  Combinations and permutation limits on Calculators JaSon 5 263 03-04-2003, 03:14 AM
Last Post: R Lion

Forum Jump: