I tried to search around but could not find a good solution.
What I want to do is simple, for example, if at the beginning I define the three variables as:
vectora = {ax, ay, az}
vectorb = {bx, by, bz}
scalara = Norm[vectora]
directiona = vectora/scalara
Then I do the operation:
Cross[vectorb, directiona]
Mathematica will displace it as
{(az by)/Sqrt[Abs[ax]^2 + Abs[ay]^2 + Abs[az]^2]
- (ay bz)/Sqrt[Abs[ax]^2 + Abs[ay]^2 + Abs[az]^2],
-((az bx)/Sqrt[Abs[ax]^2 + Abs[ay]^2 + Abs[az]^2])
+ (ax bz)/Sqrt[Abs[ax]^2 + Abs[ay]^2 + Abs[az]^2],
(ay bx)/Sqrt[Abs[ax]^2 + Abs[ay]^2 + Abs[az]^2]
- (ax by)/Sqrt[Abs[ax]^2 + Abs[ay]^2 + Abs[az]^2]}
I want it to be as concise as possible:
{(az by)/scalara - (ay bz)/scalara, -(ax bx)/scalara + (ax bz)/scalara, (ay bx)/scalara - (ax by)/scalara}
Which function should I use?
Thank you all for your help.