Skip to content

EXACT MODE for matrix library <matrix.ts> #48

@Haise-Turquoise

Description

@Haise-Turquoise

Background

For calculation of the advanced linear algebra, the current data type of Hedgehog-lab(Ver0.4) cannot support the exact value calculation with square root like the image below:
matrix2

Topics

Exact-calculation mode (Exact Mode) for matrix library

My suggestion is creating the exact calculation mode which ONLY allows the input of fractions of integers and output of fractions of integers (no decimals allowed for IO of Exact Mode). Adding some new data types with the support of fractions and square root would probably have a conflict with the current data type.
However, this project can use [a mode button in the IO webpage] OR use [a global mode variable in the first few lines of the code compulsorily] to avoid the confusion of the decimal calculation and the exact calculation.

example of confusion:
2/sqrt(2) can be interpreted as 1.414... or sqrt(2) in the current and the exact mode of calculation.

After implementing the Exact-calculation mode of the matrix library, the following suggested function would provide a practical use for students and academic researchers.

Suggested functions for the matrix library
-linearly independence check
-determinant calculation
-row reduced echelon form simplification
-Find the basis for range(A), Row(A), Col(A), Null(transpose(A))
-coordinates of vector under different bases
-eigenvalue calculation
-matrix diagonalization

For the calculation functions below, Exact Mode is highly suggested for practical use
-length of vector
-the standard inner product for real matrix ("**" already implemented for current version but not for exact model)
-Gram-Schmidt Procedure
-set of bases vectors to an orthogonal matrix
-general mapping
-find basis of the orthogonal complement space
-matrix orthogonal diagonalization
-matrix triangularization
-singular value decomposition

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions