JaderAzevedo / IntroLinearAlgebra.jl

Tools for convenient display and manipulation of matrices for an introductory linear algebra course

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IntroLinearAlgebra

IntroLinearAlgebra is a Julia package designed for students in an introductory linear algebra course. It uses MathJax to display matrices in an IJulia notebook, and it provides functions for step-by-step application of elementary row operations.

Installation

Run Pkg.clone("git://github.com/sswatson/IntroLinearAlgebra.jl.git") from a Julia prompt.

Examples

julia> using IntroLinearAlgebra
julia> M = [1 2 3; 4 5 6; 7 8 9]
3×3 Array{Int64,2}:
 1  2  3
 4  5  6
 7  8  9

julia> rref(M)
3×3 Array{Rational{Int64},2}:
 1//1  0//1  -1//1
 0//1  1//1   2//1
 0//1  0//1   0//1

julia> M = rowadd(M,2,1,-4)
3×3 Array{Int64,2}:
 1   2   3
 0  -3  -6
 7   8   9

julia> M = rowswitch(M,3,1)
3×3 Array{Int64,2}:
 7   8   9
 0  -3  -6
 1   2   3

julia> M = rowadd(M,3,1,-1//7)
3×3 Array{Rational{Int64},2}:
 7//1   8//1   9//1
 0//1  -3//1  -6//1
 0//1   6//7  12//7

julia> rowscale(M,1,1//7)
3×3 Array{Rational{Int64},2}:
 1//1   8//7   9//7
 0//1  -3//1  -6//1
 0//1   6//7  12//7

julia> setdigits(8) #changes the default number of digits to display in IJulia

Build Status

Coverage Status

codecov.io

About

Tools for convenient display and manipulation of matrices for an introductory linear algebra course

License:Other


Languages

Language:Julia 100.0%