﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2973	relations vs. zero crossings	Lennart Ochel	somebody	"I investigated a bit how zero crossings get collected. I think there are a couple of problems. First of all, zero crossings and relations still seem to be swapped. The following simple example shows that:

{{{#!mo
model test8
  Boolean b = sin(time) < 0.0 and cos(time) > 0.1;
  annotation(experiment(StartTime = 0, StopTime = 10));
end test8;
}}}

{{{
Zero Crossings (1)
========================================
sin(time) < 0.0 and cos(time) > 0.1 in equations [1] and when conditions []


Relations (2)
========================================
sin(time) < 0.0 with index = 0 in equations [1] and when conditions []
cos(time) > 0.1 with index = 1 in equations [1] and when conditions []
}}}

A zero crossing is a continuous function whose '''zero crossing''' is of interest. Whereas relations are logical expressions that may depend on zero crossings.

Because the runtime systems depend on this data structures, this should get fixed before one does further improvements of the event systems.
"	discussion	new	high	Future	Backend	trunk			Niklas Worschech Willi Braun
