infoboxer 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3acd8fcd261fbe66bdb6bef0176276be7fb7807d
4
- data.tar.gz: 9e6eb83ff290813d614062a4e45349da5f4168fe
3
+ metadata.gz: 261019d3c88be6d1292ce5aa8787962185b89a86
4
+ data.tar.gz: 923feaa8759259e70d367b8cf6408f42c7475b79
5
5
  SHA512:
6
- metadata.gz: 2689ed0ac5eb1d0982ea44854e2ad0e2a8221b9eafb4178d50ed153312cf241ad78cbc62679f471a6e8d6bd6b4aeefb83470f31094cc49899e2d84e6e67ec0a9
7
- data.tar.gz: 72cbdacc7d85448e7b10965c35211859a25e0650483d1ec11234c47d39f54d18302c4c7ecef20427b204eccf898f42ea189b3ff7ceb819b65825e061965e6df5
6
+ metadata.gz: 24cba9cb4d7c91df7b90ee6cf8228d74201c78687d25e737c012b020a6127045de5490b9273fa0aff65449c46ba4c17198e6d3da4ab92f187af2b7cbe4dfd472
7
+ data.tar.gz: fdd9e52f22c3e052833b32c4f6100de0e050ce306c48ea4a6d791293c89ba87ed91dfed573a9ccb918c46c7375732a12dfdc1ed594badcc5bad72006cacc7e2e
@@ -1,6 +1,8 @@
1
1
  # Infoboxer's change log
2
2
 
3
- ## 0.2.5 (2016-06-27)
3
+ ## 0.2.6 (2016-06-27)
4
+
5
+ _0.2.5 was erroneously released without any changes._
4
6
 
5
7
  * Fix of `<math>` tags parsing (#66)
6
8
 
@@ -3,7 +3,7 @@ module Infoboxer
3
3
  class Parser
4
4
  module Inline
5
5
  include Tree
6
-
6
+
7
7
  def inline(until_pattern = nil)
8
8
  start = @context.lineno
9
9
  nodes = Nodes[]
@@ -19,13 +19,13 @@ module Infoboxer
19
19
  break unless until_pattern
20
20
  @context.fail!("#{until_pattern} not found, starting from #{start}")
21
21
  end
22
-
22
+
23
23
  if @context.eol?
24
24
  nodes << "\n"
25
25
  @context.next!
26
26
  end
27
27
  end
28
-
28
+
29
29
  nodes
30
30
  end
31
31
 
@@ -48,7 +48,7 @@ module Infoboxer
48
48
 
49
49
  break if @context.inline_eol?(until_pattern)
50
50
  end
51
-
51
+
52
52
  nodes
53
53
  end
54
54
 
@@ -66,7 +66,7 @@ module Infoboxer
66
66
  break unless until_pattern
67
67
  @context.fail!("#{until_pattern} not found")
68
68
  end
69
-
69
+
70
70
  if @context.eol?
71
71
  @context.next!
72
72
  paragraphs(until_pattern).each do |p|
@@ -75,7 +75,7 @@ module Infoboxer
75
75
  break
76
76
  end
77
77
  end
78
-
78
+
79
79
  nodes
80
80
  end
81
81
 
@@ -104,6 +104,8 @@ module Infoboxer
104
104
  reference($1, true)
105
105
  when /<ref([^>]*)>/
106
106
  reference($1)
107
+ when /<math>/
108
+ math
107
109
  when '<'
108
110
  html || Text.new(match) # it was not HTML, just accidental <
109
111
  else
@@ -132,7 +134,7 @@ module Infoboxer
132
134
  link = @context.scan_continued_until(/\s+|\]/)
133
135
  if @context.matched =~ /\s+/
134
136
  @context.push_eol_sign(/^\]/)
135
- caption = short_inline(/\]/)
137
+ caption = short_inline(/\]/)
136
138
  @context.pop_eol_sign
137
139
  end
138
140
  ExternalLink.new(protocol + link, caption)
@@ -143,6 +145,10 @@ module Infoboxer
143
145
  Ref.new(children, parse_params(param_str))
144
146
  end
145
147
 
148
+ def math
149
+ Math.new(@context.scan_continued_until(/<\/math>/))
150
+ end
151
+
146
152
  def nowiki(tag_rest)
147
153
  if tag_rest.end_with?('/')
148
154
  Text.new('')
@@ -9,14 +9,15 @@ module Infoboxer
9
9
  \[\[ | # link
10
10
  {{ | # template
11
11
  \[[a-z]+:\/\/ | # external link
12
- <nowiki[^>]*> | # reference
13
- <ref[^>]*> | # nowiki
12
+ <nowiki[^>]*> | # nowiki
13
+ <ref[^>]*> | # reference
14
+ <math> | # math
14
15
  < # HTML tag
15
16
  )/x
16
17
 
17
18
  INLINE_EOL = %r[(?= # if we have ahead... (not scanned, just checked
18
19
  </ref> | # <ref> closed
19
- }}
20
+ }}
20
21
  )]x
21
22
 
22
23
  INLINE_EOL_BRACK = %r[(?= # if we have ahead... (not scanned, just checked
@@ -50,13 +51,13 @@ module Infoboxer
50
51
  short_inline_until_cache_brackets2: Hash.new{|h, r|
51
52
  h[r] = Regexp.union(*[r, INLINE_EOL_BRACK2, FORMATTING, /$/].compact.uniq)
52
53
  }
53
-
54
+
54
55
  }
55
56
  end
56
57
 
57
58
  def parse_params(str)
58
59
  return {} unless str
59
-
60
+
60
61
  scan = StringScanner.new(str)
61
62
  params = {}
62
63
  loop do
@@ -44,7 +44,7 @@ module Infoboxer
44
44
  #
45
45
  # Most of navigational and other Node's methods return {Nodes} type,
46
46
  # which is an `Array` descendant with additional functionality.
47
- #
47
+ #
48
48
  # ## Complex data extraction
49
49
  #
50
50
  # Most of uniform, machine-extractable data in Wikipedia is stored in
@@ -62,7 +62,7 @@ module Infoboxer
62
62
  require_relative 'tree/nodes'
63
63
 
64
64
  %w[text compound inline
65
- image html paragraphs list template table ref
65
+ image html paragraphs list template table ref math
66
66
  document].each do |type|
67
67
  require_relative "tree/#{type}"
68
68
  end
@@ -0,0 +1,9 @@
1
+ module Infoboxer
2
+ module Tree
3
+ # Represents node of math formulae marked with TeX
4
+ #
5
+ # See also: https://en.wikipedia.org/wiki/Help:Displaying_a_formula
6
+ class Math < Text
7
+ end
8
+ end
9
+ end
@@ -2,6 +2,6 @@
2
2
  module Infoboxer
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- PATCH = 5
5
+ PATCH = 6
6
6
  VERSION = [MAJOR, MINOR, PATCH].join('.')
7
7
  end
@@ -0,0 +1,438 @@
1
+ {{About|the geometric quantity}}
2
+
3
+ [[File:Area.svg|right|thumb|alt=Three shapes on a square grid|The combined area of these three [[shapes]] is [[approximation|approximately]] 15.57 [[square]]s.]]
4
+ '''Area''' is the [[quantity]] that expresses the extent of a [[two-dimensional]] figure or [[shape]], or [[planar lamina]], in the [[Plane (geometry)|plane]]. [[Surface area]] is its analog on the two-dimensional [[Surface (topology)|surface]] of a [[solid geometry|three-dimensional object]]. 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.<ref name="MathWorld">{{cite web|url=http://mathworld.wolfram.com/Area.html|title=Area|publisher=[[Wolfram MathWorld]]|author=[[Eric W. Weisstein]]|accessdate=3 July 2012}}</ref> It is the two-dimensional analog of the [[length]] of a [[plane curve|curve]] (a one-dimensional concept) or the [[volume]] of a solid (a three-dimensional concept).
5
+
6
+ The area of a shape can be measured by comparing the shape to [[square]]s of a fixed size.<ref name=AF/> In the [[International System of Units]] (SI), the standard unit of area is the [[square metre]] (written as m<sup>2</sup>), which is the area of a square whose sides are one [[metre]] long.<ref name=B>[[Bureau International des Poids et Mesures]] [http://www.bipm.org/en/CGPM/db/11/12/ Resolution 12 of the 11th meeting of the CGPM (1960)], retrieved 15 July 2012</ref> A shape with an area of three square metres would have the same area as three such squares. In [[mathematics]], the [[unit square]] is defined to have area one, and the area of any other shape or surface is a [[Dimensionless quantity|dimensionless]] [[real number]].
7
+
8
+ There are several well-known [[formula]]s for the areas of simple shapes such as [[triangle]]s, [[rectangle]]s, and [[circle]]s. Using these formulas, the area of any [[polygon]] can be found by [[Polygon triangulation|dividing the polygon into triangles]].<ref name=bkos>{{Cite book |author1=Mark de Berg |author2=Marc van Kreveld |author3=Mark Overmars |author3-link=Mark Overmars |author4=Otfried Schwarzkopf |year=2000 |title=Computational Geometry |publisher=[[Springer-Verlag]] |edition=2nd revised |isbn=3-540-65620-0 |chapter=Chapter 3: Polygon Triangulation |pages=45–61 |postscript=<!-- Bot inserted parameter. Either remove it; or change its value to "." for the cite to end in a ".", as necessary. -->{{inconsistent citations}}}}</ref> For shapes with curved boundary, [[calculus]] is usually required to compute the area. Indeed, the problem of determining the area of plane figures was a major motivation for the [[History of calculus|historical development of calculus]].<ref>{{cite book|first=Carl B. |last=Boyer |authorlink=Carl Benjamin Boyer |title=A History of the Calculus and Its Conceptual Development |publisher=Dover |year=1959 |isbn=0-486-60509-4}}</ref>
9
+
10
+ For a solid shape such as a [[sphere]], [[Cone (geometry)|cone]], or [[cylinder (geometry)|cylinder]], the area of its boundary surface is called the [[surface area]].<ref name=MathWorld/><ref name=MathWorldSurfaceArea>{{cite web|url=http://mathworld.wolfram.com/SurfaceArea.html|title=Surface Area|publisher=[[Wolfram MathWorld]]|author=[[Eric W. Weisstein]]|accessdate=3 July 2012}}</ref> Formulas for the surface areas of simple shapes were computed by the [[Greek mathematics|ancient Greeks]], but computing the surface area of a more complicated shape usually requires [[multivariable calculus]].
11
+
12
+ Area plays an important role in modern mathematics. In addition to its obvious importance in [[geometry]] and calculus, area is related to the definition of [[determinant]]s in [[linear algebra]], and is a basic property of surfaces in [[differential geometry]].<ref name="doCarmo">[[Manfredo do Carmo|do Carmo, Manfredo]]. Differential Geometry of Curves and Surfaces. Prentice-Hall, 1976. Page 98, ISBN 978-0-13-212589-5</ref> In [[analysis]], the area of a subset of the plane is defined using [[Lebesgue measure]],<ref name="Rudin">Walter Rudin, ''Real and Complex Analysis'', McGraw-Hill, 1966, ISBN 0-07-100276-6.</ref> though not every subset is measurable.<ref>Gerald Folland, Real Analysis: modern techniques and their applications, John Wiley & Sons, Inc., 1999,Page 20,ISBN 0-471-31716-0</ref> In general, area in higher mathematics is seen as a special case of [[volume]] for two-dimensional regions.<ref name=MathWorld/>
13
+
14
+ Area can be defined through the use of axioms, defining it as a function of a collection of certain plane figures to the set of real numbers. It can be proved that such a function exists.
15
+
16
+ ==Formal definition==
17
+ {{see also|Jordan measure}}
18
+ An approach to defining what is meant by "area" is through [[axioms]]. "Area" can be defined as a function from a collection M of special kind of plane figures (termed measurable sets) to the set of real numbers which satisfies the following properties:
19
+ * For all ''S'' in ''M'', ''a''(''S'') ≥ 0.
20
+ * If ''S'' and ''T'' are in ''M'' then so are ''S'' ∪ ''T'' and ''S'' ∩ ''T'', and also ''a''(''S''∪''T'') = ''a''(''S'') + ''a''(''T'') − ''a''(''S''∩''T'').
21
+ * If ''S'' and ''T'' are in ''M'' with ''S'' ⊆ ''T'' then ''T'' − ''S'' is in ''M'' and ''a''(''T''−''S'') = ''a''(''T'') − ''a''(''S'').
22
+ * If a set ''S'' is in ''M'' and ''S'' is congruent to ''T'' then ''T'' is also in ''M'' and ''a''(''S'') = ''a''(''T'').
23
+ * Every rectangle ''R'' is in ''M''. If the rectangle has length ''h'' and breadth ''k'' then ''a''(''R'') = ''hk''.
24
+ * Let ''Q'' be a set enclosed between two step regions ''S'' and ''T''. A step region is formed from a finite union of adjacent rectangles resting on a common base, i.e. ''S'' ⊆ ''Q'' ⊆ ''T''. If there is a unique number ''c'' such that ''a''(''S'') ≤ c ≤ ''a''(''T'') for all such step regions ''S'' and ''T'', then ''a''(''Q'') = ''c''.
25
+
26
+ It can be proved that such an area function actually exists.<ref name=Moise>{{cite book|last=Moise|first=Edwin|title=Elementary Geometry from an Advanced Standpoint|url=https://books.google.com/?id=7nUNAQAAIAAJ|accessdate=15 July 2012|year=1963|publisher= Addison-Wesley Pub. Co.|isbn=|page=}}</ref>
27
+
28
+ ==Units==
29
+ [[Image:SquareMeterQuadrat.JPG|thumb|right|alt=A square made of PVC pipe on grass|A square metre [[quadrat]] made of PVC pipe.]]
30
+ Every [[unit of length]] has a corresponding unit of area, namely the area of a square with the given side length. Thus areas can be measured in [[square metre]]s (m<sup>2</sup>), square centimetres (cm<sup>2</sup>), square millimetres (mm<sup>2</sup>), [[square kilometre]]s (km<sup>2</sup>), [[square foot|square feet]] (ft<sup>2</sup>), [[square yard]]s (yd<sup>2</sup>), [[square mile]]s (mi<sup>2</sup>), and so forth.<ref name=BIPM2006Ch5/> Algebraically, these units can be thought of as the [[square (algebra)|squares]] of the corresponding length units.
31
+
32
+ The SI unit of area is the square metre, which is considered an [[SI derived unit]].<ref name=B/>
33
+
34
+ ===Conversions===
35
+ [[Image:Area conversion - square mm in a square cm.png|thumb|right|320px|alt=A diagram showing the conversion factor between different areas|Although there are 10 mm in 1 cm, there are 100 mm<sup>2</sup> in 1 cm<sup>2</sup>.]]
36
+ Calculation of the area of a square whose length and width are 1 metre would be:
37
+
38
+ 1 metre x 1 metre = 1&nbsp;m<sup>2</sup>
39
+
40
+ and therefore, another square with different sides can be calculated as:
41
+
42
+ 3 metres x 2 metres = 6&nbsp;m<sup>2</sup>. This is, however, equivalent to 6 million millimetres square. Following this,
43
+ * 1 kilometre square = [[million|1,000,000]] metres square
44
+ * 1 metre square= [[10000 (number)|10,000]] centimetres square = 1,000,000 millimetres square
45
+ * 1 centimetre square = [[100 (number)|100]] millimetres square
46
+
47
+ ==== Non-Metric units ====
48
+ In non-metric units, the conversion between two square units is the [[square (algebra)|square]] of the conversion between the corresponding length units.
49
+ :1 [[foot (unit)|foot]] = 12 [[inch]]es,
50
+ the relationship between square feet and square inches is
51
+ :1 square foot = 144 square inches,
52
+ where 144 = 12<sup>2</sup> = 12 × 12. Similarly:
53
+ * 1 square yard = [[9 (number)|9]] square feet
54
+ * 1 square mile = 3,097,600 square yards = 27,878,400 square feet
55
+ In addition, conversion factors include:
56
+ * 1 square inch = 6.4516 square centimetres
57
+ * 1 square foot = {{gaps|0.092|903|04}} square metres
58
+ * 1 square yard = {{gaps|0.836|127|36}} square metres
59
+ * 1 square mile = {{gaps|2.589|988|110|336}} square kilometres
60
+
61
+ ===Other units including historical===
62
+ {{See also|Category:Units of area}}
63
+ There are several other common units for area. The "[[Are (unit)|Are]]" was the original unit of area in the [[metric system]], with;
64
+ *1 are = 100 square metres
65
+ Though the are has fallen out of use, the [[hectare]] is still commonly used to measure land:<ref name=BIPM2006Ch5>{{Cite journal|author= Bureau international des poids et mesures|year=2006 |url=http://www.bipm.org/utils/common/pdf/si_brochure_8_en.pdf |title=The International System of Units (SI)|version= 8th ed.|accessdate=2008-02-13}} Chapter 5.</ref>
66
+ *1 hectare = 100 ares = 10,000 square metres = 0.01 square kilometres
67
+ Other uncommon metric units of area include the [[tetrad (unit of area)|tetrad]], the [[hectad]], and the [[myriad]].
68
+
69
+ The [[acre]] is also commonly used to measure land areas, where
70
+ *1 acre = 4,840 square yards = 43,560 square feet.
71
+ An acre is approximately 40% of a hectare.
72
+
73
+ On the atomic scale, area is measured in units of [[Barn (unit)|barns]], such that:<ref name=BIPM2006Ch5/>
74
+ *1 barn = 10<sup>−28</sup> square meters.
75
+ The barn is commonly used in describing the cross sectional area of interaction in [[nuclear physics]].<ref name=BIPM2006Ch5/>
76
+
77
+ In India,
78
+
79
+ *20 Dhurki = 1 Dhur
80
+ *20 Dhur = 1 Khatha
81
+ *20 Khata = 1 Bigha
82
+ *32 Khata = 1 Acre
83
+
84
+ ==History==
85
+
86
+ ===Circle area===
87
+
88
+ In the 5th century BCE, [[Hippocrates of Chios]] was the first to show that the area of a disk (the region enclosed by a circle) is proportional to the square of its diameter, as part of his [[Quadrature (mathematics)|quadrature]] of the [[lune of Hippocrates]],<ref name="heath">{{citation|first=Thomas L.|last=Heath|authorlink=Thomas Little Heath|title=A Manual of Greek Mathematics|publisher=Courier Dover Publications|year=2003|isbn=0-486-43231-9|pages=121–132|url=https://books.google.com/books?id=_HZNr_mGFzQC&pg=PA121}}.</ref> but did not identify the [[constant of proportionality]]. [[Eudoxus of Cnidus]], also in the 5th century BCE, also found that the area of a disk is proportional to its radius squared.<ref>{{cite book|url=http://www.stewartcalculus.com/media/8_home.php|title=Single variable calculus early transcendentals.|last=Stewart|first=James|publisher=Brook/Cole|year=2003|isbn=0-534-39330-6|edition=5th.|location=Toronto ON|page=3|quote=However, by indirect reasoning, Eudoxus (fifth century B.C.) used exhaustion to prove the familiar formula for the area of a circle: <math>A= \pi r^2.</math>}} <!--This quote may be an overstatement. I have not been able to confirm that he discovered the actual formula, but perhaps only the proportionality between A and r-squared.--></ref>
89
+
90
+ Subsequently, Book I of [[Euclid's Elements|Euclid's ''Elements'']] dealt with equality of areas between two-dimensional figures. The mathematician [[Archimedes]] used the tools of [[Euclidean geometry]] to show that the area inside a circle is equal to that of a [[right triangle]] whose base has the length of the circle's circumference and whose height equals the circle's radius, in his book ''[[Measurement of a Circle]]''. (The circumference is 2{{pi}}''r'', and the area of a triangle is half the base times the height, yielding the area {{pi}}''r''<sup>2</sup> for the disk.) Archimedes approximated the value of π (and hence the area of a unit-radius circle) with [[Area of a disk#Archimedes' doubling method|his doubling method]], in which he inscribed a regular triangle in a circle and noted its area, then doubled the number of sides to give a regular [[hexagon]], then repeatedly doubled the number of sides as the polygon's area got closer and closer to that of the circle (and did the same with [[circumscribed polygon]]s).
91
+
92
+ Swiss scientist [[Johann Heinrich Lambert]] in 1761 proved that [[pi|π]], the ratio of a circle's area to its squared radius, is [[irrational number|irrational]], meaning it is not equal to the quotient of any two whole numbers.<ref name=Arndt>{{cite book|last=Arndt|first=Jörg|last2=Haenel|first2=Christoph|title=Pi Unleashed|publisher=Springer-Verlag|year=2006|isbn=978-3-540-66572-4 <!--isbn only volume 1-->|url=https://books.google.com/?id=QwwcmweJCDQC&printsec=frontcover#v=onepage&q&f=false|ref=harv|accessdate=2013-06-05}} English translation by Catriona and David Lischka.</ref> French mathematician [[Adrien-Marie Legendre]] proved in 1794 that π<sup>2</sup> is also irrational. In 1882, German mathematician [[Ferdinand von Lindemann]] proved that π is [[transcendental number|transcendental]] (not the solution of any [[polynomial equation]] with rational coefficients), confirming a conjecture made by both [[Adrien-Marie Legendre|Legendre]] and Euler.<ref name=Arndt/>{{rp|p. 196}}
93
+
94
+ ===Triangle area===
95
+
96
+ [[Hero of Alexandria|Heron (or Hero) of Alexandria]] found what is known as [[Heron's formula]] for the area of a triangle in terms of its sides, and a proof can be found in his book, ''Metrica'', written around 60 CE. It has been suggested that [[Archimedes]] knew the formula over two centuries earlier,<ref>{{cite book
97
+ | author=Heath, Thomas L.
98
+ | title=A History of Greek Mathematics (Vol II)
99
+ | publisher=Oxford University Press
100
+ | year=1921
101
+ | pages=321–323}}</ref> and since ''Metrica'' is a collection of the mathematical knowledge available in the ancient world, it is possible that the formula predates the reference given in that work.<ref>{{MathWorld |urlname=HeronsFormula |title=Heron's Formula}}</ref>
102
+
103
+ In 499 [[Aryabhata]], a great [[mathematician]]-[[astronomer]] from the classical age of [[Indian mathematics]] and [[Indian astronomy]], expressed the area of a triangle as one-half the base times the height in the ''[[Aryabhatiya]]'' (section 2.6).
104
+
105
+ A formula equivalent to Heron's was discovered by the Chinese independently of the Greeks. It was published in 1247 in ''Shushu Jiuzhang'' ("[[Mathematical Treatise in Nine Sections]]"), written by [[Qin Jiushao]].
106
+
107
+ ===Quadrilateral area===
108
+
109
+ In the 7th century CE, [[Brahmagupta]] developed a formula, now known as [[Brahmagupta's formula]], for the area of a [[cyclic quadrilateral]] (a [[quadrilateral]] [[inscribed figure|inscribed]] in a circle) in terms of its sides. In 1842 the German mathematicians [[Carl Anton Bretschneider]] and [[Karl Georg Christian von Staudt]] independently found a formula, known as [[Bretschneider's formula]], for the area of any quadrilateral.
110
+
111
+ ===General polygon area===
112
+
113
+ The development of [[Cartesian coordinates]] by [[René Descartes]] in the 17th century allowed the development of the [[Shoelace formula|surveyor's formula]] for the area of any polygon with known [[vertex (geometry)|vertex]] locations by [[Gauss]] in the 19th century.
114
+
115
+ ===Areas determined using calculus===
116
+
117
+ The development of [[integral calculus]] in the late 17th century provided tools that could subsequently be used for computing more complicated areas, such as the area of an [[ellipse#Area|ellipse]] and the [[surface area]]s of various curved three-dimensional objects.
118
+
119
+ ==Area formulas==
120
+
121
+ ===Polygon formulas===
122
+ {{Main|Polygon#Area and centroid}}
123
+
124
+ For a non-self-intersecting ([[simple polygon|simple]]) polygon, the [[Cartesian coordinates]] <math>(x_i, y_i)</math> (''i''=0, 1, ..., ''n''-1) of whose ''n'' [[vertex (geometry)|vertices]] are known, the area is given by the [[shoelace formula|surveyor's formula]]:<ref>{{cite web
125
+ |url = http://www.seas.upenn.edu/~sys502/extra_materials/Polygon%20Area%20and%20Centroid.pdf
126
+ |title = Calculating The Area And Centroid Of A Polygon
127
+ |last = Bourke
128
+ |first = Paul
129
+ |date = July 1988
130
+ |work =
131
+ |publisher =
132
+ |accessdate = 6 Feb 2013
133
+ }}
134
+ </ref>
135
+
136
+ :<math>A = \frac{1}{2} | \sum_{i = 0}^{n - 1}( x_i y_{i + 1} - x_{i + 1} y_i) |,</math>
137
+
138
+ where when ''i''=''n''-1, then ''i''+1 is expressed as [[modular arithmetic|modulus]] ''n'' and so refers to 0.
139
+
140
+ ====Rectangles====
141
+ [[Image:RectangleLengthWidth.svg|thumb|right|180px|alt=A rectangle with length and width labelled|The area of this rectangle is&nbsp;{{mvar|lw}}.]]
142
+ The most basic area formula is the formula for the area of a [[rectangle]]. Given a rectangle with length {{mvar|l}} and width {{mvar|w}}, the formula for the area is:</big><ref name=AF>{{cite web|url=http://www.math.com/tables/geometry/areas.htm|title=Area Formulas|publisher=Math.com|accessdate=2 July 2012}}</ref> <ref>{{cite web|url=http://proofwiki.org/wiki/Area_of_Parallelogram/Rectangle|title=Area of Parallelogram/Rectangle|publisher=ProofWiki.org|accessdate=29 May 2016}}</ref>
143
+
144
+ :{{bigmath|''A'' {{=}} ''lw''}}&nbsp;(rectangle).
145
+ That is, the area of the rectangle is the length multiplied by the width. As a special case, as {{math|''l'' {{=}} ''w''}} in the case of a square, the area of a square with side length {{mvar|s}} is given by the formula:<ref name=MathWorld/><ref name=AF/> <ref>{{cite web|url=http://proofwiki.org/wiki/Area_of_Square|title=Area of Square|publisher=ProofWiki.org|accessdate=29 May 2016}}</ref>
146
+ :{{bigmath|''A'' {{=}} ''s''<sup>2</sup>}}&nbsp;(square).
147
+
148
+ The formula for the area of a rectangle follows directly from the basic properties of area, and is sometimes taken as a [[definition]] or [[axiom]]. On the other hand, if [[geometry]] is developed before [[arithmetic]], this formula can be used to define [[multiplication]] of [[real number]]s.
149
+
150
+ [[Image:ParallelogramArea.svg|thumb|left|180px|alt=A diagram showing how a parallelogram can be re-arranged into the shape of a rectangle|Equal area figures.]]
151
+
152
+ ====Dissection, parallelograms, and triangles====
153
+ {{Main|Triangle#Computing the area of a triangle|Parallelogram#Area formula}}
154
+
155
+ Most other simple formulas for area follow from the method of [[dissection (geometry)|dissection]].
156
+ This involves cutting a shape into pieces, whose areas must [[addition|sum]] to the area of the original shape.
157
+
158
+ For an example, any [[parallelogram]] can be subdivided into a [[trapezoid]] and a [[right triangle]], as shown in figure to the left. If the triangle is moved to the other side of the trapezoid, then the resulting figure is a rectangle. It follows that the area of the parallelogram is the same as the area of the rectangle:<ref name=AF/>
159
+ :{{bigmath|''A'' {{=}} ''bh''}} <big>&nbsp;(parallelogram).</big>
160
+ [[Image:TriangleArea.svg|thumb|right|180px|alt=A parallelogram split into two equal triangles|Two equal triangles.]]However, the same parallelogram can also be cut along a [[diagonal]] into two [[congruence (geometry)|congruent]] triangles, as shown in the figure to the right. It follows that the area of each [[triangle]] is half the area of the parallelogram:<ref name=AF/>
161
+ :<math>A = \frac{1}{2}bh</math> <big>&nbsp;(triangle).</big>
162
+ Similar arguments can be used to find area formulas for the [[trapezoid]]<ref>{{citation|title=Problem Solving Through Recreational Mathematics|first1=Bonnie|last1=Averbach|first2=Orin|last2=Chein|publisher=Dover|year=2012|isbn=978-0-486-13174-0|page=306|url=https://books.google.com/books?id=Dz_CAgAAQBAJ&pg=PA306}}.</ref> as well as more complicated [[polygon]]s.<ref>{{citation|title=Calculus for Scientists and Engineers: An Analytical Approach|first=K. D.|last=Joshi|publisher=CRC Press|year=2002|isbn=978-0-8493-1319-6|page=43|url=https://books.google.com/books?id=5SDcLHkelq4C&pg=PA43}}.</ref>
163
+
164
+ ===Area of curved shapes===
165
+
166
+ ====Circles====
167
+ [[Image:CircleArea.svg|thumb|right|alt=A circle divided into many sectors can be re-arranged roughly to form a parallelogram|A circle can be divided into [[Circular sector|sector]]s which rearrange to form an approximate [[parallelogram]].]]
168
+ {{main|Area of a disk}}
169
+ The formula for the area of a [[circle]] (more properly called the area enclosed by a circle or the area of a [[disk (mathematics)|disk]]) is based on a similar method. Given a circle of radius {{math|''r''}}, it is possible to partition the circle into [[Circular sector|sector]]s, as shown in the figure to the right. Each sector is approximately triangular in shape, and the sectors can be rearranged to form and approximate parallelogram. The height of this parallelogram is {{math|''r''}}, and the width is half the [[circumference]] of the circle, or {{math|π''r''}}. Thus, the total area of the circle is {{math|''r'' × π''r''}}, or {{math|π''r''<sup>2</sup>}}:<ref name=AF/>
170
+ :{{bigmath|''A'' {{=}} π''r''<sup>2</sup>}} <big>&nbsp;(circle).</big>
171
+ Though the dissection used in this formula is only approximate, the error becomes smaller and smaller as the circle is partitioned into more and more sectors. The [[limit (mathematics)|limit]] of the areas of the approximate parallelograms is exactly {{math|π''r''<sup>2</sup>}}, which is the area of the circle.<ref name=Surveyor/>
172
+
173
+ This argument is actually a simple application of the ideas of [[calculus]]. In ancient times, the [[method of exhaustion]] was used in a similar way to find the area of the circle, and this method is now recognized as a precursor to [[integral calculus]]. Using modern methods, the area of a circle can be computed using a [[definite integral]]:
174
+ :<math>A \;=\;2\int_{-r}^r \sqrt{r^2 - x^2}\,dx \;=\; \pi r^2.</math>
175
+
176
+ ====Ellipses====
177
+ {{main|Ellipse#Area}}
178
+ The formula for the area enclosed by an [[ellipse]] is related to the formula of a circle; for an ellipse with [[semi-major axis|semi-major]] and [[semi-minor axis|semi-minor]] axes {{math|''x''}} and {{math|''y''}} the formula is:<ref name=AF/>
179
+ :<math>A = \pi xy .</math>
180
+
181
+ ====Surface area====
182
+ {{main|Surface area}}
183
+ [[Image:Archimedes sphere and cylinder.svg|right|thumb|180px|alt=A blue sphere inside a cylinder of the same height and radius|[[Archimedes]] showed that the surface area and volume of a [[sphere]] is exactly 2/3 of the area and volume of the surrounding [[cylinder (geometry)|cylindrical]] surface.]]
184
+ Most basic formulas for [[surface area]] can be obtained by cutting surfaces and flattening them out. For example, if the side surface of a [[cylinder (geometry)|cylinder]] (or any [[prism (geometry)|prism]]) is cut lengthwise, the surface can be flattened out into a rectangle. Similarly, if a cut is made along the side of a [[cone (geometry)|cone]], the side surface can be flattened out into a sector of a circle, and the resulting area computed.
185
+
186
+ The formula for the surface area of a [[sphere]] is more difficult to derive: because a sphere has nonzero [[Gaussian curvature]], it cannot be flattened out. The formula for the surface area of a sphere was first obtained by [[Archimedes]] in his work ''[[On the Sphere and Cylinder]]''. The formula is:<ref name=MathWorldSurfaceArea/>
187
+ :{{bigmath|''A'' {{=}} 4''πr''<sup>2</sup>}} <big>&nbsp;(sphere),</big>
188
+ where {{math|''r''}} is the radius of the sphere. As with the formula for the area of a circle, any derivation of this formula inherently uses methods similar to [[calculus]].
189
+
190
+ ===General formulas===
191
+
192
+ ====Areas of 2-dimensional figures====
193
+ *A [[triangle]]: <math>\tfrac12Bh</math> (where ''B'' is any side, and ''h'' is the distance from the line on which ''B'' lies to the other vertex of the triangle). This formula can be used if the height ''h'' is known. If the lengths of the three sides are known then ''[[Heron's formula]]'' can be used: <math>\sqrt{s(s-a)(s-b)(s-c)}</math> where ''a'', ''b'', ''c'' are the sides of the triangle, and <math>s = \tfrac12(a + b + c)</math> is half of its perimeter.<ref name=AF/> If an angle and its two included sides are given, the area is <math>\tfrac12 a b \sin(C)</math> where {{math|''C''}} is the given angle and {{math|''a''}} and {{math|''b''}} are its included sides.<ref name=AF/> If the triangle is graphed on a coordinate plane, a matrix can be used and is simplified to the absolute value of <math>\tfrac12(x_1 y_2 + x_2 y_3 + x_3 y_1 - x_2 y_1 - x_3 y_2 - x_1 y_3)</math>. This formula is also known as the [[shoelace formula]] and is an easy way to solve for the area of a coordinate triangle by substituting the 3 points ''(x<sub>1</sub>,y<sub>1</sub>)'', ''(x<sub>2</sub>,y<sub>2</sub>)'', and ''(x<sub>3</sub>,y<sub>3</sub>)''. The shoelace formula can also be used to find the areas of other polygons when their vertices are known. Another approach for a coordinate triangle is to use [[calculus]] to find the area.
194
+ *A [[simple polygon]] constructed on a grid of equal-distanced points (i.e., points with [[integer]] coordinates) such that all the polygon's vertices are grid points: <math>i + \frac{b}{2} - 1</math>, where ''i'' is the number of grid points inside the polygon and ''b'' is the number of boundary points.<ref name=Pick>{{cite journal |last=Trainin |first=J. |title=An elementary proof of Pick's theorem |journal=[[Mathematical Gazette]] |volume=91 |issue=522 |date=November 2007 |pages=536–540}}</ref> This result is known as [[Pick's theorem]].<ref name=Pick/>
195
+
196
+ ====Area in calculus====
197
+ [[File:Integral as region under curve.svg|left|thumb|280px|alt=A diagram showing the area between a given curve and the x-axis|Integration can be thought of as measuring the area under a curve, defined by ''f''(''x''), between two points (here ''a'' and ''b'').]]
198
+ [[File:Areabetweentwographs.svg|thumb|287px|alt=A diagram showing the area between two functions|The area between two graphs can be evaluated by calculating the difference between the integrals of the two functions]]
199
+
200
+ *The area between a positive-valued curve and the horizontal axis, measured between two values ''a'' and ''b'' (b is defined as the larger of the two values) on the horizontal axis, is given by the integral from ''a'' to ''b'' of the function that represents the curve:<ref name=MathWorld/>
201
+ :<math> A = \int_a^{b} f(x) \, dx.</math>
202
+ *The area between the [[graph of a function|graph]]s of two functions is [[equality (mathematics)|equal]] to the [[integral]] of one [[function (mathematics)|function]], ''f''(''x''), [[subtraction|minus]] the integral of the other function, ''g''(''x''):
203
+ :<math> A = \int_a^{b} ( f(x) - g(x) ) \, dx, </math> where <math> f(x) </math> is the curve with the greater y-value.
204
+ *An area bounded by a function ''r'' = ''r''(θ) expressed in [[polar coordinates]] is:<ref name=MathWorld/>
205
+ :<math>A = {1 \over 2} \int r^2 \, d\theta. </math>
206
+ *The area enclosed by a [[parametric curve]] <math>\vec u(t) = (x(t), y(t)) </math> with endpoints <math> \vec u(t_0) = \vec u(t_1) </math> is given by the [[line integral]]s:
207
+ ::<math> \oint_{t_0}^{t_1} x \dot y \, dt = - \oint_{t_0}^{t_1} y \dot x \, dt = {1 \over 2} \oint_{t_0}^{t_1} (x \dot y - y \dot x) \, dt </math>
208
+ (see [[Green's theorem]]) or the ''z''-component of
209
+ :<math>{1 \over 2} \oint_{t_0}^{t_1} \vec u \times \dot{\vec u} \, dt.</math>
210
+
211
+ ====Bounded area between two quadratic functions====
212
+ To find the bounded area between two [[quadratic function]]s, we subtract one from the other to write the difference as
213
+ :<math>f(x)-g(x)=ax^2+bx+c=a(x-\alpha)(x-\beta)</math>
214
+ where ''f''(''x'') is the quadratic upper bound and ''g''(''x'') is the quadratic lower bound. Define the [[discriminant]] of ''f''(''x'')-''g''(''x'') as
215
+ :<math>\Delta=b^2-4ac.</math>
216
+ By simplifying the integral formula between the graphs of two functions (as given in the section above) and using [[Vieta's formulas|Vieta's formula]], we can obtain<ref>[https://books.google.com/books?id=NFkVfrZBqpUC&pg=PA51&redir_esc=y#v=onepage&q&f=false Matematika - Marthen Kanginan], Google Books.</ref><ref>[https://books.google.com/books?id=uwqvITs8OaUC&pg=PA157&redir_esc=y#v=onepage&q&f=false Get Success UN +SPMB Matematika - Juliah], Google Books.</ref>
217
+ :<math>A=\frac{\Delta\sqrt{\Delta}}{6a^2}=\frac{a}{6}(\beta-\alpha)^3,\qquad a\neq0.</math>
218
+ The above remains valid if one of the bounding functions is linear instead of quadratic.
219
+
220
+ ====Surface area of 3-dimensional figures====
221
+ *[[Cone (geometry)|cone]]:<ref name=MathWorldCone>{{cite web|url=http://mathworld.wolfram.com/Cone.html|title=Cone|publisher=[[Wolfram MathWorld]]|author=[[Eric W. Weisstein]]|accessdate=6 July 2012}}</ref> <math>\pi r\left(r + \sqrt{r^2 + h^2}\right)</math>, where ''r'' is the radius of the circular base, and ''h'' is the height. That can also be rewritten as <math>\pi r^2 + \pi r l </math><ref name=MathWorldCone/> or <math>\pi r (r + l) \,\!</math> where ''r'' is the radius and ''l'' is the slant height of the cone. <math>\pi r^2 </math> is the base area while <math>\pi r l </math> is the lateral surface area of the cone.<ref name=MathWorldCone/>
222
+ *[[cube (geometry)|cube]]: <math>6s^2</math>, where ''s'' is the length of an edge.<ref name=MathWorldSurfaceArea/>
223
+ *[[cylinder (geometry)|cylinder]]: <math>2\pi r(r + h)</math>, where ''r'' is the radius of a base and ''h'' is the height. The ''2<math>\pi</math>r'' can also be rewritten as ''<math>\pi</math> d'', where ''d'' is the diameter.
224
+ *[[Prism (geometry)|prism]]: 2B + Ph, where ''B'' is the area of a base, ''P'' is the perimeter of a base, and ''h'' is the height of the prism.
225
+ *[[pyramid (geometry)|pyramid]]: <math>B + \frac{PL}{2}</math>, where ''B'' is the area of the base, ''P'' is the perimeter of the base, and ''L'' is the length of the slant.
226
+ *[[rectangular prism]]: <math>2 (\ell w + \ell h + w h)</math>, where <math>\ell</math> is the length, ''w'' is the width, and ''h'' is the height.
227
+
228
+ ====General formula for surface area====
229
+ The general formula for the surface area of the graph of a continuously differentiable function <math>z=f(x,y),</math> where <math>(x,y)\in D\subset\mathbb{R}^2</math> and <math>D</math> is a region in the xy-plane with the smooth boundary:
230
+ : <math> A=\iint_D\sqrt{\left(\frac{\partial f}{\partial x}\right)^2+\left(\frac{\partial f}{\partial y}\right)^2+1}\,dx\,dy. </math>
231
+ An even more general formula for the area of the graph of a [[parametric surface]] in the vector form <math>\mathbf{r}=\mathbf{r}(u,v),</math> where <math>\mathbf{r}</math> is a continuously differentiable vector function of <math>(u,v)\in D\subset\mathbb{R}^2</math> is:<ref name="doCarmo"/>
232
+ : <math> A=\iint_D \left|\frac{\partial\mathbf{r}}{\partial u}\times\frac{\partial\mathbf{r}}{\partial v}\right|\,du\,dv. </math>
233
+
234
+ ===List of formulas===
235
+
236
+ {| class="wikitable"
237
+ |+ Additional common formulas for area:
238
+ ! Shape
239
+ ! Formula
240
+ ! Variables
241
+ |-
242
+ |Regular [[triangle]] ([[equilateral triangle]])
243
+ ||<math>\frac{\sqrt{3}}{4}s^2\,\!</math>
244
+ ||<math>s</math> is the length of one side of the triangle.
245
+ |-
246
+ |[[Triangle]]<ref name=MathWorld/>
247
+ |<math>\sqrt{s(s-a)(s-b)(s-c)}\,\!</math>
248
+ |<math> s </math> is half the perimeter, <math>a</math>, <math>b</math> and <math>c</math> are the length of each side.
249
+ |-
250
+ |[[Triangle]]<ref name=AF/>
251
+ |<math>\tfrac12 a b \sin(C)\,\!</math>
252
+ |<math>a</math> and <math>b</math> are any two sides, and <math>C</math> is the angle between them.
253
+ |-
254
+ |[[Triangle]]<ref name=MathWorld/>
255
+ |<math>\tfrac12bh \,\!</math>
256
+ |<math>b</math> and <math>h</math> are the [[Base (geometry)|base]] and [[Altitude (triangle)|altitude]] (measured perpendicular to the base), respectively.
257
+ |-
258
+ |[[Isosceles triangle]]
259
+ |<math>\frac{1}{2}b\sqrt{a^2-\frac{b^2}{4}}=\frac{b}{4}\sqrt{4a^2-b^2}</math>
260
+ |<math>a</math> is the length of one of the two equal sides and <math>b</math> is the length of a different side.
261
+ |-
262
+ |[[Rhombus]]/[[Kite (geometry)|Kite]]
263
+ |<math>\tfrac12ab</math>
264
+ |<math>a</math> and <math>b</math> are the lengths of the two [[diagonals]] of the rhombus or kite.
265
+ |-
266
+ |[[Parallelogram]]
267
+ |<math>bh\,\!</math>
268
+ |<math>b</math> is the length of the base and <math>h</math> is the perpendicular height.
269
+ |-
270
+ |[[Trapezoid]]
271
+ |<math>\frac{(a+b)h}{2} \,\!</math>
272
+ |<math>a</math> and <math>b</math> are the parallel sides and <math>h</math> the distance (height) between the parallels.
273
+ |-
274
+ |Regular [[hexagon]]
275
+ |<math>\frac{3}{2} \sqrt{3}s^2\,\!</math>
276
+ |<math>s</math> is the length of one side of the hexagon.
277
+ |-
278
+ |Regular [[octagon]]
279
+ |<math>2(1+\sqrt{2})s^2\,\!</math>
280
+ |<math>s</math> is the length of one side of the octagon.
281
+ |-
282
+ | [[Regular polygon]]
283
+ |<math>\frac{1}{4}nl^2\cdot \cot(\pi/n)\,\!</math>
284
+ |<math> l </math> is the side length and <math>n</math> is the number of sides.
285
+ |-
286
+ | Regular polygon
287
+ |<math>\frac{1}{4n}p^2\cdot \cot(\pi/n)\,\!</math>
288
+ |<math> p </math> is the perimeter and <math>n</math> is the number of sides.
289
+ |-
290
+ | Regular polygon
291
+ |<math>\frac{1}{2}nR^2\cdot \sin(2\pi/n) = nr^2 \tan(\pi/n)\,\!</math>
292
+ |<math> R </math> is the radius of a circumscribed circle, <math>r</math> is the radius of an inscribed circle, and <math>n</math> is the number of sides.
293
+ |-
294
+ | Regular polygon
295
+ |<math>\tfrac12 ap = \tfrac12 nsa \,\!</math>
296
+ |<math>n</math> is the number of sides, <math>s</math> is the side length, <math>a</math> is the [[apothem]], or the radius of an inscribed circle in the polygon, and <math>p</math> is the perimeter of the polygon.
297
+ |-
298
+ |[[Circle]]
299
+ |<math>\pi r^2\ \text{or}\ \frac{\pi d^2}{4} \,\!</math>
300
+ |<math>r</math> is the radius and <math>d</math> the [[diameter]].
301
+ |-
302
+ |[[Circular sector]]
303
+ |<math>\frac{\theta}{2}r^2\ \text{or}\ \frac{L \cdot r}{2}\,\!</math>
304
+ |<math>r</math> and <math>\theta</math> are the radius and angle (in [[radian]]s), respectively and <math>L</math> is the length of the perimeter.
305
+ |-
306
+ |[[Ellipse]]<ref name=AF/>
307
+ |<math>\pi ab \,\!</math>
308
+ |<math>a</math> and <math>b</math> are the [[semi-major axis|semi-major]] and [[semi-minor axis|semi-minor]] axes, respectively.
309
+ |-
310
+ |Total surface area of a [[Cylinder (geometry)|cylinder]]
311
+ |<math>2\pi r (r + h)\,\!</math>
312
+ |<math>r</math> and <math>h</math> are the radius and height, respectively.
313
+ |-
314
+ |Lateral surface area of a cylinder
315
+ |<math>2 \pi r h \,\!</math>
316
+ |<math>r</math> and <math>h</math> are the radius and height, respectively.
317
+ |-
318
+ |Total surface area of a [[sphere (geometry)|sphere]]<ref name=MathWorldSurfaceArea/>
319
+ |<math>4\pi r^2\ \text{or}\ \pi d^2\,\!</math>
320
+ |<math>r</math> and <math>d</math> are the radius and diameter, respectively.
321
+ |-
322
+ |Total surface area of a [[pyramid (geometry)|pyramid]]<ref name=MathWorldSurfaceArea/>
323
+ |<math>B+\frac{P L}{2}\,\!</math>
324
+ |<math>B</math> is the base area, <math>P</math> is the base perimeter and <math>L</math> is the slant height.
325
+ |-
326
+ |Total surface area of a [[pyramid (geometry)|pyramid]] [[frustum]]<ref name=MathWorldSurfaceArea/>
327
+ |<math>B+\frac{P L}{2}\,\!</math>
328
+ |<math>B</math> is the base area, <math>P</math> is the base perimeter and <math>L</math> is the slant height.
329
+ |-
330
+ |[[Square]] to circular area conversion
331
+ |<math>\frac{4}{\pi} A\,\!</math>
332
+ |<math>A</math> is the area of the [[square]] in square units.
333
+ |-
334
+ |[[Circle|Circular]] to square area conversion
335
+ |<math>\frac{\pi}{4} C\,\!</math>
336
+ |<math>C</math> is the area of the [[circle]] in circular units.
337
+ <!--
338
+ |-
339
+ |A revolution of f(x) about the x-axis
340
+ |<math>2 \pi \int_{a}^{b} |f(x)| \sqrt{1+(f'(x))^2}dx</math>
341
+ |-
342
+ |Area of surface of revolution of f(x) about the y-axis
343
+ |<math>2 \pi \int_{a}^{b} |x| \sqrt{1+(f'(x))^2}dx</math>
344
+ -->
345
+ |}
346
+
347
+ The above calculations show how to find the areas of many common [[shapes]].
348
+
349
+ The areas of irregular polygons can be calculated using the "[[Surveyor's formula]]".<ref name=Surveyor>{{cite journal|last1=Braden|first1=Bart|date=September 1986|title= The Surveyor's Area Formula|journal=The College Mathematics Journal|volume=17|issue=4|pages=326–337|publisher=|doi=10.2307/2686282|url=http://www.maa.org/pubs/Calc_articles/ma063.pdf|accessdate=15 July 2012}}</ref>
350
+
351
+ ===Relation of area to perimeter===
352
+
353
+ The [[isoperimetric inequality]] states that, for a closed curve of length ''L'' (so the region it encloses has [[perimeter]] ''L'') and for area ''A'' of the region that it encloses,
354
+
355
+ :<math>4\pi A \le L^2,</math>
356
+
357
+ and equality holds if and only if the curve is a [[circle]]. Thus a circle has the largest area of any closed figure with a given perimeter.
358
+
359
+ At the other extreme, a figure with given perimeter ''L'' could have an arbitrarily small area, as illustrated by a [[rhombus]] that is "tipped over" arbitrarily far so that two of its [[angle]]s are arbitrarily close to 0° and the other two are arbitrarily close to 180°.
360
+
361
+ For a circle, the ratio of the area to the [[circumference]] (the term for the perimeter of a circle) equals half the [[radius]] ''r''. This can be seen from the area formula ''πr''<sup>2</sup> and the circumference formula 2''πr''.
362
+
363
+ The area of a [[regular polygon]] is half its perimeter times the [[apothem]] (where the apothem is the distance from the center to the nearest point on any side).
364
+
365
+ ===Fractals===
366
+
367
+ Doubling the edge lengths of a polygon multiplies its area by four, which is two (the ratio of the new to the old side length) raised to the power of two (the dimension of the space the polygon resides in). But if the one-dimensional lengths of a [[fractal]] drawn in two dimensions are all doubled, the spatial content of the fractal scales by a power of two that is not necessarily an integer. This power is called the [[fractal dimension]] of the fractal.
368
+ <ref name="Mandelbrot1983">
369
+ {{cite book
370
+ |last=Mandelbrot |first=Benoît B.
371
+ |title=The fractal geometry of nature
372
+ |url=https://books.google.com/books?id=0R2LkE3N7-oC
373
+ |accessdate=1 February 2012
374
+ |year=1983
375
+ |publisher=Macmillan
376
+ |isbn=978-0-7167-1186-5}}</ref>
377
+
378
+ ==Area bisectors==
379
+ {{Main|Bisection#Area bisectors and perimeter bisectors}}
380
+
381
+ There are an infinitude of lines that bisect the area of a triangle. Three of them are the [[Median (triangle)|medians]] of the triangle (which connect the sides' midpoints with the opposite vertices), and these are [[Concurrent lines|concurrent]] at the triangle's [[centroid]]; indeed, they are the only area bisectors that go through the centroid. Any line through a triangle that splits both the triangle's area and its perimeter in half goes through the triangle's incenter (the center of its [[incircle]]). There are either one, two, or three of these for any given triangle.
382
+
383
+ Any line through the midpoint of a parallelogram bisects the area.
384
+
385
+ All area bisectors of a circle or other ellipse go through the center, and any [[Chord (geometry)|chords]] through the center bisect the area. In the case of a circle they are the diameters of the circle.
386
+
387
+ ==Optimization==
388
+ Given a wire contour, the surface of least area spanning ("filling") it is a [[minimal surface]]. Familiar examples include [[soap bubble]]s.
389
+
390
+ The question of the [[filling area conjecture|filling area]] of the [[Riemannian circle]] remains open.<ref>{{citation
391
+ | last = Gromov | first = Mikhael
392
+ | issue = 1
393
+ | journal = Journal of Differential Geometry
394
+ | mr = 697984
395
+ | pages = 1–147
396
+ | title = Filling Riemannian manifolds
397
+ | url = http://projecteuclid.org/euclid.jdg/1214509283
398
+ | volume = 18
399
+ | year = 1983}}.</ref>
400
+
401
+ The circle has the largest area of any two-dimensional object having the same perimeter.
402
+
403
+ A [[cyclic polygon]] (one inscribed in a circle) has the largest area of any polygon with a given number of sides of the same lengths.
404
+
405
+ A version of the [[isoperimetric inequality]] for triangles states that the triangle of greatest area among all those with a given perimeter is [[equilateral]].<ref name=Chakerian/>
406
+
407
+ The triangle of largest area of all those inscribed in a given circle is equilateral; and the triangle of smallest area of all those circumscribed around a given circle is equilateral.<ref>Dorrie, Heinrich, ''100 Great Problems of Elementary Mathematics'', Dover Publ., 1965: 379–380.</ref>
408
+
409
+ The ratio of the area of the incircle to the area of an equilateral triangle, <math>\frac{\pi}{3\sqrt{3}}</math>, is larger than that of any non-equilateral triangle.<ref>Minda, D., and Phelps, S., "Triangles, ellipses, and cubic polynomials", ''[[American Mathematical Monthly]]'' 115, October 2008, 679–689: Theorem 4.1.</ref>
410
+
411
+ The ratio of the area to the square of the perimeter of an equilateral triangle, <math>\frac{1}{12\sqrt{3}},</math> is larger than that for any other triangle.<ref name=Chakerian>Chakerian, G. D. "A Distorted View of Geometry." Ch. 7 in ''Mathematical Plums'' (R. Honsberger, editor). Washington, DC: Mathematical Association of America, 1979: 147.</ref>
412
+
413
+ ==See also==
414
+ *[[Brahmagupta quadrilateral]], a cyclic quadrilateral with integer sides, integer diagonals, and integer area.
415
+ *[[2 × 2 real matrices#Equi-areal mapping|Equi-areal mapping]]
416
+ *[[Heron triangle]], a triangle with integer sides and integer area.
417
+ *[[List of triangle inequalities#Area]]
418
+ *[[One-seventh area triangle]], an inner triangle with one-seventh the area of the reference triangle.
419
+ :*[[Routh's theorem]], a generalization of the one-seventh area triangle.
420
+ *[[Orders of magnitude (area)]]&mdash;A list of areas by size.
421
+ *[[Pentagon#Derivation of the area formula]]
422
+ *[[Planimeter]], an instrument for measuring small areas, e.g. on maps.
423
+ *[[Quadrilateral#Area of a convex quadrilateral]]
424
+ *[[Robbins pentagon]], a cyclic pentagon whose side lengths and area are all rational numbers.
425
+ *[[Volume]]
426
+
427
+ ==References==
428
+ {{reflist|30em}}
429
+
430
+ ==External links==
431
+ {{Sisterlinks|d=Q11500|commons=Category:Area|wikt=area|b=no|v=no|voy=no|species=no|mw=no|m=no|n=no|s=no|q=no}}
432
+ {{Commons category|Area}}
433
+ {{Wiktionary}}
434
+
435
+ {{Classical mechanics derived SI units}}
436
+ {{Authority control}}
437
+
438
+ [[Category:Area| ]]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infoboxer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Shepelev
@@ -149,6 +149,7 @@ files:
149
149
  - lib/infoboxer/tree/inline.rb
150
150
  - lib/infoboxer/tree/linkable.rb
151
151
  - lib/infoboxer/tree/list.rb
152
+ - lib/infoboxer/tree/math.rb
152
153
  - lib/infoboxer/tree/node.rb
153
154
  - lib/infoboxer/tree/nodes.rb
154
155
  - lib/infoboxer/tree/paragraphs.rb
@@ -163,6 +164,7 @@ files:
163
164
  - profile/pages/canada.wiki
164
165
  - profile/pages/ukraine.wiki
165
166
  - profile/pages/usa.wiki
167
+ - regression/pages/area.wiki
166
168
  - regression/pages/articuno.wiki
167
169
  - regression/pages/canada.wiki
168
170
  - regression/pages/chiang_mai.wiki