[haiku-bugs] [Haiku] #7945: [Patch] Add Factorial and cube root support to deskcalc

  • From: "jscipione" <trac@xxxxxxxxxxxx>
  • Date: Thu, 25 Aug 2011 06:49:38 -0000

#7945: [Patch] Add Factorial and cube root support to deskcalc
-----------------------------------+------------------------------
 Reporter:  jscipione              |        Owner:  stippi
     Type:  enhancement            |       Status:  new
 Priority:  normal                 |    Milestone:  R1
Component:  Applications/DeskCalc  |      Version:  R1/Development
 Keywords:                         |   Blocked By:
 Blocking:                         |  Has a Patch:  0
 Platform:  All                    |
-----------------------------------+------------------------------
 Add support for factorials and cubed roots to ExpressionParser and thus to
 Deskcalc. To get a cubed root just do cbrt(expression) for example:

 {{{
 cbrt(27) = 3
 cbrt(7) = 1.91293118277
 }}}


 To use the factorial functionality put a ! after the expression. Examples:


 {{{
 0! = 1
 3! = 6
 (2*4)! = 40320
 exp(5)! = 2.277161E259
 0.5-((0.5^3)/3!)+((0.5^5)/5!)-((0.5^7)/7!) = 0.47942553323412
 pi! = 1.0876234426477
 }}}


 These are a couple of nice functions supported by MAPM that I wanted
 support for in Deskcalc.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7945>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: