Input (grade 4): where and denote the length of and and is the angle between them.
Output (grade 6): where a and b denote the length of a and b and Î is the angle between them.