Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Incorrect result of matrices addition with inconsistent dimension. #98

Description

@studyeveryday7

Describe the bug

In the Matrix module, after creating 2*2 Matrix A and 3*3 Matrix B, then input the content of Matrix A as [[1,2],[3,4]] and Matrix B as [[1,2,3],[4,5,6],[7,8,9]
image

Then choose the A + B function,after evaluate the result is
image

which is incorrect.

Expected behavior

I expected the result should be “inconsistent dimensions: 2 != 3”, which is same as the result of A x B function.
image

To reproduce

  1. Open NCalc+ (Which is build from latest source code)
  2. Go to Matrix module
  3. Create two Matrix as description
  4. Click the evaluate bottom
  5. Incorrect result has been displayed

Configuration

  • Android version 9
  • device MI 8 Lite

Screenshots

image

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions