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 ..

#### Category : triangle

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 ..

DP 1 DP 2 DP 3 DP 4 DP 5 DP 6 DP 7 DP 8 DP 9 DP 10 (0.551) (1.194) (1.244) 0.846 1.666 (0.981) (1.457) (1.074) 0.031 0.050 0.683 (0.666) (0.359) 1.084 0.424 0.920 1.368 (0.192) 0.007 0.931 (1.276) 0.875 0.836 1.591 (1.313) 1.987 (1.746) (0.315) (1.047) 1.634) 0.737 (0.737) 0.006 0.607 (0.208) ..

DP 1 DP 2 DP 3 DP 4 DP 5 DP 6 DP 7 DP 8 DP 9 DP 10 3,57,848 11,24,788 17,35,330 22,18,270 27,45,596 33,19,994 34,66,336 36,06,286 38,33,515 39,01,463 3,52,118 12,36,139 21,70,033 33,53,322 37,99,067 41,20,063 46,47,867 49,14,039 53,39,085 2,90,507 12,92,306 22,18,525 32,35,179 39,85,995 41,32,918 46,28,910 49,09,315 3,10,608 14,18,858 21,95,047 37,57,447 40,29,929 43,81,982 45,88,268 4,43,160 ..

Trying to extract properties from the triangle / development class(e.g..age_to_age) give it was parameterized with multiple triangles each with different valuation dates. This example illustrates the issue: import chainladder as cl import pandas as pd data = [[‘2010-01-01’, ‘2011-06-30’, ‘premium’, 100.0], [‘2010-01-01’, ‘2011-12-31’, ‘incurred’, 100.0], [‘2010-01-01’, ‘2012-06-30’, ‘premium’, 200.0], [‘2010-01-01’, ‘2012-12-31’, ‘incurred’, 100.0], [‘2010-01-01’, ‘2013-12-31’, ..

## Recent Comments