Formatting Questions and a Piecewise Function Question

I am trying to add a closed circle at the endpoint (-2,2) and (7,4) and a point at (1,4). Open circles at (1,2) and (5,1). Could anyone help me??

2 x+1 -1.5*x+8.5 .5*x-1

Here is the link to my file. This is created by Bryan Passwater. Document (Big 10)

Hi, Nick!

The solution is to use the <endpoint /> component. It has an open attribute that defaults to false (so it renders as a filled circle by default). If you specify open or open="true", then it renders as an open circle.

For example, <endpoint open>(3,4)</endpoint> will render an open circle at (3,4). <endpoint>(5,6)</endpoint> (or equivalently <endpoint open="false">(5,6)</endpoint>) will render a closed circle at (5,6).

Thank you, however, when I try any of the code mentioned, my piecewise function does not render an open or closed point.

The piecewise function does not yet have the ability to render open or closed circles. You’d need to add the <endpoint> outside the piecewise function and then it will add them on top. The piecewise function component can currently just draw curves.

Something like:

<graph>
  <piecewiseFunction>
    <function domain="(-2, 1)">2</function>
    <function domain="[1, 3]">x+1</function>
    <function domain="(3, 5)">-1.5*x+8.5</function>
    <function domain="(5,7)">.5*x-1</function>
  </piecewiseFunction>
  <endpoint>(-2,2)</endpoint>
  <endpoint open>(1,2)</endpoint>
  <endpoint open>(5,1)</endpoint>
  <endpoint>(7,4)</endpoint>
</graph>

Thank you! It needed to go after the piecewise function