octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #65319] use postfix ! as factorial operator


From: Rik
Subject: [Octave-bug-tracker] [bug #65319] use postfix ! as factorial operator
Date: Tue, 20 Feb 2024 00:09:35 -0500 (EST)

Update of bug#65319 (group octave):

                  Status:                    None => Wont Fix               
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

The factorial() function already exists so this would just be a slight savings
on typing.  Also, because the factorial function grows so quickly, this would
only be useful for the numbers 0-170.  Beyond that the IEEE double saturates
at Inf.  To work with the factorial of large numbers one switches to gammaln. 
In addition, Matlab doesn't use this notation for factorial so there isn't a
motivation to implement this for compatibility.  There's not much to be
gained, and the implementation cost would be high because the parser would
need to be modified to distinguish between prefix and postfix uses of the
exclamation point.  Given the small number of maintainers, their time must be
rationed on higher priority bugs.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65319>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]