Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 401 Bytes

File metadata and controls

26 lines (19 loc) · 401 Bytes

Name:

pThereom

Examples:

background(0); textAlign(CENTER); textSize(100); text(pTheorem(3,4),width/2,height/2);

Description:

finds the length of the hypotenuse of a right triangle when the lengths of the two other legs are given

Syntax:

pTheorem(a,b)

##Parameters: a=length of a leg of the triangle b=length of a leg of the triangle

##Returns: float

##Other notes: N/A