Skip to content

Base of Unit Space Incorrectly Constructed #3

Description

@davidkowalk

If less than 7 variables are provided the program has to guess the remaining to construct a linearily independant basis. Instead the script currently pads the identity matrix. See src/interpreter.py at line 18 to 23.

Instead we need to systematically find linearly independent vectors.

Example for triggering the bug:

Input

Variable 1: p = 100000kg m^-1 s^-2  
Variable 2: V = 0.25 m^3
Variable 3: n = 130 mol
Variable 4: R = 8.3145 kg m^2 s^-2 mol^-1 K^-1

Units for target: K

Expected:

p^1 V^1 n^-1 R^-1

Got:

Matrix is not invertible. The provided Vectors may not be linearily independent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions