Questions tagged [triangle]

Triangles are simple, yet fundamental building blocks of many different mathematical fields including trigonometry and geometry.

There are 6 types of triangles including:

  • Equilateral

    All edges are the same length.

    enter image description here

  • Isosceles

    Two edges are the same length.

    enter image description here

  • Scalene

    All edges are different lengths.

    enter image description here

  • Right

    One angle with value of 90 degrees.

    enter image description here

  • Obtuse

    One angle with value greater than 90 degrees.

    enter image description here

  • Acute

    All angles with value less than 90 degrees.

    enter image description here

126 questions
0
votes
1 answer

how to print string inside pyramid python

I've been given a homework assignment that asks to print an equilateral triangle with '*' as the frame and inside the triangle a string of fixed number of '$' and spaces is supposed to run. example: Enter height: 9 Enter number of $: 5 Enter number…
Juno
  • 81
  • 6
0
votes
1 answer

Math help for creating random curved lines

so my problem is that to code a curve i need at minimum 3 points, a start and end point and a third (or more) for the line to curve out and not be straight anymore. i need to make random start and end points so finding the curve point has proven…
0
votes
0 answers

Specific equilateral triangle given two points in 3D - Python

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 So what I think I…
MXu
  • 1
  • 1
0
votes
0 answers

CSS with Triangles on left Side

Following Situation: I try to make a Triangle, stick to the left side of my Website .right_5 { margin-top: 0px; border-top: 350px solid transparent; border-bottom: 380px solid transparent; border-left: 350px solid black; z-index:…
0
votes
2 answers

Triangle with an empty center based on a given height in Javascript

I had a task recently to do an empty triangle based on a random height given by a user. It had to look like that but the user was the one who could set the height. My script looks like this now: var hgh = prompt("Set the triangle's height: "); …
Kiren78
  • 55
  • 9
0
votes
2 answers

How to find the column sum by restricting the row size in dataframe?

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…
0
votes
2 answers

How can I draw a circumcircle of a triangle in Python Turtle?

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. The way I have it doesn't…
0
votes
1 answer

How to find the column product column in python dataframe

I've Dataframe like this: DP 1 DP 2 DP 3 DP 4 DP 5 DP 6 DP 7 DP 8 DP 9 DP 10 2.720 1.748 1.462 1.228 1.152 1.055 1.063 1.080 1.001 4.361 1.641 1.430 1.117 1.181 1.018 1.052 1.096 …
0
votes
1 answer

How to calculate SUMPRODUCT and OFFSET in python

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 …
Devil
  • 83
  • 8
0
votes
0 answers

How to get the dataframe triangle using formula in python

We have table like this Cumulative Paid Triangle DP 1 DP 2 DP 3 DP 4 DP 5 DP 6 DP 7 DP 8 DP 9 DP 10 OP 1 3,57,848 …
Devil
  • 83
  • 8
0
votes
1 answer

How to create triangle inside triangle with recursion

I was trying to create triangle inside triangle which looks like this and I dont know how to do that properly with usage of recursion. Please give me some advice, I am hopeless Triangle picture
0
votes
1 answer

How to split an image into triangular tiles?

I would like to split an image into triangle shaped tiles (equilateral) . I have tried to generate the coordinates of a triangle using the function from https://alexwlchan.net/2016/10/tiling-the-plane-with-pillow/. My code: #import opencv import…
pa1912
  • 17
  • 1
  • 7
0
votes
1 answer

Slice missing from WebGL triangle fan

I have been trying to create a full circle using the triangle fan approach. However, I've tried increasing the number of fans from 80 to 360. Then I tried increasing it to 500, 5000, 50000. It disappears at 50000 only because the slice is so…
0
votes
1 answer

Drawing a numbered triangle in c using loops

I'm working on the first 2 parts (the ascending numbers and the spaces) Original this is how it's supposed to look like: 1 2 3 4 5 4 3 2 1 2 3 4 5 4 3 2 3 4 5 4 3 4 5 4 5 My code is: #include main() { int N, i, j,…
-1
votes
1 answer

How to fit/clip an axis aligned bounding box around a portion of a triangle

I have looked and looked and cannot find any resources on. I want to clip an axis aligned bounding box against a triangle in a way that creates a new tight fitting axis aligned bounding box around or in the triangle (I have seen the reverse a lot, a…
yosmo78
  • 489
  • 4
  • 13
1 2 3
8 9