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

17th Oct 2022, 8:10 PM
Mayur Patil
8 Respuestas
+ 3
r = Radius, v = Volume, h = Height, pi = 3.14159 v = pi*h*h*(r-h/3)
17th Oct 2022, 8:38 PM
JaScript
JaScript - avatar
+ 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.
19th Oct 2022, 7:24 AM
JaScript
JaScript - avatar
+ 1
I want a Algorithm !
18th Oct 2022, 2:52 PM
Mayur Patil
+ 1
thanks for implementation but its not give Proper answer. input radius=7.4551911 volumn=348.9145181 output deepth of height = 4.2938338
19th Oct 2022, 2:12 AM
Mayur Patil
+ 1
Thank you so much JaScript.
19th Oct 2022, 12:28 PM
Mayur Patil
0
mayur patil you got the solution?
22nd Oct 2022, 9:05 AM
harsha vardhan
harsha vardhan - avatar
0
.
7th Apr 2023, 12:45 PM
Dalan Hamid Aziz
Dalan Hamid Aziz - avatar
0
What start value of h you have taken @ JaScript
3rd May 2023, 7:37 AM
Jatin Gupta
Jatin Gupta - avatar