#### Category : triangle

Let’s say I have two points: A = (x_0, y_0, z_0) and B = (x_1, y_1, z_1). How can I find (in Python) a third point C = (x_2, y_2, z_2) such that: a) A, B & C form an equilateral triangle b) the value of z_2 is the highest it can be Thanks a ..

Having a data frame df1: DP 1 DP 2 DP 3 DP 4 DP 5 DP 6 DP 7 DP 8 DP 9 DP 10 OP 1 357848 1124788 1735330 2218270 2745596 3319994 3466336 3606286 3833515 3901463 OP 2 352118 1236139 2170033 3353322 3799067 4120063 4647867 4914039 5339085 OP 3 290507 1292306 2218525 3235179 3985995 ..

I wrote a code that should take one of three formulas and output the result, I use def. but the code cannot display the solution and I do not understand what is wrong with it def pr(a,b): return a*b def tr(a,b): return a*b/2 def cir(r): return 3.14*r**2 def main(): a = int(input(‘Enter a: ‘)) b ..

Please, could you help me with this? I can draw a triangle and also calculate the center of the circle (I don’t know if it is even helpful) and I have calculated the radius. But I don’t know how to draw a circle itself. Thank you for any ideas. import turtle import math from math ..

I have 2 data frame (Effect(E) and Buffer(B)). Effect DP 1 DP 2 DP 3 DP 4 DP 5 DP 6 DP 7 DP 8 DP 9 DP 10 2.922 1.887 1.354 1.237 1.150 1.070 1.073 1.089 1.010 4.002 1.723 1.297 1.176 1.145 1.087 1.045 1.085 3.748 1.878 1.353 1.238 1.154 1.160 1.061 3.349 1.644 ..

I am trying to find the direction of triangles in an image. below is the image: These triangles are pointing upward/downward/leftward/rightward. This is not the actual image. I have already used canny edge detection to find edges then contours and then the dilated image is shown below. My logic to find the direction: The logic ..

This is first dataframe df1: DP 1 DP 2 DP 3 DP 4 DP 5 DP 6 DP 7 DP 8 DP 9 DP 10 3.034 1.581 1.377 1.244 1.164 1.089 1.054 1.071 1.008 2.688 1.753 1.464 1.139 1.058 1.114 1.061 1.058 4.143 1.781 1.439 1.174 1.180 1.168 1.039 2.880 1.853 1.579 1.073 1.200 1.072 ..