Difference between revisions of "Manuals/calci/GCD"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''GCD'''(Number1, Number2..............) where, '''Number1, Number2......''' - are represents number. </d...")
 
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">
+
<div style="font-size:30px">'''GCD()'''</div><br/>
 +
*Parameters are any set of integer values.
 +
**GCD(),calculates the 'Greatest Common Divisor' of two or more integers.
  
'''GCD'''(Number1, Number2..............)
+
== Description ==
  
where,
+
GCD()
  
'''Number1, Number2......''' - are represents number.
+
For Example,
  
</div>
+
GCD(25,100) ''returns 25''
----
 
<div id="1SpaceContent" class="zcontent" align="left">Returns the largest interger that divides two or more numbers without a remainder.</div>
 
----
 
<div id="7SpaceContent" class="zcontent" align="left">
 
  
If any parameters is nonnumeric, GCD returns #ERROR.
+
The divisors for '25' are 1,5,5.
  
If  Number &lt;  0 , it returns #ERROR.
+
The divisors for '100' are 1,2,2,5,5.
  
A prime number divide by itself and by 1.
+
So, common divisors are 1,5,5. Hence the GCD(25,100) is '25'.
  
One divides any value evenly.
+
*GCD value is the largest interger that divides the input numbers without a remainder.
 +
*If any 'number' is nonnumeric, Calci displays an #ERROR message.
 +
*If any 'number' is negative, Calci displays an #ERROR message.
 +
*For only one 'number' is entered, Calci assumes the second number to be '0'.
 +
*If any 'number' is not an integer, it is truncated.
  
</div>
+
== Examples ==
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
  
GCD
 
 
</div></div>
 
----
 
<div id="8SpaceContent" class="zcontent" align="left">
 
 
Lets see an example in (Column1, Row2)
 
 
<nowiki>=GCD(5,10)</nowiki>
 
 
GCD returns 5.
 
 
</div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Remarks </div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Examples </div></div>
 
----
 
<div id="11SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Description </div></div>
 
----
 
 
<div id="2SpaceContent" class="zcontent" align="left">
 
<div id="2SpaceContent" class="zcontent" align="left">
  
 
{| id="TABLE3" class="SpreadSheet blue"
 
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
|- class="even"
| class=" " |
+
|class="sshl_f" |'''Function'''
| class="   " | Column1
+
|class="sshl_f" |'''GCD Output'''
| Column2
+
 
| Column3
 
| Column4
 
 
|- class="odd"
 
|- class="odd"
| class=" " | Row1
+
|class="sshl_f" |GCD(48,64)
| class="sshl_f" | 5
+
|class="sshl_f" |16
|
+
 
|
 
|
 
 
|- class="even"
 
|- class="even"
| class=" " | Row2
+
|class="sshl_f" |GCD(125,0)
| class="       SelectTD ChangeBGColor SelectTD" |
+
|class="sshl_f" |125
<div id="2Space_Handle" class="zhandles" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="2Space_Copy" class="zhandles" title="Click and Drag over to AutoFill other cells."></div><div id="2Space_Drag" class="zhandles" title="Click and Drag to Move/Copy Area.">[[Image:copy-cube.gif]]  </div>
+
 
|
 
|
 
|
 
 
|- class="odd"
 
|- class="odd"
| Row3
+
|class="sshl_f" |GCD(125,5)
|
+
|class="sshl_f" |5
|
+
 
|
 
|
 
 
|- class="even"
 
|- class="even"
| Row4
+
|class="sshl_f" |GCD(125,5.5)
|
+
|class="sshl_f" |5
|
+
 
|
 
|
 
 
|- class="odd"
 
|- class="odd"
| class=" " | Row5
+
|class="sshl_f" |GCD(0.8,2)
|
+
|class="sshl_f" |2
|
 
|
 
|
 
|- class="even"
 
| Row6
 
| class="sshl_f " |
 
|
 
|
 
|
 
 
|}
 
|}
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
==Related Videos==
----
+
 
 +
{{#ev:youtube|jFd-6EPfnec|280|center|GCD}}
 +
 
 +
== See Also ==
 +
 
 +
*[[Manuals/calci/LCM | LCM]]
 +
 
 +
==References==
 +
 
 +
*[http://en.wikipedia.org/wiki/Greatest_common_divisor Greatest Common Divisor]
 +
 
 +
 
 +
 
 +
 
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 17:23, 17 August 2018

GCD()


  • Parameters are any set of integer values.
    • GCD(),calculates the 'Greatest Common Divisor' of two or more integers.

Description

GCD()

For Example,

GCD(25,100) returns 25

The divisors for '25' are 1,5,5.

The divisors for '100' are 1,2,2,5,5.

So, common divisors are 1,5,5. Hence the GCD(25,100) is '25'.

  • GCD value is the largest interger that divides the input numbers without a remainder.
  • If any 'number' is nonnumeric, Calci displays an #ERROR message.
  • If any 'number' is negative, Calci displays an #ERROR message.
  • For only one 'number' is entered, Calci assumes the second number to be '0'.
  • If any 'number' is not an integer, it is truncated.

Examples

Function GCD Output
GCD(48,64) 16
GCD(125,0) 125
GCD(125,5) 5
GCD(125,5.5) 5
GCD(0.8,2) 2

Related Videos

GCD

See Also

References