Skip to content

vector crosss product.seems to be wrong consistently. #248

Closed

Description

@xwaeaewcrhomesysplug

Describe the bug
vector crosss product.seems to be wrong consistently.

eg,a={5,1,4} ,b={-1,0,2}

maths solution process(idk what is this technique name)
axb

|i j k|
|5 1 4|
|-1 0 2|

=[(12)-(40)]i-[(52)-(4-1)]j+[(50)-(-11)]k

=2i-14j+k

<2,-14,1>

To Reproduce
Steps to reproduce the behavior:

Example input Symja input expression:

>> {5,1,4}*{-1,0,2}
={-5,0,8}

Error result:{-5,0,8}


Expected behavior

Expected (correct) result expression:{2,-14,1}

==

Java

  • Java15
    -Win10

Activity

  1. axkr commented on Aug 16, 2021

    @axkr
    Owner

    Please use the Cross function for cross product:

    >> Cross({5,1,4},{-1,0,2})
    {2,-14,1}
    

    The Times operator * multiplies element-wise.

    See:

  2. Repository owner locked and limited conversation to collaborators on Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions