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
-1
votes
1 answer

Python How to find destionation Radian

I am working on a project that's supposed to "track down" the destination of Sounds. For that i have 2 microphone arrays placed next to each other to later construct an triangle and find its position, but that's getting out of scope. At the moment i…
-1
votes
1 answer

Are .STL files missing triangles? This STL parsing code is consistently missing triangles

This is my second project that parses binary STL files. I'm running into the same problem I experienced several years ago in which the representations of my STL file ends up missing several triangles. I've tried reading more than the number of…
phinieo
  • 1
  • 3
-1
votes
1 answer

drawing an equilateral triangle in python

I'd like to draw an equilateral triangle in python by hard coding, I don't want to use specific features. The code I wrote is as follows: #Geometry of the system #drawing triangles #Triangle ABC #A #B #C # x axis values a = [1, 41, 81, 1] # y…
saba
  • 1
  • 2
-1
votes
2 answers

How can I make a triangle of hashes upside-down in python

I have to do a hash triangle using this function: def line(num=int, word=str): if word == "": print("*" * num) else: print(word[0] * num) Here is the code i have: def line(num=int, word=str): if word == "": print("*"…
Wolfie
  • 11
  • 2
-1
votes
2 answers

How to make Triangle obect in Windows Form?

I want to draw/make a triangle graphic that will appear right after when I run the program but I can't figure out the right command. Here's the command I use to make a rectangle object. private void Form1_Paint(object sender, PaintEventArgs e) {…
-1
votes
1 answer

Triangles on a graph's intersection practice question. I just cannot wrap my head around how they got the second output

This was listed as a "Hard question" in my practice coding quiz and I wanted to try my luck but the second output is really throwing me for a loop. Why is the second output correct in view of the first output? Danny has a graph paper that consists…
-1
votes
1 answer

Confirming That A point Exist In Triangle

I have been assigned to make the following program in java, but frankly, I couldn't understand what is it asking in the following statement. " Write a function to compute the distance between two points and use it to develop another function that…
-1
votes
1 answer

Why is my program printing the next line at a location i didnt ask for?

Basically i have to print 2 traingles, top up upside down, buttom one upside up. They are both the same legnth, my program works fine yet for some reason my second triangle gets slighty tilted to the right. Can anyone please explain to me how to fix…
dudex198
  • 25
  • 5
-1
votes
1 answer

Test if Integers Can Create a Triangle

I need to create a program that tests whether three integers entered can equal the sides of a triangle. The assignment requires the use of a static method that runs the test and then the main method would call the static method. If none of the…
-1
votes
1 answer

CS50 valid Triangle Problem - not compiling

I'm new to programming, and i'm doing CS50. I got stuck with my proactivity on the triangle problem (week2 - arrays - functions). here's my code: #include #include #include bool valid_triangle(float x, float y, float…
Piazzones
  • 19
  • 4
-1
votes
2 answers

3-Line --> triangle --> 3-inequality I want to convert

I would appreciate any good advice. I want to determine the inequality sign from the triangular part of the seven…
mrrclb46z
  • 89
  • 6
-1
votes
1 answer

Plotting points within a triangle

I'm using Python, and I have some data which can be projected on to points within an equilateral triangle whose side lengths sum to 1. I'm not sure if there is an easy way to visualise a plot like this from Matplotlib or similar libraries, or if I'm…
-1
votes
1 answer

i am a beginner an wanted to make an app to know the kind of the triangle according to its sides

so i am a beginner and wanted to make an app using python to know the kind of the triangle using the sides, i wanted to use this rule (AC^2 = ab^2 + bc^2) but it says i can't square a string so i removed the function sqrt(), but then it says none…
ZIRUS
  • 5
  • 1
-2
votes
2 answers

I want to make this program shorter. Please suggest

I wanted to write this program to check type of triangle using either sides or angle inputs. I tried below code which is working perfectly as it should, as in logic and result. But I feel Its redundant and could be shorter with fewer methods. So I…
-2
votes
1 answer

Find the third vertex of an equilateral trainable given two N-dimensional verteces in python

Given: Two vertices of an equilateral trainable as A,B ∊ RN when N > 1. Goal: Find the third vertex Z ∊ RN in which ||A-B|| = ||A-Z|| = ||B-Z||. I have the following python script from here which calculates it for 2-dimensional points (A,B ∊ R2 and…
Farid Alijani
  • 839
  • 1
  • 7
  • 25
1 2 3
8
9