mathjs icon indicating copy to clipboard operation
mathjs copied to clipboard

Multiplication of Array and Matrices containing units, fails based on order of input

Open orelbn opened this issue 1 year ago • 2 comments

The issues section is used only for bug reports. Please use the Discussions section to ask questions and share ideas and suggestions.

Describe the bug A clear and concise description of what the bug is.

If I do a multiplication with an array containing units and one without. It fails if the array containing the units is the first array, but it succeeds if I reverse the order.

image

To Reproduce Steps to reproduce the behavior.

multiply("[1m,2m,3m]","[1,2,3]")

orelbn avatar Nov 07 '24 18:11 orelbn

Thanks for reporting Orel!

Help debugging and fixing this issue would be welcome.

josdejong avatar Nov 08 '24 13:11 josdejong

Hey @josdejong @orelbn the issue here was the complex conjugate conj function not accepting Unit as a valid type. Which I don't think should be the case.

PR: #3456

Delaney avatar Apr 19 '25 20:04 Delaney