Skip to content

Integer-matrix determinants are not computed exactly #824

Closed
JuliaLang/julia
#40868
@step135

Description

julia> using LinearAlgebra
julia> a = [4 7 8;5 1 0; 6 0 1]
julia> A = [1 2 3; 4 1 6; 7 8 1]
julia> det(a)
-78.99999999999999
julia> det(A)
104.0

There shouldn't be any reason for that behaviour.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions