Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-332-spherical-triangles.english.md
Oliver Eyton-Williams bd68b70f3d Feat: hide blocks not challenges (#39504)
* fix: remove isHidden flag from frontmatter

* fix: add isUpcomingChange

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* feat: hide blocks not challenges

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00

1.3 KiB

id, challengeType, title, forumTopicId
id challengeType title forumTopicId
5900f4b91000cf542c50ffcb 5 Problem 332: Spherical triangles 301990

Description

A spherical triangle is a figure formed on the surface of a sphere by three great circular arcs intersecting pairwise in three vertices.

Let C(r) be the sphere with the centre (0,0,0) and radius r. Let Z(r) be the set of points on the surface of C(r) with integer coordinates. Let T(r) be the set of spherical triangles with vertices in Z(r). Degenerate spherical triangles, formed by three points on the same great arc, are not included in T(r). Let A(r) be the area of the smallest spherical triangle in T(r).

For example A(14) is 3.294040 rounded to six decimal places.

Find A(r). Give your answer rounded to six decimal places.

Instructions

Tests

tests:
  - text: <code>euler332()</code> should return 2717.751525.
    testString: assert.strictEqual(euler332(), 2717.751525);

Challenge Seed

function euler332() {
  // Good luck!
  return true;
}

euler332();

Solution

// solution required