Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Various matrix manipulations
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
#R version 3.3.2 print("Hello, world!") ligne1<-c(1,5,5,0) ligne2<-c(0,5,6,1) ligne3<-c(3,0,3,3) ligne4<-c(4,4,4,2) mat<-matrix(c(ligne1, ligne2, ligne3, ligne4), nrow=4, ncol=4, byrow=TRUE, dimnames=list(c("Ligne 1", "Ligne 2", "Ligne 3", "Ligne 4"), c("Colonne 1", "Colonne 2", "Colonne 3", "Colonne 4"))) mat vdiag<-diag(mat) vdiag v2FirstRows<-mat[1:2, ] v2FirstRows v2LastCols<-mat[ , 3:4] v2LastCols vButThirdCol<-mat[ ,-3] vButThirdCol matInverse<-solve(mat) matInverse matDeterm<-det(mat) matDeterm
[
+
]
Show input
Absolute running time: 0.62 sec, cpu time: 0.99 sec, memory peak: 30 Mb, absolute service time: 0,64 sec
edit mode
|
history
|
discussion