Documentation

“Triangle Appraiser” module version 1.0

“Triangle Appraiser” module helps programmers to manipulate triangles by illustrate the mathematical values with minimum effort meanwhile enhance those values with approximations and assumptions generating using fuzzy logics.

Pre requests

This module is developed for Python 2.7

User needs to have following libraries for work with this module

  1. Matplotlib  (download - https://github.com/matplotlib/matplotlib/downloads)
  2. Numpy  (download - http://www.numpy.org/)

Import triangle appraiser

Use module

This module prompts a Cartesian plane to the end user which can work interactively to take a triangle from the user.

  1. With preview :-


  1. Without preview

After getting a triangle it can be used to calculate several mathematical features of the relevant triangle. Here following model uses to prompt all the results. To understand the results it needs to match them with that model  


  1. Getting given coordination to draw the triangle
  1. Get only  “X” coordination list

Example Output

X coordinates of given triangle [XA,XB,XC]=  [0, 40.0, 90.0]

  1. Get only  “Y” coordination list

Example Output

X coordinates of given triangle [XA,XB,XC]=  [0, 40.0, 90.0]

  1. Get both coordination separately in to a single  list

Example Output

X Y coordinate list of given triangle [X,Y] =  ([0, 40.0, 90.0], [0, 91.0, 14.0])]

  1. Getting the length of the bases
  1. Get lengths separately

Example Output

Length of base a =  91.8095855562

Length of base b =  91.0823802939

Length of base c =  99.4032192638

  1. Get lengths as a list

Example Output

Length list of bases {a,b,c} =  [91.80958555619343, 91.0823802938856, 99.40321926376429]


  1. Getting the size of an angle
  1. Getting the size of the each angle

Example Output

Size of angle Alpha =  57.4297943639

Size of angle Beta =  56.7260961772

Size of angel Gamma=  65.844109459

  1. Getting sizes as a list

Example Output

Size list of angles {alpha,beta,gamma} =  [57.42979436385579, 56.726096177168834, 65.84410945897538]

  1. Getting angles to axis (getting actual formation)
  1. Angle to Y axis

Example Output

Angle to Y axis =   23.728391076

  1. Angle to X axis

Example Output

Angle to X axis =   13.728391076


Full sample code         

Output

 | Page