diff --git a/Documentation1.md b/Documentation1.md index 28f94fa..c05fe1a 100644 --- a/Documentation1.md +++ b/Documentation1.md @@ -1,19 +1,27 @@ -# Name: +# Name: power() ## Examples: -Insert examples here. +power (x, 5, 30) + ## Description: -Insert description here +Returns power when the variables force(f), velocity(v), and cosine theta(t) are input into the function. Note the order of inputting variables is f, v, then t. ## Syntax: -Demonstrate syntax here +float power (float f, float v, float t) { + float power= f * v * cos(t); + return power; ##Parameters: -Name and describe parameters here +Float power +Float f +Float v +Float t + +Function is a float! ##Returns: -What type of data does it return? +Returns numerical data. ##Other notes: -Anything else? + diff --git a/Documentation2.md b/Documentation2.md index 28f94fa..eee01eb 100644 --- a/Documentation2.md +++ b/Documentation2.md @@ -1,19 +1,27 @@ -# Name: +# Name: function ## Examples: -Insert examples here. +function (2, 15, 20, x) ## Description: -Insert description here +Returns the value of a trinomial(y) when a, b, c, and x are input into the function. ## Syntax: -Demonstrate syntax here +float function (float a, float b, float c, float x) { + float y = sq(a*x)+(b*x)+c; + return y; +} ##Parameters: -Name and describe parameters here +Float a +Float b +Float c +Float x + +Function is a float ##Returns: -What type of data does it return? +Returns numeric data ##Other notes: Anything else? diff --git a/Documentation3.md b/Documentation3.md index 28f94fa..ccc8b58 100644 --- a/Documentation3.md +++ b/Documentation3.md @@ -1,19 +1,27 @@ -# Name: +# Name: drawcircle ## Examples: -Insert examples here. +drawcircle(100, 100, 100, 20) ## Description: -Insert description here +Inserts a circle at mouseX and mouseY into the drawing. The color and diameter of the circle can be input by defining red, blue, green and diam. ## Syntax: -Demonstrate syntax here +void drawcircle (float red, float blue, float green, float diam) { noStroke(); +fill(red, blue, green); +ellipse(mouseX, mouseY, diam, diam); +} ##Parameters: -Name and describe parameters here +Float red +Float blue +Float green +Float diam + +Function is a void ##Returns: -What type of data does it return? +Function returns visual data ##Other notes: -Anything else? + diff --git a/~$cumentation1.md b/~$cumentation1.md new file mode 100644 index 0000000..f29fa74 Binary files /dev/null and b/~$cumentation1.md differ diff --git a/~$cumentation2.md b/~$cumentation2.md new file mode 100644 index 0000000..c074454 Binary files /dev/null and b/~$cumentation2.md differ diff --git a/~$cumentation3.md b/~$cumentation3.md new file mode 100644 index 0000000..c074454 Binary files /dev/null and b/~$cumentation3.md differ