1
00:00:09,000 --> 00:00:11,000
Hello, friends.

2
00:00:11,000 --> 00:00:18,000
Today we discuss how to find out the compound interest using math script window.

3
00:00:19,000 --> 00:00:30,000
So first of all, I just go to structures math script window or here, this is my math script window.

4
00:00:30,000 --> 00:00:43,000
So for the compound interest, we have a formula A is equal to P into parenthesis in between one plus

5
00:00:43,000 --> 00:00:46,000
R divided by 100 whole P.

6
00:00:47,000 --> 00:00:59,000
So first I have to calculate the power of one plus r divided by 100 which raise to t so for that purpose

7
00:00:59,000 --> 00:01:07,000
I just use a variable h that is equal to one plus.

8
00:01:10,000 --> 00:01:13,000
Or divide by 100.

9
00:01:13,000 --> 00:01:20,000
Or here are is my add input or is my interest.

10
00:01:20,000 --> 00:01:30,000
Okay, so now I want to calculate the power because t is raised to one plus r raise to 100.

11
00:01:30,000 --> 00:01:38,000
So to calculate this, let's say I have another variable G that is equal to power.

12
00:01:38,000 --> 00:01:43,000
This is my function that is used in math script window.

13
00:01:43,000 --> 00:01:50,000
So power of H into t h comma t.

14
00:01:51,000 --> 00:01:52,000
Okay.

15
00:01:52,000 --> 00:01:54,000
So it will give me the power.

16
00:01:54,000 --> 00:01:58,000
One plus r divided by 100 raised to T.

17
00:01:58,000 --> 00:02:02,000
So now my formula is amount.

18
00:02:02,000 --> 00:02:07,000
It is equal to principal into G.

19
00:02:08,000 --> 00:02:11,000
So now I just add input.

20
00:02:11,000 --> 00:02:13,000
That is my principal.

21
00:02:14,000 --> 00:02:16,000
I want to just add input.

22
00:02:16,000 --> 00:02:18,000
That is my time.

23
00:02:18,000 --> 00:02:18,000
T.

24
00:02:18,000 --> 00:02:22,000
And over here I just add output.

25
00:02:22,000 --> 00:02:24,000
That is my amount.

26
00:02:25,000 --> 00:02:27,000
This is my output.

27
00:02:27,000 --> 00:02:30,000
So over here I just create indicator.

28
00:02:30,000 --> 00:02:35,000
So this is complex value.

29
00:02:35,000 --> 00:02:37,000
So I just change it to value.

30
00:02:38,000 --> 00:02:43,000
So over here I just create control for rate of interest.

31
00:02:43,000 --> 00:02:45,000
Create control for principal.

32
00:02:45,000 --> 00:02:47,000
Create control for the time.

33
00:02:48,000 --> 00:02:51,000
So control t control u.

34
00:02:51,000 --> 00:02:54,000
It will minimize my function.

35
00:02:54,000 --> 00:02:57,000
Let's say I want to find out also the compound interest.

36
00:02:57,000 --> 00:03:00,000
So C is my compound interest.

37
00:03:00,000 --> 00:03:03,000
It is equal to amount minus principal.

38
00:03:03,000 --> 00:03:07,000
So I just add one more output over here.

39
00:03:07,000 --> 00:03:09,000
That is my compound interest.

40
00:03:09,000 --> 00:03:13,000
So it will give me the compound interest.

41
00:03:13,000 --> 00:03:16,000
Again, I just change it to double precision.

42
00:03:17,000 --> 00:03:26,000
So as you see over here in this case, so when I put some value inside it, let's say rate of interest

43
00:03:26,000 --> 00:03:27,000
is 10%.

44
00:03:27,000 --> 00:03:29,000
Principal amount is 100.

45
00:03:29,000 --> 00:03:32,000
And rate of time is one.

46
00:03:32,000 --> 00:03:38,000
So in this case, amount should be 110 and the compound interest should be ten.

47
00:03:40,000 --> 00:03:42,000
So as you see.

48
00:03:42,000 --> 00:03:49,000
So if you want to go for multiple more then one year it is now it is two year.

49
00:03:49,000 --> 00:03:55,000
So check the output is 121 and compound interest is 21.

50
00:03:55,000 --> 00:04:01,000
So this is how you can work with math script window in LabVIEW.

51
00:04:01,000 --> 00:04:02,000
Thank you.

