Hello, friends.
Today we discuss about one algebra formula.
That is A plus B whole square.
It is equal to a square plus B square plus two.
AB.
Let's verify it using math script window in LabVIEW for that purpose I just go to structures math script
window over here.
This is my math script window.
So over here I just add input A and second input is my B, So first I have to check out what is the
value of A plus B whole square.
So to find out the value of A plus, b, C is equal to I, just a plus B into a.
Plus.
Be.
It will give me A plus B whole square.
You can use this.
Or let's say another one is D is equal to A plus B?
And if you want to find out the power or you can check for square of it.
So let's say P is equal to power.
Of C comma second value.
That is my two.
So just it will give me P is equal to A plus B whole square.
So the value of P and C should be same.
So the formula for this is we know that A plus B whole square is equal to a square.
So let's say another variable G is equal to A into a.
This is my A square plus B into B.
This is my B square plus two into A into B.
So the output of G, P and C should be same.
So let's check.
I just add output.
So my output is first.
It is c because it will give me a plus b whole square.
Second one output should be.
P This will give me also A plus B whole square and the output is g.
So the output of these should be same.
Just create indicator.
Create indicator over here.
And this is my input.
Create control.
So as you see over here, in case of power, I just change it to double.
Double precision.
So this is my output and this is my input.
So let's check.
So let's A is two and B is three.
So A plus B will become two plus three is five.
Five square is equal to 25.
So output should be 25.
In all these, as you see over here, the output is different because it will give the power raise to
two.
So let's check.
So if I put one over here, so what is the output as you see?
If you want to check out the power C raise to one because over here it will give you C raise to.
Oh, okay.
I just.
Did a mistake or here.
Or here, it should be D in place of C, so that's why it will give me.
So the correct format is this.
So now it will give you the correct output.
That is 25 because I just squared the value of 25 into two means 25 into 25, it will give me 625.
Okay, so this is how you can work with math script window to verify an algebra question.
Let's go with another algebra question in this.
Let's say I want to check out the formula of A minus B whole square.
So I just put minus over here.
I just put minus over here again.
And this also put minus and the formula for A minus B, whole square is A square plus.
B square minus two.
A, B.
Let's check.
So let's say it is my five.
The value of A is my five and B is two.
So five minus two, whole square should be nine.
Let's check.
So as you see, the output is nine in all the cases.
So this is how you can verify algebra quotient of second order.
So thank you.