Hello, friends.
Today we discuss about cylinder.
As you see in the given figure, the height of the cylinder is small h and the radius is R, so there
are different formulas available on Google related to the given.
Cylinder, as you see it, is how you can find out surface area diameter.
So first we just go for the volume.
We know that volume is pi R square H.
So just create this formula.
So just go to the VI over here.
So you just need two input variables.
One is.
Radius, as you see.
Second one is.
Your height, you can make it integer also.
But right now I'm just make it floating type.
Okay, so this is my input variables.
Now for the volume, I just need to create the formula.
Okay.
So it is up to you how you can use it.
So over here I just create.
Uh.
Given.
I just multiply over here because I need pi r squared h.
Okay.
So you can just use this one r square.
It will create you r square.
So over here, this is pi r square H You just go through the compound function.
Also, in that case, you need not require any additional multiplication function.
So just r square h and need one constant that is pi.
You just go to the constant over here.
This is pi.
As you see.
And over here I just create an indicator related to the volume.
Okay.
So over here I just find out the volume control.
We will remove all the broken wires.
Let's say the radius is two and the height is four.
In that case, the volume is 11.1416.
Okay, so this is how you can find out the volume.
Let's go with another function.
If you want to find out the surface area, the formula is two pi r h plus two pi r square.
So let's do this.
In the lab view.
So I just need to pi r as you see, two pi r h so I just need compound function over here.
The volume is not right because this is the addition function over here.
I need to multiply it.
Okay?
I just change it right now.
It will give me the proper answer.
Okay.
So let's run it.
As you see, 50.2655 is the right answer.
Now I just copy this compound function.
I need to pi r h.
Okay.
So this is our this is H and this is pi.
Then I need a constant create a constant over here that is two and it will give me the two pi r h.
Okay.
Over here I got the two pi r h now I just need two pi r square two pi r square because the area two
pi r h is this is and two pi r square is above one and below one.
Okay.
So I just need another compound function
to.
I just use same pie.
Our square needed.
So our square is over here.
So you just need to add all these and you just got the surface area.
So I just use an indicator over here.
This is surface area of your.
Cylinder.
Okay.
We just need to connect over here.
Run it for the given values.
As you see, surface area is 59.4071 and the units is based on your input units.
If it is in meter, then it is meter square and the volume is meter cube.
Okay, so this is how you can find out.
Now just go with the another formula.
Let's say if you want to find out the lateral surface.
So lateral surface is your two pi r h.
Okay.
So already we have in our case.
Over here.
This is my lateral surface, so just copy the indicator.
Connect this over here.
And this is my lateral surface.
You just run it.
You check out the output.
As you see, this is my lateral surface for the given input.
Okay.
So like this, if you want to go with another formula, you can create your own.
Okay?
So.
So you can create your own formulas using these way.
This is all about today's lecture.
Thank you.