Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com> Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
		
			
				
	
	
		
			72 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			72 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
---
 | 
						|
id: 5900f4b91000cf542c50ffcb
 | 
						|
challengeType: 5
 | 
						|
isHidden: false
 | 
						|
title: 'Problem 332: Spherical triangles'
 | 
						|
forumTopicId: 301990
 | 
						|
---
 | 
						|
 | 
						|
## Description
 | 
						|
<section id='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.
 | 
						|
</section>
 | 
						|
 | 
						|
## Instructions
 | 
						|
<section id='instructions'>
 | 
						|
 | 
						|
</section>
 | 
						|
 | 
						|
## Tests
 | 
						|
<section id='tests'>
 | 
						|
 | 
						|
```yml
 | 
						|
tests:
 | 
						|
  - text: <code>euler332()</code> should return 2717.751525.
 | 
						|
    testString: assert.strictEqual(euler332(), 2717.751525);
 | 
						|
 | 
						|
```
 | 
						|
 | 
						|
</section>
 | 
						|
 | 
						|
## Challenge Seed
 | 
						|
<section id='challengeSeed'>
 | 
						|
 | 
						|
<div id='js-seed'>
 | 
						|
 | 
						|
```js
 | 
						|
function euler332() {
 | 
						|
  // Good luck!
 | 
						|
  return true;
 | 
						|
}
 | 
						|
 | 
						|
euler332();
 | 
						|
```
 | 
						|
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
</section>
 | 
						|
 | 
						|
## Solution
 | 
						|
<section id='solution'>
 | 
						|
 | 
						|
```js
 | 
						|
// solution required
 | 
						|
```
 | 
						|
 | 
						|
</section>
 |