Difference between revisions of "Manuals/calci/FACTDOUBLE"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="4SpaceContent" align="left"><div class="ZEditBox" align=...")
 
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
<div style="font-size:30px">'''FACTDOUBLE(Number)'''</div><br/>
 +
*<math>Number</math> is a positive integer whose double factorial is to be found.
 +
**FACTDOUBLE(), returns the double factorial of a number.
  
Syntax
 
  
</div></div>
+
== Description ==
----
 
<div id="4SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Remarks
+
FACTDOUBLE(Number)
  
</div></div>
+
e.g. FACTDOUBLE(6) displays '''48''' as a result.
----
 
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples
+
*<math>Number</math> should be a positive integer.
 +
*The factorial of an even number is calculated as -
  
</div></div>
+
<math>N!! = N * (N-2) * (N-4) * .....4 * 2</math>
----
+
*The factorial of an odd number is calculated as -
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
 
----
 
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
  
<font size="5">Description</font>
+
<math>N!! = N * (N-2) * (N-4) * .....3 * 1</math>
 +
*If <math>Number</math> is negative, Calci displays #N/A error message.
 +
*If <math>Number</math> is not an integer, it is truncated to calculate the double factorial.
 +
*If <math>Number</math> is invalid, Calci displays #NULL error message.
 +
*The double factorial of series of numbers can be calculated as -
 +
e.g. FACTDOUBLE(1..5) calculates double factorial of numbers from 1 to 5 and displays result as '''1  2  3  8  15'''.
  
</div></div>
+
== Examples ==
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman"> <font size="6">FACTDOUBLE</font> </font>'''</div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><br /><div id="7Space" class="gamizbox" title="7Space"><div id="7SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="7SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="7SpaceRollupContent" align="center"></span></span></div><div id="7SpaceCover"><div id="7SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="3"><font face="Times New Roman"> '''FACTDOUBLE'''('''numr''')
 
  
Where num is the value to which double factorial is returned.
+
<div id="6SpaceContent" class="zcontent" align="left">
 +
 
 +
{| id="TABLE3" class="SpreadSheet blue"
 +
|- class="even"
 +
| class="  " | '''Function'''
 +
| class="  " | '''Output'''
 +
 
 +
|- class="odd"
 +
| class="sshl_f" |FACTDOUBLE(7)
 +
| class="sshl_f" |105
  
</font></font></div></div>
+
|- class="even"
----
+
| class="sshl_f" |FACTDOUBLE(0)
<div id="13SpaceContent" class="zcontent" align="left"><br /><br /><div id="1Space" class="gamizbox" title="1Space"><div id="1SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="1SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="1SpaceRollupContent" align="center"></span></span></div><div id="1SpaceCover"><div id="1SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">
+
| class="sshl_f" |1
  
·        FACTDOUBLE returns the error value when number is nonnumeric or negative
+
|- class="odd"
 +
| class="sshl_f" |FACTDOUBLE(4.2)
 +
| class="sshl_f" |8
  
<font size="3"><font face="Times New Roman"> </font></font>
+
|- class="even"
 +
| class="sshl_f" |FACTDOUBLE(8)
 +
| class="sshl_f" |384
 +
|}
  
Formula:-
+
==Related Videos==
  
·        If number is even, the following formula is to be used
+
{{#ev:youtube|v=XbFpuC86ouQ|280|center|FACTDOUBLE}}
  
If number is odd:
+
== See Also ==
  
</div></div>
+
*[[Manuals/calci/FACT | FACT]]
----
 
<div id="14SpaceContent" class="zcontent" align="left"><br /><br /><br /><div id="5Space" class="gamizbox" title="5Space"><div id="5SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="5SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="5SpaceRollupContent" align="center"></span></span></div><div id="5SpaceCover"><div id="5SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">It calculates the double factorial of a number.</div></div>
 
----
 
<div id="12SpaceContent" class="zcontent" align="left"><br /><br /><br /><div id="9Space" class="gamizbox" title="9Space"><div id="9SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="9SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="9SpaceRollupContent" align="center"></span></span></div><div id="9SpaceCover"><div id="9SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="3"><font face="Times New Roman"> 
 
  
Lets see an example in (Column1, Row 1)
+
==References==
  
FACTDOUBLE (numr)
+
*[http://en.wikipedia.org/wiki/Double_factorial Double Factorial]
  
FACTDOUBLE (C1R1)''''''
 
  
That is FACTDOUBLE (9) is 945
 
  
</font></font></div></div>
 
----
 
<div id="6SpaceContent" class="zcontent" align="left">
 
  
{| id="TABLE3" class="SpreadSheet blue"
+
*[[Z_API_Functions | List of Main Z Functions]]
|- class="even"
 
| class="  " |
 
<div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| Column1
 
| class="  " | Column2
 
| class="  " | Column3
 
| class="  " | Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class="  sshl_f " | 9
 
| class="sshl_f" | 945
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| class="  " | Row2
 
| class="sshl_f" |
 
| class="sshl_f SelectTD SelectTD" |
 
<div id="6Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="odd"
 
| Row3
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| Row4
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="odd"
 
| class=" " | Row5
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| Row6
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|}
 
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
*[[ Z3 |  Z3 home ]]
----
 
</div></div></div></div></div></div></div></div></div></div></div></div>
 

Latest revision as of 14:51, 20 November 2018

FACTDOUBLE(Number)


  • is a positive integer whose double factorial is to be found.
    • FACTDOUBLE(), returns the double factorial of a number.


Description

FACTDOUBLE(Number)

e.g. FACTDOUBLE(6) displays 48 as a result.

  • should be a positive integer.
  • The factorial of an even number is calculated as -

  • The factorial of an odd number is calculated as -

  • If is negative, Calci displays #N/A error message.
  • If is not an integer, it is truncated to calculate the double factorial.
  • If is invalid, Calci displays #NULL error message.
  • The double factorial of series of numbers can be calculated as -

e.g. FACTDOUBLE(1..5) calculates double factorial of numbers from 1 to 5 and displays result as 1 2 3 8 15.

Examples

Function Output
FACTDOUBLE(7) 105
FACTDOUBLE(0) 1
FACTDOUBLE(4.2) 8
FACTDOUBLE(8) 384

Related Videos

FACTDOUBLE

See Also

References