English
Software Products:
Programming Language:
Short description:
This sample is designed to illustrate specific compiler optimizations, features, tools, and programming concepts.
This program computes the integral (area under the curve) of a user-supplied function over an interval in a stepwise fashion. The interval is split into segments, and at each segment position the area of a rectangle is computed whose height is the value of sine at that point and the width is the segment width. The areas of the rectangles are then summed.