[*--Instruct the msp to call itself--]
<FORM
ACTION="circuit" METHOD="POST">
[*--Load circuit.m, the package file created in step 2--]
<%Mathlet
Get["circuit`"]; %>
[*--Add instructions for the user--]
<p>Enter an input voltage and hit return</p>
[*--Create a standard input field and insert a default value--]
<INPUT
TYPE="TEXT" NAME="voltage" ALIGN="LEFT" SIZE="3"
VALUE ="<%Mathlet MSPValue[$$voltage, ".5"] %>"> V
[*--Call the plotting function
Parametric defined in circuit.m and pass the input voltage--]
[*--MSPBlock and MSPShow are two MSP functions for preprocessing the input
and displaying a graphic, respectively--]
<p><%Mathlet MSPBlock[{$$voltage},
MSPShow[Parametric[$$voltage]]] %></p>
[*--Close the HTML Form tag--]
</FORM>