Problem 47864. Calculate the Surface Area of an Ellipsoid
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
Rafael S.T. Vieira
on 7 Nov 2022
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.
Solution Comments
Show commentsProblem Recent Solvers8
Suggested Problems
-
6530 Solvers
-
Project Euler: Problem 3, Largest prime factor
1595 Solvers
-
Mechanical Advantage of a Gear Train
244 Solvers
-
351 Solvers
-
Find my daddy long leg (No 's')
2477 Solvers
More from this Author56
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!