sphere volume test function

sphere volume test function - output = true if...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 %sphereVolumefunction(number) -> number %Description: % This takes the given value, performs the necessary computations then % returns the result as a number. function output = sphereVolumeTest()
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: output = true if (sphereVolume(0) ~= 0) disp('error calculating sphereVolume(1)') output = false else disp('sphereVolumeTest passed') end...
View Full Document

Ask a homework question - tutors are online