Hello friends.
Today we just discuss about different areas related to sphere or different formulas related to sphere.
As you see over here, I have a sphere with radius R and the diameter D, So first we just go with the
volume, the volume of the sphere as we know, four divided by Pi R Cube.
Okay, so let's create the formula for the given case control D so I need one input variable that is
R that is radius.
So I just create four divided by three pi r cube.
So I just need a divide.
Function input four divided by three
and I just need to multiply
four divided by three pi constant.
I need just connect this and over here r cube.
So for the r cube I just need compound function because I need to create a cube over here.
So r into r into r will give me it will give me the cube.
As you see, you just multiply this and over here again you change the constant from multiply to the
mode, from multiply to addition to multiply.
And over here we got the volume of one sphere.
Okay, so let's the radius is two.
The volume of the sphere is 33.5103.
Let's check for another formula as you see if you want to find out the surface area, it is four pi
r square.
Let's create this given formula.
So four pi r square for that.
I just go with the compound over here.
I need r square function.
So this is my input radius.
It will give me r square.
I need pi, I need four.
So four is over here as you see.
So control you will minimize the function.
And over here I just create an indicator.
This is my surface area
of the sphere.
So let's run it.
So the surface area is 11.1416m square if the input radius is in meters and if you want to go with three,
you can also in real time realize let's check.
So this is how you can check for different values.
You can also go with floating values.
Let's say it is 2.5.
Okay, so this is how you can create your own formulas in labview.
Thank you.