dmf:line

Creates a function line element.

Element Information

Element class LineConfig
Implementation class LineStrategy
Nested elements One iterator that generates values for x, in the equation y = mx + b.

Attributes

Name Type Required Description
multiplieranyyes The line's slope. The value for m, in the equation y = mx + b.
interceptanyyes The value at which the line crosses the y-axis. The value for b, in the equation y = mx + b.

Examples

    
    <!-- f(x) = 3x - 22 for -5 <= x < 5 -->
    <dmf:line slope="3" intercept="-22">
      <dm:ints id="x" range="[-5,5)"/>
    </dmf:line>