Follow

出来た!

using Quaternions
using LinearAlgebra
function quat_lu(N)
A=fill(quat(BigInt(0)//1), N, N)
for i=1:N, j=1:N
A[i,j]=quat([rand(1:10)//rand(1:10) for i=1:4]...)
end
println(A)
println(lu(A))
end
quat_lu(4)

Sign in to participate in the conversation
Mathtodon

A Mastodon instance named Mathtodon, where you can post toots with beautiful mathematical formulae in TeX/LaTeX style.