Questions tagged [area]

Area is a quantity that expresses the extent of a two-dimensional surface or shape, or planar lamina, in the plane.

Area is a quantity that expresses the extent of a two-dimensional surface or shape, or planar lamina, in the plane. Area can be understood as the amount of material with a given thickness that would be necessary to fashion a model of the shape, or the amount of paint necessary to cover the surface with a single coat.

1332 questions
-3
votes
1 answer

kotlin does wrong equations. it does not calculate correctly

fun main(args: Array) { val pie = 22/7 println("Enter a number for triangle area") val input = readLine()?: "" val a = input.toInt() * input.toInt() * pie println(a) } here when I input 6 it should give us 113.142857143…
-3
votes
3 answers

Function to find area of a rectangle with given cartesian coordinates

Have the function RectangleArea(strArr) take the array of strings stored in strArr, which will only contain 4 elements and be in the form (x y) where x and y are both integers, and return the area of the rectangle formed by the 4 points on a…
Sam
  • 105
  • 2
  • 11
-3
votes
1 answer

object of type 'filter' has no len()

i'm trying to use the simulation of monte carlo in order to calculate the area under the curve (python 3.8) in order to get this plot eventually i tried this code import random, math NUM_POINTS = 10000 # Function for which we want to find area…
Hello_world
  • 65
  • 1
  • 3
  • 17
-3
votes
1 answer

What to put in (c) and (d) (when i didn"t code in this question i still get the output)

public class Circle { public static void main(String[] args) { int diameter; // (a) declare variable(s) Circle2 c = new Circle2(50); // (b) create a circle with diameter 50 // (c) call to calculate perimeter …
Kavina
  • 1
  • 1
-3
votes
1 answer

Matlab - Incorrect dimensions for raising a matrix to a power

Suppose we have a=60 and B=60. I am trying to calculate this area: when I try this: W = ((u^2)* cot(B) + (v^2 * cot(a))/8; I get this error: Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a…
Hadi GhahremanNezhad
  • 2,377
  • 5
  • 29
  • 58
-3
votes
1 answer

Area of a circle segment on sphere (Earth) given central coordinates (lat / long), radius (meters) and central angle (degrees)

Situation I have a circle segment and some information about the circle it belongs to. Given Information: coordinates of the center of the circle (latitude / longitude) radius of the circle in meters central angle in degrees I need to calculate…
Max Mikhalchuk
  • 147
  • 1
  • 1
  • 10
-3
votes
1 answer

Calculate area from Signal under basline

The Matlab code I have plots the following curve: X1= 1:600; plot (X1,tmp) basline = 0;% level area(tmp,basline,'FaceColor','g'); how can I calculate the area in the red circle?
Moosli
  • 3,140
  • 2
  • 19
  • 45
-3
votes
2 answers

Trying to find the type of the triangle when the user enters value other than 0,then proceed to the area by using Heron formula

Trying to find the type of the triangle when the user enters valueother than 0,then proceed to the area by using Heron formula.If entered 0,The program should terminate by saying it is not valid,not proceed to the area. import…
-3
votes
2 answers

Scanner + TesterClass?

So for this I have to create a program in Java that asks the user to input all three points of a triangle, and then I must find the sides and area. All the math must be done separately from the tester class, where I will prompt the user with the…
Nosferatu
  • 3
  • 1
-3
votes
1 answer

How to find area between two shapes in MATLAB?

This image has a number of closed polygons. What I need is the area between these polygons. So I figured that I could subtract area of each of these polygons from the whole. The whole area would look something like the red outline but I do not know…
-3
votes
3 answers

Area of parallelogram function, javascript

Area of a Parallelogram (A = base * height)


-3
votes
1 answer

c# detect areas in map of country

I have a white map of country with black edges of provinces. I want to recognize areas of provinces and keep pixels of each province. Then I would like to color this areas(as polygon) by different colors. I would be grateful if you could help me. I…
mateusz
  • 1
  • 1
-3
votes
1 answer

Surface Area and Volume of a 3D cone

write a program that prompts the user for the radius and height of a 3-dimensional cone and then calculates and prints the surface area and volume of the cone. The calculation of the surface area and the volume will be done in functions, as will…
Thomas Jones
  • 355
  • 2
  • 11
  • 17
-4
votes
1 answer

create a random rectangle with limited a limited area

I need to generate a rectangle with random dimentions, but I want to avoid generating any rectangles above a specified area limit. Notice I said area, I can't simply have a random value within a certain range be generated for each axis…
-4
votes
2 answers

Functions in C Programming Language Problem: Program to get the Area

I am a student trying to make a simple program to get the area of a triangle, square, rectangle, and circle using functions using C language. Unfortunately, my program won't run even though I double checked the syntax and debugged. Listed below is…
1 2 3
88
89