Changes

Jump to navigation Jump to search
190 bytes added ,  09:58, 12 August 2016
no edit summary
Line 56: Line 56:       −
9. Create a function that given the radius and height of a cylinder, returns an array of radius height surface area and volume. Use Greek letters to be similar to formula that are generally used.  
+
9. Create a function that given the radius and height of a cylinder, returns an array of radius height surface area and volume. Use Greek letters to be similar to formula that are generally used.
 +
===Answer===
 +
h = 0.05m
 +
a:= π<*>r<*>(r<+>(h^2<+>r^2)^0.5)
 +
v:= π<*>r^2<*>h</>3
 +
x = ["r=" r; "h=" h; "area=" a(r,h); "volume=" v(r,h)]
 +
or
 +
x = [["r","h","area","volume"],[r,h,a(r,h),v(r,h)]]
    
10. Do the same for a cone as equations and as a function.  
 
10. Do the same for a cone as equations and as a function.  
writer
5,435

edits

Navigation menu