﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2707	Unparsing of expression n*(n*v) produces wrong result for vectors	carlj@…	Per Östlund	"Unparsing destroys the following model by removing parentheses:

{{{
model TimesParentheses
  parameter Real[3] n = {0, 1, 0} ""Normalized vector"";
  parameter Real[3] v = {1, 2, 3} ""Vector to project on n""
  Real[3] x ""Projection of v on n"";
equation
  x = n * (n * v);
end TimesParentheses;
}}}

After unparsing, the equation has changed to

{{{
  x = n * n * v;
}}}

which evaluates as


{{{
 x = (n * n) * v;
}}}

which is a totally incorrect way of computing a projection."	defect	closed	blocker	1.9.1	Frontend	trunk	fixed		
