[Bugs] #4808 Calculate UNSP: Factorial Of a Negative Integer and decimal numbers

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Jan 15 09:44:09 EST 2015


#4808: Factorial Of a Negative Integer and decimal numbers
---------------------------------------------+-----------------------------
       Reporter:  vikramahuja1001            |       Owner:
           Type:  defect                     |      Status:  new
       Priority:  Unspecified by Maintainer  |   Milestone:  Unspecified
      Component:  Calculate                  |     Version:  Unspecified
       Severity:  Unspecified                |    Keywords:  Calculate
Distribution/OS:  Ubuntu                     |  Activity
                                             |  Bug Status:  Unconfirmed
---------------------------------------------+-----------------------------
\
\
 Even though the factorial of a negative integer is not defined, Calculate
 Activity returns the factorial of a negative integer as that negative
 integer itself.

           fac(-1)      :             -1
           fac(-2)      :              -2
           fac(-100)    :            -100

 For a number like 0.5 it did not give any information. It can give
 information like factorials are only possible for non-negative integers.
\
\
\

--
Ticket URL: <http://bugs.sugarlabs.org/ticket/4808>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list