0
A spherical tank of radius R is filled with a volume V of liquid. What is the depth h of the liquid?
Input Radius = Volume Output Height
8 Answers
+ 3
r = Radius,
v = Volume,
h = Height,
pi = 3.14159
v = pi*h*h*(r-h/3)
+ 3
I have updated the start value of h and now the answeer is proper.
There should be in addition implemented a part for choosing of the start value depending of how big is the input.
That are complex math procedures, which can manage the behavior of the algorithm.
Mayur Patil You could play with it and with more input data and see what happend. Happy coding.
+ 1
I want a Algorithm !
+ 1
thanks for implementation but its not give Proper answer.
input
radius=7.4551911
volumn=348.9145181
output
deepth of height = 4.2938338
+ 1
Thank you so much JaScript.
0
mayur patil you got the solution?
0
.
0
What start value of h you have taken @ JaScript