Calculate the Surface Area of an Ellipsoid: (x/a)^2+(y/b)^2+(z/c)^2=1. Input will be a matrix [a,b,c]. Round output to four decimal places.
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers10
Suggested Problems
-
Project Euler: Problem 10, Sum of Primes
2126 Solvers
-
Sum of first n terms of a harmonic progression
520 Solvers
-
Self-similarity 3 - Every other pair of terms
59 Solvers
-
Write c^3 as sum of two squares a^2+b^2
331 Solvers
-
Easy Sequences 2: Trigonometric function with integral input and output
45 Solvers
More from this Author65
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Please, don't use the function isequal with floats. Apply a tolerance to the test suite: abs(a-b)<1e-4. My code computes the exact value for the area (using incomplete elliptic integrals of the first and second kind), and has trouble with rounding issues.