Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions Documentation1.md

This file was deleted.

19 changes: 0 additions & 19 deletions Documentation2.md

This file was deleted.

19 changes: 0 additions & 19 deletions Documentation3.md

This file was deleted.

13 changes: 13 additions & 0 deletions Math_Function/Math_Function.pde
Original file line number Diff line number Diff line change
@@ -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;
}
13 changes: 13 additions & 0 deletions Physics_Function/Physics_Function.pde
Original file line number Diff line number Diff line change
@@ -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;
}
20 changes: 20 additions & 0 deletions Visual_Function/Visual_Function.pde
Original file line number Diff line number Diff line change
@@ -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);
}
Binary file added Visual_Function/data/turtle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions finalVelocity.md
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions interestFormula().md
Original file line number Diff line number Diff line change
@@ -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


16 changes: 16 additions & 0 deletions picture().md
Original file line number Diff line number Diff line change
@@ -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