Home

Pythagorus_Theorem (Class inside mathscal module)

This class takes in_root (boolean) as argument if in_root is True following methods returns the value in root form else it returns in decimal form

hypotenuse (Method)

hypotenuse is method in Pythagorus_Theorem class

params: b, p

This method returns the hypotenuse of right angled triangle by taking b and p as arguments, where p is perpendicular and b is base

perpendicular (Method)

perpendicular is method in Pythagorus_Theorem class

params: h, b

This method returns the perpendicular of right angled triangle by taking h and b as arguments, where h is hypotenuse and b is base

base (Method)

base is method in Pythagorus_Theorem class

params: h, p

This method returns the base of right angled triangle by taking h and p as arguments, where h is hypotenuse and p is perpendicular

Example

image

Output

image