diff --git a/Documentation1.md b/Documentation1.md deleted file mode 100644 index 28f94fa..0000000 --- a/Documentation1.md +++ /dev/null @@ -1,19 +0,0 @@ -# Name: - -## Examples: -Insert examples here. - -## Description: -Insert description here - -## Syntax: -Demonstrate syntax here - -##Parameters: -Name and describe parameters here - -##Returns: -What type of data does it return? - -##Other notes: -Anything else? diff --git a/Documentation2.md b/Documentation2.md deleted file mode 100644 index 28f94fa..0000000 --- a/Documentation2.md +++ /dev/null @@ -1,19 +0,0 @@ -# Name: - -## Examples: -Insert examples here. - -## Description: -Insert description here - -## Syntax: -Demonstrate syntax here - -##Parameters: -Name and describe parameters here - -##Returns: -What type of data does it return? - -##Other notes: -Anything else? diff --git a/Documentation3.md b/Documentation3.md deleted file mode 100644 index 28f94fa..0000000 --- a/Documentation3.md +++ /dev/null @@ -1,19 +0,0 @@ -# Name: - -## Examples: -Insert examples here. - -## Description: -Insert description here - -## Syntax: -Demonstrate syntax here - -##Parameters: -Name and describe parameters here - -##Returns: -What type of data does it return? - -##Other notes: -Anything else? diff --git a/Math_Function/Math_Function.pde b/Math_Function/Math_Function.pde new file mode 100644 index 0000000..2bb8d7a --- /dev/null +++ b/Math_Function/Math_Function.pde @@ -0,0 +1,13 @@ +void setup() { +} + +void draw() { + //print calculated interest + println(interestFormula(2,.01,3)); +} + + //interest formula interest = principal * rate * time +float interestFormula (float p, float r,float t) { + float i = p*r*t; + return i; +} \ No newline at end of file diff --git a/Physics_Function/Physics_Function.pde b/Physics_Function/Physics_Function.pde new file mode 100644 index 0000000..2020ef9 --- /dev/null +++ b/Physics_Function/Physics_Function.pde @@ -0,0 +1,13 @@ +void setup () { +} + +void draw() { + //print calculated final velocity + println(finalVelocity(1,9.8,2)); +} + +//formula for final velocity final velocity = initial velocity + (acceleration * time) +float finalVelocity(float v1, float a, float t){ + float i = v1 + (a*t); + return i; +} \ No newline at end of file diff --git a/Visual_Function/Visual_Function.pde b/Visual_Function/Visual_Function.pde new file mode 100644 index 0000000..acbf1ab --- /dev/null +++ b/Visual_Function/Visual_Function.pde @@ -0,0 +1,20 @@ +//initialize +PImage picture; + +void setup() { + //canvas size and load image + size(800, 600); + picture = loadImage("turtle.png"); +} + +void draw() { + //background and picture function + background(0,0,180); + picture(2); +} + +//blurred turtle picture moves with mouse on blue background +void picture (float level) { + image(picture, mouseX, mouseY); + filter(BLUR, level); +} \ No newline at end of file diff --git a/Visual_Function/data/turtle.png b/Visual_Function/data/turtle.png new file mode 100644 index 0000000..ddda24a Binary files /dev/null and b/Visual_Function/data/turtle.png differ diff --git a/finalVelocity.md b/finalVelocity.md new file mode 100644 index 0000000..07a4c84 --- /dev/null +++ b/finalVelocity.md @@ -0,0 +1,18 @@ +# Name: finalVelocity() + +## Examples: +finalVelocity(1, 9.8, 2) + +## Description: +Calculates and prints final velocity using a kinematic equation. + +## Syntax: +finalVelocity(v1, a, t) + +##Parameters: +v1 float: initial velocity +a float: acceleration +t float: time + +##Returns: +float diff --git a/interestFormula().md b/interestFormula().md new file mode 100644 index 0000000..a301bc2 --- /dev/null +++ b/interestFormula().md @@ -0,0 +1,21 @@ +# Name: interestFormula() + +## Examples: +interestFormula(2,01,3) + +## Description: +Calculates and prints interest using the simple itnerest formula. + +## Syntax: +interestFormula(p, r, t) + +##Parameters: +p float: principal amount +r float: interest rate +t float: time + + +##Returns: +float + + diff --git a/picture().md b/picture().md new file mode 100644 index 0000000..324d6d8 --- /dev/null +++ b/picture().md @@ -0,0 +1,16 @@ +# Name: picture() + +## Examples: +picture(2) + +## Description: +Displays picture of a turtle with an adjustable blur setting, over a blue background. + +## Syntax: +picture(level) + +##Parameters: +level float: blur setting + +##Returns: +void