Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

At matrix division

Language: Layout:
+ ] Show input
Absolute running time: 0.52 sec, cpu time: 1.04 sec, memory peak: 45 Mb, absolute service time: 0,69 sec 
edit mode |  history  | discussion
Error(s), warning(s):
Warning message:
In matrix(1:10, nrow = 4) :
  data length [10] is not a sub-multiple or multiple of the number of rows [4]
Warning message:
In matrix(1:13, nrow = 4) :
  data length [13] is not a sub-multiple or multiple of the number of rows [4]
Warning message:
In matrix(1:13, ncol = 3) :
  data length [13] is not a sub-multiple or multiple of the number of rows [5]
Warning message:
In matrix(c(2, 5, 7, 1, 4, 6, 9, 0, 3, 1), ncol = 3) :
  data length [10] is not a sub-multiple or multiple of the number of rows [4]
Warning message:
In matrix(c(T, T, F, T, F, F, 9, 0, 3, 1), ncol = 3) :
  data length [10] is not a sub-multiple or multiple of the number of rows [4]
Warning message:
In matrix(c(1, 3, 5, 6, 9, 6, 7), ncol = 3) :
  data length [7] is not a sub-multiple or multiple of the number of rows [3]
Warning message:
In matrix(1:8, ncol = 3) :
  data length [8] is not a sub-multiple or multiple of the number of rows [3]
Warning message:
In matrix(v12, nrow = 3) :
  data length [10] is not a sub-multiple or multiple of the number of rows [3]
Error in A %*% A : non-conformable arguments
Execution halted
[1] "Hello, world!"
[1] "Praveen k Yadav 2277"
[1] "PRACTICAL 1:- R as a calculator"
log                    package:base                    R Documentation

_L_o_g_a_r_i_t_h_m_s _a_n_d _E_x_p_o_n_e_n_t_i_a_l_s

_D_e_s_c_r_i_p_t_i_o_n:

     ‘log’ computes logarithms, by default natural logarithms, ‘log10’
     computes common (i.e., base 10) logarithms, and ‘log2’ computes
     binary (i.e., base 2) logarithms.  The general form ‘log(x, base)’
     computes logarithms with base ‘base’.

     ‘log1p(x)’ computes log(1+x) accurately also for |x| << 1.

     ‘exp’ computes the exponential function.

     ‘expm1(x)’ computes exp(x) - 1 accurately also for |x| << 1.

_U_s_a_g_e:

     log(x, base = exp(1))
     logb(x, base = exp(1))
     log10(x)
     log2(x)
     
     log1p(x)
     
     exp(x)
     expm1(x)
     
_A_r_g_u_m_e_n_t_s:

       x: a numeric or complex vector.

    base: a positive or complex number: the base with respect to which
          logarithms are computed.  Defaults to e=‘exp(1)’.

_D_e_t_a_i_l_s:

     All except ‘logb’ are generic functions: methods can be defined
     for them individually or via the ‘Math’ group generic.

     ‘log10’ and ‘log2’ are only convenience wrappers, but logs to
     bases 10 and 2 (whether computed _via_ ‘log’ or the wrappers) will
     be computed more efficiently and accurately where supported by the
     OS.  Methods can be set for them individually (and otherwise
     methods for ‘log’ will be used).

     ‘logb’ is a wrapper for ‘log’ for compatibility with S.  If (S3 or
     S4) methods are set for ‘log’ they will be dispatched.  Do not set
     S4 methods on ‘logb’ itself.

     All except ‘log’ are primitive functions.

_V_a_l_u_e:

     A vector of the same length as ‘x’ containing the transformed
     values.  ‘log(0)’ gives ‘-Inf’, and ‘log(x)’ for negative values
     of ‘x’ is ‘NaN’.  ‘exp(-Inf)’ is ‘0’.

     For complex inputs to the log functions, the value is a complex
     number with imaginary part in the range [-pi, pi]: which end of
     the range is used might be platform-specific.

_S_4 _m_e_t_h_o_d_s:

     ‘exp’, ‘expm1’, ‘log’, ‘log10’, ‘log2’ and ‘log1p’ are S4 generic
     and are members of the ‘Math’ group generic.

     Note that this means that the S4 generic for ‘log’ has a signature
     with only one argument, ‘x’, but that ‘base’ can be passed to
     methods (but will not be used for method selection).  On the other
     hand, if you only set a method for the ‘Math’ group generic then
     ‘base’ argument of ‘log’ will be ignored for your class.

_S_o_u_r_c_e:

     ‘log1p’ and ‘expm1’ may be taken from the operating system, but if
     not available there then they are based on the Fortran subroutine
     ‘dlnrel’ by W. Fullerton of Los Alamos Scientific Laboratory (see
     <URL: http://www.netlib.org/slatec/fnlib/dlnrel.f>) and (for small
     x) a single Newton step for the solution of ‘log1p(y) = x’
     respectively.

_R_e_f_e_r_e_n_c_e_s:

     Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) _The New S
     Language_.  Wadsworth & Brooks/Cole.  (for ‘log’, ‘log10’ and
     ‘exp’.)

     Chambers, J. M. (1998) _Programming with Data.  A Guide to the S
     Language_.  Springer. (for ‘logb’.)

_S_e_e _A_l_s_o:

     ‘Trig’, ‘sqrt’, ‘Arithmetic’.

_E_x_a_m_p_l_e_s:

     log(exp(3))
     log10(1e7) # = 7
     
     x <- 10^-(1+2*1:9)
     cbind(x, log(1+x), log1p(x), exp(x)-1, expm1(x))
     

[1] 2.302585
[1] Inf
[1] 0
MathFun                  package:base                  R Documentation

_M_i_s_c_e_l_l_a_n_e_o_u_s _M_a_t_h_e_m_a_t_i_c_a_l _F_u_n_c_t_i_o_n_s

_D_e_s_c_r_i_p_t_i_o_n:

     ‘abs(x)’ computes the absolute value of x, ‘sqrt(x)’ computes the
     (principal) square root of x, sqrt{x}.

     The naming follows the standard for computer languages such as C
     or Fortran.

_U_s_a_g_e:

     abs(x)
     sqrt(x)
     
_A_r_g_u_m_e_n_t_s:

       x: a numeric or ‘complex’ vector or array.

_D_e_t_a_i_l_s:

     These are internal generic primitive functions: methods can be
     defined for them individually or via the ‘Math’ group generic.
     For complex arguments (and the default method), ‘z’, ‘abs(z) ==
     Mod(z)’ and ‘sqrt(z) == z^0.5’.

     ‘abs(x)’ returns an ‘integer’ vector when ‘x’ is ‘integer’ or
     ‘logical’.

_S_4 _m_e_t_h_o_d_s:

     Both are S4 generic and members of the ���Math’ group generic.

_R_e_f_e_r_e_n_c_e_s:

     Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) _The New S
     Language_.  Wadsworth & Brooks/Cole.

_S_e_e _A_l_s_o:

     ‘Arithmetic’ for simple, ‘log’ for logarithmic, ‘sin’ for
     trigonometric, and ‘Special’ for special mathematical functions.

     ‘plotmath’ for the use of ‘sqrt’ in plot annotation.

_E_x_a_m_p_l_e_s:

     require(stats) # for spline
     require(graphics)
     xx <- -9:9
     plot(xx, sqrt(abs(xx)),  col = "red")
     lines(spline(xx, sqrt(abs(xx)), n=101), col = "pink")
     

[1] 11.18034
[1] 25
[1] 1
[1] 1.25
[1] 24
[1] 39
[1] 4493
[1] "a" "b" "c"
character(0)
[1] 6
[1] "numeric"
[1] 3.8
[1] "numeric"
[1] 1 2 5
[1] "numeric"
 [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20
[1] "integer"
[1] "Hello world"
[1] "character"
[1] "VECTOR TYPE"
[1] FALSE FALSE FALSE
[1] FALSE FALSE FALSE FALSE FALSE
[1] FALSE FALSE  TRUE  TRUE  TRUE
[1] "logical"
[1] "MATRIX DATA TYPES"
     [,1] [,2] [,3]
[1,]    1    4    7
[2,]    2    5    8
[3,]    3    6    9
     [,1] [,2] [,3]
[1,]    1    5    9
[2,]    2    6   10
[3,]    3    7    1
[4,]    4    8    2
     [,1] [,2]
[1,]    1    5
[2,]    2    6
[3,]    3    7
[4,]    4    8
     [,1] [,2] [,3] [,4]
[1,]    1    5    9   13
[2,]    2    6   10    1
[3,]    3    7   11    2
[4,]    4    8   12    3
     [,1] [,2] [,3]
[1,]    1    6   11
[2,]    2    7   12
[3,]    3    8   13
[4,]    4    9    1
[5,]    5   10    2
     [,1] [,2] [,3]
[1,]    2    4    3
[2,]    5    6    1
[3,]    7    9    2
[4,]    1    0    5
     [,1] [,2] [,3]
[1,]    1    0    3
[2,]    1    0    1
[3,]    0    9    1
[4,]    1    0    1
      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13]
 [1,]    1   21   41   61   81  101  121  141  161   181   201   221   241
 [2,]    2   22   42   62   82  102  122  142  162   182   202   222   242
 [3,]    3   23   43   63   83  103  123  143  163   183   203   223   243
 [4,]    4   24   44   64   84  104  124  144  164   184   204   224   244
 [5,]    5   25   45   65   85  105  125  145  165   185   205   225   245
 [6,]    6   26   46   66   86  106  126  146  166   186   206   226   246
 [7,]    7   27   47   67   87  107  127  147  167   187   207   227   247
 [8,]    8   28   48   68   88  108  128  148  168   188   208   228   248
 [9,]    9   29   49   69   89  109  129  149  169   189   209   229   249
[10,]   10   30   50   70   90  110  130  150  170   190   210   230   250
[11,]   11   31   51   71   91  111  131  151  171   191   211   231   251
[12,]   12   32   52   72   92  112  132  152  172   192   212   232   252
[13,]   13   33   53   73   93  113  133  153  173   193   213   233   253
[14,]   14   34   54   74   94  114  134  154  174   194   214   234   254
[15,]   15   35   55   75   95  115  135  155  175   195   215   235   255
[16,]   16   36   56   76   96  116  136  156  176   196   216   236   256
[17,]   17   37   57   77   97  117  137  157  177   197   217   237   257
[18,]   18   38   58   78   98  118  138  158  178   198   218   238   258
[19,]   19   39   59   79   99  119  139  159  179   199   219   239   259
[20,]   20   40   60   80  100  120  140  160  180   200   220   240   260
      [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25]
 [1,]   261   281   301   321   341   361   381   401   421   441   461   481
 [2,]   262   282   302   322   342   362   382   402   422   442   462   482
 [3,]   263   283   303   323   343   363   383   403   423   443   463   483
 [4,]   264   284   304   324   344   364   384   404   424   444   464   484
 [5,]   265   285   305   325   345   365   385   405   425   445   465   485
 [6,]   266   286   306   326   346   366   386   406   426   446   466   486
 [7,]   267   287   307   327   347   367   387   407   427   447   467   487
 [8,]   268   288   308   328   348   368   388   408   428   448   468   488
 [9,]   269   289   309   329   349   369   389   409   429   449   469   489
[10,]   270   290   310   330   350   370   390   410   430   450   470   490
[11,]   271   291   311   331   351   371   391   411   431   451   471   491
[12,]   272   292   312   332   352   372   392   412   432   452   472   492
[13,]   273   293   313   333   353   373   393   413   433   453   473   493
[14,]   274   294   314   334   354   374   394   414   434   454   474   494
[15,]   275   295   315   335   355   375   395   415   435   455   475   495
[16,]   276   296   316   336   356   376   396   416   436   456   476   496
[17,]   277   297   317   337   357   377   397   417   437   457   477   497
[18,]   278   298   318   338   358   378   398   418   438   458   478   498
[19,]   279   299   319   339   359   379   399   419   439   459   479   499
[20,]   280   300   320   340   360   380   400   420   440   460   480   500
      [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37]
 [1,]   501   521   541   561   581   601   621   641   661   681   701   721
 [2,]   502   522   542   562   582   602   622   642   662   682   702   722
 [3,]   503   523   543   563   583   603   623   643   663   683   703   723
 [4,]   504   524   544   564   584   604   624   644   664   684   704   724
 [5,]   505   525   545   565   585   605   625   645   665   685   705   725
 [6,]   506   526   546   566   586   606   626   646   666   686   706   726
 [7,]   507   527   547   567   587   607   627   647   667   687   707   727
 [8,]   508   528   548   568   588   608   628   648   668   688   708   728
 [9,]   509   529   549   569   589   609   629   649   669   689   709   729
[10,]   510   530   550   570   590   610   630   650   670   690   710   730
[11,]   511   531   551   571   591   611   631   651   671   691   711   731
[12,]   512   532   552   572   592   612   632   652   672   692   712   732
[13,]   513   533   553   573   593   613   633   653   673   693   713   733
[14,]   514   534   554   574   594   614   634   654   674   694   714   734
[15,]   515   535   555   575   595   615   635   655   675   695   715   735
[16,]   516   536   556   576   596   616   636   656   676   696   716   736
[17,]   517   537   557   577   597   617   637   657   677   697   717   737
[18,]   518   538   558   578   598   618   638   658   678   698   718   738
[19,]   519   539   559   579   599   619   639   659   679   699   719   739
[20,]   520   540   560   580   600   620   640   660   680   700   720   740
      [,38] [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49]
 [1,]   741   761   781   801   821   841   861   881   901   921   941   961
 [2,]   742   762   782   802   822   842   862   882   902   922   942   962
 [3,]   743   763   783   803   823   843   863   883   903   923   943   963
 [4,]   744   764   784   804   824   844   864   884   904   924   944   964
 [5,]   745   765   785   805   825   845   865   885   905   925   945   965
 [6,]   746   766   786   806   826   846   866   886   906   926   946   966
 [7,]   747   767   787   807   827   847   867   887   907   927   947   967
 [8,]   748   768   788   808   828   848   868   888   908   928   948   968
 [9,]   749   769   789   809   829   849   869   889   909   929   949   969
[10,]   750   770   790   810   830   850   870   890   910   930   950   970
[11,]   751   771   791   811   831   851   871   891   911   931   951   971
[12,]   752   772   792   812   832   852   872   892   912   932   952   972
[13,]   753   773   793   813   833   853   873   893   913   933   953   973
[14,]   754   774   794   814   834   854   874   894   914   934   954   974
[15,]   755   775   795   815   835   855   875   895   915   935   955   975
[16,]   756   776   796   816   836   856   876   896   916   936   956   976
[17,]   757   777   797   817   837   857   877   897   917   937   957   977
[18,]   758   778   798   818   838   858   878   898   918   938   958   978
[19,]   759   779   799   819   839   859   879   899   919   939   959   979
[20,]   760   780   800   820   840   860   880   900   920   940   960   980
      [,50]
 [1,]   981
 [2,]   982
 [3,]   983
 [4,]   984
 [5,]   985
 [6,]   986
 [7,]   987
 [8,]   988
 [9,]   989
[10,]   990
[11,]   991
[12,]   992
[13,]   993
[14,]   994
[15,]   995
[16,]   996
[17,]   997
[18,]   998
[19,]   999
[20,]  1000
 [1]   6  26  46  66  86 106 126 146 166 186 206 226 246 266 286 306 326 346 366
[20] 386 406 426 446 466 486 506 526 546 566 586 606 626 646 666 686 706 726 746
[39] 766 786 806 826 846 866 886 906 926 946 966 986
 [1] 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799
[20] 800
[1] 66
[1] "matrix"
[1] "ARRAY DATA TYPE"
, , 1

     [,1] [,2]
[1,]    1    5
[2,]    2    6
[3,]    3    7
[4,]    4    8

, , 2

     [,1] [,2]
[1,]    9   13
[2,]   10   14
[3,]   11   15
[4,]   12   16

, , 1

      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
 [1,]    1   11   21   31   41   51   61   71   81    91
 [2,]    2   12   22   32   42   52   62   72   82    92
 [3,]    3   13   23   33   43   53   63   73   83    93
 [4,]    4   14   24   34   44   54   64   74   84    94
 [5,]    5   15   25   35   45   55   65   75   85    95
 [6,]    6   16   26   36   46   56   66   76   86    96
 [7,]    7   17   27   37   47   57   67   77   87    97
 [8,]    8   18   28   38   48   58   68   78   88    98
 [9,]    9   19   29   39   49   59   69   79   89    99
[10,]   10   20   30   40   50   60   70   80   90   100

, , 2

      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
 [1,]  101  111  121  131  141  151  161  171  181   191
 [2,]  102  112  122  132  142  152  162  172  182   192
 [3,]  103  113  123  133  143  153  163  173  183   193
 [4,]  104  114  124  134  144  154  164  174  184   194
 [5,]  105  115  125  135  145  155  165  175  185   195
 [6,]  106  116  126  136  146  156  166  176  186   196
 [7,]  107  117  127  137  147  157  167  177  187   197
 [8,]  108  118  128  138  148  158  168  178  188   198
 [9,]  109  119  129  139  149  159  169  179  189   199
[10,]  110  120  130  140  150  160  170  180  190   200

, , 3

      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
 [1,]  201  211  221  231  241  251  261  271  281   291
 [2,]  202  212  222  232  242  252  262  272  282   292
 [3,]  203  213  223  233  243  253  263  273  283   293
 [4,]  204  214  224  234  244  254  264  274  284   294
 [5,]  205  215  225  235  245  255  265  275  285   295
 [6,]  206  216  226  236  246  256  266  276  286   296
 [7,]  207  217  227  237  247  257  267  277  287   297
 [8,]  208  218  228  238  248  258  268  278  288   298
 [9,]  209  219  229  239  249  259  269  279  289   299
[10,]  210  220  230  240  250  260  270  280  290   300

, , 4

      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
 [1,]  301  311  321  331  341  351  361  371  381   391
 [2,]  302  312  322  332  342  352  362  372  382   392
 [3,]  303  313  323  333  343  353  363  373  383   393
 [4,]  304  314  324  334  344  354  364  374  384   394
 [5,]  305  315  325  335  345  355  365  375  385   395
 [6,]  306  316  326  336  346  356  366  376  386   396
 [7,]  307  317  327  337  347  357  367  377  387   397
 [8,]  308  318  328  338  348  358  368  378  388   398
 [9,]  309  319  329  339  349  359  369  379  389   399
[10,]  310  320  330  340  350  360  370  380  390   400

, , 5

      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
 [1,]  401  411  421  431  441  451  461  471  481   491
 [2,]  402  412  422  432  442  452  462  472  482   492
 [3,]  403  413  423  433  443  453  463  473  483   493
 [4,]  404  414  424  434  444  454  464  474  484   494
 [5,]  405  415  425  435  445  455  465  475  485   495
 [6,]  406  416  426  436  446  456  466  476  486   496
 [7,]  407  417  427  437  447  457  467  477  487   497
 [8,]  408  418  428  438  448  458  468  478  488   498
 [9,]  409  419  429  439  449  459  469  479  489   499
[10,]  410  420  430  440  450  460  470  480  490   500

, , 6

      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
 [1,]  501  511  521  531  541  551  561  571  581   591
 [2,]  502  512  522  532  542  552  562  572  582   592
 [3,]  503  513  523  533  543  553  563  573  583   593
 [4,]  504  514  524  534  544  554  564  574  584   594
 [5,]  505  515  525  535  545  555  565  575  585   595
 [6,]  506  516  526  536  546  556  566  576  586   596
 [7,]  507  517  527  537  547  557  567  577  587   597
 [8,]  508  518  528  538  548  558  568  578  588   598
 [9,]  509  519  529  539  549  559  569  579  589   599
[10,]  510  520  530  540  550  560  570  580  590   600

, , 7

      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
 [1,]  601  611  621  631  641  651  661  671  681   691
 [2,]  602  612  622  632  642  652  662  672  682   692
 [3,]  603  613  623  633  643  653  663  673  683   693
 [4,]  604  614  624  634  644  654  664  674  684   694
 [5,]  605  615  625  635  645  655  665  675  685   695
 [6,]  606  616  626  636  646  656  666  676  686   696
 [7,]  607  617  627  637  647  657  667  677  687   697
 [8,]  608  618  628  638  648  658  668  678  688   698
 [9,]  609  619  629  639  649  659  669  679  689   699
[10,]  610  620  630  640  650  660  670  680  690   700

, , 8

      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
 [1,]  701  711  721  731  741  751  761  771  781   791
 [2,]  702  712  722  732  742  752  762  772  782   792
 [3,]  703  713  723  733  743  753  763  773  783   793
 [4,]  704  714  724  734  744  754  764  774  784   794
 [5,]  705  715  725  735  745  755  765  775  785   795
 [6,]  706  716  726  736  746  756  766  776  786   796
 [7,]  707  717  727  737  747  757  767  777  787   797
 [8,]  708  718  728  738  748  758  768  778  788   798
 [9,]  709  719  729  739  749  759  769  779  789   799
[10,]  710  720  730  740  750  760  770  780  790   800

, , 9

      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
 [1,]  801  811  821  831  841  851  861  871  881   891
 [2,]  802  812  822  832  842  852  862  872  882   892
 [3,]  803  813  823  833  843  853  863  873  883   893
 [4,]  804  814  824  834  844  854  864  874  884   894
 [5,]  805  815  825  835  845  855  865  875  885   895
 [6,]  806  816  826  836  846  856  866  876  886   896
 [7,]  807  817  827  837  847  857  867  877  887   897
 [8,]  808  818  828  838  848  858  868  878  888   898
 [9,]  809  819  829  839  849  859  869  879  889   899
[10,]  810  820  830  840  850  860  870  880  890   900

, , 10

      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
 [1,]  901  911  921  931  941  951  961  971  981   991
 [2,]  902  912  922  932  942  952  962  972  982   992
 [3,]  903  913  923  933  943  953  963  973  983   993
 [4,]  904  914  924  934  944  954  964  974  984   994
 [5,]  905  915  925  935  945  955  965  975  985   995
 [6,]  906  916  926  936  946  956  966  976  986   996
 [7,]  907  917  927  937  947  957  967  977  987   997
 [8,]  908  918  928  938  948  958  968  978  988   998
 [9,]  909  919  929  939  949  959  969  979  989   999
[10,]  910  920  930  940  950  960  970  980  990  1000

[1] "array"
[1] "DATA FRAME DATA TYPE"
     myvalues1 myvalues2
row1         1      TRUE
row2         2     FALSE
row3         3      TRUE
row4         4      TRUE
row5         5      TRUE
     HOUSE myvalues2
row1     1      TRUE
row2     2     FALSE
row3     3      TRUE
row4     4      TRUE
row5     5      TRUE
[1] "VECTORS"
[1] 1 2 3 4 5 6 7 8 9
[1] 9 8 7 6 5 4 3 2 1
[1] 1.2 2.2 3.2 4.2 5.2 6.2 7.2 8.2
[1] "VECTORS IN RANDOM FORM"
[1]  1  5  8 -1
[1]  1.0  5.0  8.0 -1.2
[1] "OPERATIONS ON VECTOR:- 1:- ADDITION"
[1]  5.0  9.0 12.0  2.8
[1]  2.0 10.0 16.0 -2.2
[1] "vector subtraction"
[1] -3.0  1.0  4.0 -5.2
[1] 0.0 0.0 0.0 0.2
 [1]  1  2  3  4  5  6  7  8  9 10
 [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
[26] 26 27 28 29 30
 [1]  2  4  6  8 10 12 14 16 18 20 12 14 16 18 20 22 24 26 28 30 22 24 26 28 30
[26] 32 34 36 38 40
 [1]  3  6  9 12 15 18 21 24 27 30
 [1]   1   4   9  16  25  36  49  64  81 100  11  24  39  56  75  96 119 144 171
[20] 200  21  44  69  96 125 156 189 224 261 300
 [1]  1  2  3  4  5  6  7  8  9 10
[1] 11 12 13 14 15
 [1]  11  24  39  56  75  66  84 104 126 150
[1] "vector division"
 [1]  5.5 12.0 19.5 28.0 37.5 33.0 42.0 52.0 63.0 75.0
 [1] 2 2 2 2 2 2 2 2 2 2
[1] "MATRICES AND THEIR OPERATIONS"
     [,1] [,2]
[1,]    1    6
[2,]    3    9
[3,]    5    6
     [,1] [,2] [,3]
[1,]    1    5    9
[2,]    3    6    6
     [,1] [,2] [,3]
[1,]    1    6    7
[2,]    3    9    1
[3,]    5    6    3
     [,1] [,2] [,3]
[1,]    1    4    7
[2,]    2    5    8
[3,]    3    6    1
     [,1] [,2] [,3] [,4]
[1,]  5.5 28.0   42 75.0
[2,] 12.0 37.5   52  5.5
[3,] 19.5 33.0   63 12.0
[1] "1:- ADDITION"
     [,1] [,2] [,3] [,4]
[1,]    1    4    7   10
[2,]    2    5    8   11
[3,]    3    6    9   12
     [,1] [,2] [,3] [,4]
[1,]  6.5 32.0   49 85.0
[2,] 14.0 42.5   60 16.5
[3,] 22.5 39.0   72 24.0
     [,1] [,2] [,3] [,4]
[1,] 11.5 37.0   54 90.0
[2,] 19.0 47.5   65 21.5
[3,] 27.5 44.0   77 29.0
[1] "MULTIPLICATION"
     [,1] [,2] [,3] [,4]
[1,]   23   74  108  180
[2,]   38   95  130   43
[3,]   55   88  154   58
     [,1] [,2]
[1,]    1    6
[2,]    3    9
[3,]    5    6
     [,1] [,2] [,3]
[1,]    1    5    9
[2,]    3    6    6

    
                
λ
.NET NoSQL database for rapid development