Advertisement
Guest User

prgmNEW1

a guest
Apr 29th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ClrHome
  2. ClrTable
  3. Input "Vertex X1: ", A
  4. Input "Vertex Y1: ", B
  5. Input "Vertex X2: ", C
  6. Input "Vertex Y2: ", D
  7. Input "Vertex X3: ", E
  8. Input "Vertex Y3: ", F
  9.  
  10. sqrt(((C-E)^2) + ((D-F)^2)) -> X
  11. sqrt(((A-E)^2) + ((B-F)^2)) -> Y
  12. sqrt(((A-C)^2) + ((B-D)^2)) -> Z
  13.  
  14. X+Y+Z -> P
  15.  
  16. "Incenter"
  17. ((A*X) + (C*Y) + (E*Z)) / P -> H
  18. ((B*X) + (D*Y) + (F*Z)) / P -> K
  19.  
  20. "Radius"
  21. sqrt((P/2) * ((P/2)-X) * ((P/2)-Y) * ((P/2)-Z)) -> A
  22. (2*A) / P -> R
  23.  
  24. Display "The Incenter Is: ", {H, K}
  25. Display "The Radius Is: ", R
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement