Skip to content

Commit

Permalink
Merge pull request duckduckgo#3369 from 122131/test
Browse files Browse the repository at this point in the history
Geometry Formula Cheat Sheet: Added perimeter and aliases
  • Loading branch information
GuiltyDolphin authored Jul 12, 2016
2 parents 045e528 + 0b06489 commit cf92467
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 5 deletions.
38 changes: 34 additions & 4 deletions share/goodie/cheat_sheets/json/geometry-formula.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
},

"aliases": [
"volume formulas", "area formulas", "surface area formulas"
"volume", "area", "surface area", "geometry", "perimeter"
],

"template_type": "reference",

"section_order": [
"Area Formulas",
"Perimeter/Circumference Formulas",
"Surface Area Formulas",
"Volume Formulas"
],
Expand All @@ -36,7 +36,15 @@
},
{
"key": "Circle",
"val": "π × r²"
"val": "π × radius²"
},
{
"key": "Ellipse",
"val": "π × semimajor axis × semiminor axis"
},
{
"key": "Parallelogram",
"val": "base × height"
},
{
"key": "Trapezoid",
Expand Down Expand Up @@ -87,6 +95,28 @@
"val": "(1/3) × π × radius² × height"
}

],
"Perimeter/Circumference Formulas": [
{
"key": "Square",
"val": "side × 4"
},
{
"key": "Rectangle",
"val": "2 × (length + width)"
},
{
"key": "Triangle",
"val": "side1 + side2 + side3"
},
{
"key": "Circle",
"val": "2 × π × radius"
},
{
"key": "Parallelogram",
"val": "2 × (base + height)"
}
]
}
}
}
5 changes: 4 additions & 1 deletion share/goodie/cheat_sheets/triggers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,7 @@ template_map:
#
# NOTE: IDs should be in alphabetical order (and the categories and triggers) as
# much as possible to ensure it is as easy as possible to locate triggers.
# custom_triggers:
custom_triggers:
geometry_formula_cheat_sheet:
additional_categories:
- "math"

0 comments on commit cf92467

Please sign in to comment.