Creation of Sets/Array in z^3

From ZCubes Wiki
Revision as of 05:21, 14 November 2016 by Sahiti (talk | contribs) (Created page with "<div style="font-size:30px">'''Tricks and Shortcuts'''</div><br/> ==Description== '''*Creating an Array''' *Comma(,) has to be used to separate the elements(especially when n...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Tricks and Shortcuts


Description

*Creating an Array

  • Comma(,) has to be used to separate the elements(especially when negative numbers are in an array). This removes the ambiguity.
For example:(without comma)
a = [1 2 3; -4*5 -4 6; 7 8 10]
This gives the answer as:
  1 2  3
-24 6
  7 8 10
with comma:
a = [1 2 3; -4*5, -4 6; 7 8 10]
  1  2	3
-20 -4	6
  7  8	10