| Line 1: |
Line 1: |
| − | car
| + | <div style="font-size:30px">''' CARTESIANPRODUCTWITHOUTFLATTEN (GivenSet1,GivenSet2) '''</div><br/> |
| | + | *<math>GivenSet1</math> and <math>GivenSet2</math> are the set of numbers to find product. |
| | + | |
| | + | ==Description== |
| | + | *This function shows the Cartesian product of two sets. |
| | + | *Cartesian product is the product of two sets. |
| | + | *The product of set X and set Y is the set that contains all ordered pairs ( x, y ) for which x belongs to X and y belongs to Y. |
| | + | *In <math>CARTESIANPRODUCTWITHOUTFLATTEN(GivenSet1,GivenSet2)</math>,<math>Givenset1</math> and <math>Givenset2</math> are two set of real numbers with a pair of numbers. |
| | + | *Consider two sets <math>\llcorner A </math> and <math>\llcorner B </math>. |
| | + | *The Cartesian product of <math>\llcorner A </math> and <math>\llcorner B </math> are denoted by <math>\llcorner AXB </math> is the set of all ordered pairs <math>\llcorner (a,b) </math> such that <math>a \in A</math> and <math>b \in B</math>. |
| | + | <math>\llcorner AXB</math> = {<math>(a,b)|a \in A,b \in B</math>} |
| | + | |
| | + | ==Examples== |
| | + | 1.CARTESIANPRODUCTWITHOUTFLATTEN([10,13,19],[-5,8,23]) |
| | + | {| class="wikitable" |
| | + | |- |
| | + | | 10 || -5 |
| | + | |- |
| | + | | 10|| 8 |
| | + | |- |
| | + | | 10 || 23 |
| | + | |- |
| | + | | 13 || -5 |
| | + | |- |
| | + | | 13 || 8 |
| | + | |- |
| | + | | 13 || 23 |
| | + | |- |
| | + | | 19 || -5 |
| | + | |- |
| | + | | 19 || 8 |
| | + | |- |
| | + | | 19 || 23 |
| | + | |} |
| | + | |
| | + | ==See Also== |
| | + | *[[Manuals/calci/CARTESIANPRODUCT | CARTESIANPRODUCT ]] |
| | + | *[[Manuals/calci/DOTPRODUCT | DOTPRODUCT ]] |
| | + | *[[Manuals/calci/CROSSPRODUCT | CROSSPRODUCT ]] |
| | + | *[[Z_API_Functions | List of Main Z Functions]] |
| | + | *[[ Z3 | Z3 home ]] |
| | + | |
| | + | ==References== |
| | + | [http://ndp.jct.ac.il/tutorials/discrete/node28.html Cartesian Product] |
| | + | |
| | + | |
| | + | |
| | + | *[[Z_API_Functions | List of Main Z Functions]] |
| | + | |
| | + | *[[ Z3 | Z3 home ]] |