 Hello everyone, myself Professor Pritish Chitrake, working in mechanical engineering department in Valchandriy Stop Technology. In our third session, we will discuss mathematical functions. What are the learning outcomes? The students will be able to explain the different mathematical functions in Zao programming. And with the help of these mathematical functions, they will execute the program regarding the mathematical functions. First, we will see the second session, the recap of the second session. After that, the mathematical functions. What are the different mathematical functions that we can use in the Zao programming? And after that, the program based on the mathematical functions. So what we have discussed in the second session, we will have the recap of that. There are the two ways of Zao programming, always the Zao programming is the two step programming, Zao compiler and Zao interpreter. Zao source code means the program that will be converted into the machine code directly with the help of Zao compiler and the Zao interpreter. But that is done with the help of two parts. That is if suppose that is an application type. So that will be done with the help of Zao interpreter and which is we will get got the output in the application type. But if suppose that is the applet type, we will get the output in the applet we were or the web browser, which is the which will be the output, Zao development kit, Zao development kit, Zao runtime environment and Zao virtual machine, these are the three things which are very important in Zao virtual machine and the Zao programming. So what are the different types of Zao development kit? Zao compiler, in the Zao compiler, the source code will be converted into the byte code with the help of Zao compiler code, that is Zao C in the Zao interpreter, that is the Zao will be the code where we are having the byte code and that will be converted into the output with the help of Zao interpreter. Applet viewer is very important Zao development kit file. Suppose we want to operate the applet programming, applet viewer is the file which will provide you the output regarding the applet programs. Zao H, suppose we want to develop the header files in the Zao programming. So Zao H is the Zao development kit with the help of which we can develop the different header files because header files are absent in Zao programming. Zao P with the help of which we can convert byte code into source code that is a reversible process. We are having the source code in the program and we want the output means first we have to convert it into the byte code after that it will be converted into the machine code means the output. But now suppose we are having the byte code that is class file and we want the source code means the program form that class file. So that will be possible with the help of Zao P file. Zao document means suppose we want to create the HTML pages or the XML pages. Yes, we can create with the help of Zao document file. Zao runtime environment that is the second file which is based in Zao programming. Zao runtime environment consists of the different files like the Zao virtual machine. In the next slide we will see what is meant by Zao virtual machine. Runtime class libraries. During the output of the program during the programming we require some of the variables, data, values, numbers, letters. So these all these things which are present in the libraries and which is a part of a class. During the runtime of the program it is very important. User interface toolkits that is abstract window toolkit which is very important for the graphical entities. For the applet programming these two Zao runtime environment is very important. Zao plugin and Zao web start. For applet we were the output of the applet program which will be achieved in the internet web page only. Zao virtual machine. So what will be the conversion whenever we are having the Zao virtual machine? The program or the transcript or the source code will be converted into the virtual machine with the help of Zao compiler. So we are having the bytecode we are with us. So that is called as machine code. And after that that machine code will be achieved with the help of Zao interpreter. So this is very simple program. Suppose we want to print something. So with the help of system.order.println we can print a particular statement that is welcome to advance computer programming. So Zao C is the compiler, Zao is a two step process. First is the compilation, second is the interpretation. Now you want the output. Zao C space test.zao, test.zao is the name of the file. After compilation Zao space test, test is a class name. So Zao will be the interpreter. After interpretation of the program we will get the output that is welcome to advance computer programming that is present inside the system.order.println. You are having one question. What is the use of system.order.println? Just think about it. Now, now we are moving towards mathematical functions. There are different types of mathematical functions which can be used in the Zao programming. For example mat.max and mat.minium. So mat.function that is the particular abbreviation or the code for the mathematical functions. So whenever we want to type the mathematical functions we are providing like mat.max or maybe the mat.minium or the mat.square2. So these right things after the dot there are the functions. mat.max and mat.minium with the help of which we can get the maximum or minimum number between the two numbers that we have provided. mat.square2. The square root suppose you want to find out the square root of a number. Yes we can use the mat.square2. Similarly mat.cbrt. So mat.cuberoot suppose you want to find out the cube root of a number we can find out mat.log and mat.exp. So logarithmic value and the exponential value that is e raised to a number. Yes we can achieve with the help of log and exp. mat.seal and mat.floor suppose we are having the fractional number and we want the increase in number or the decrease in number by one. So we are using the seal or floor. mat.seal, sin, cos and tan these are the trigonometric functions. We are also having the hyperbolic functions like sin, h, cos, h and tan h. Suppose if you want to convert into the degrees that is radian into degree yes we can convert with the help of mat to degrees. So mat to radians means degree to radians we can convert. After that suppose you want to calculate cosec and cot of the particular values. So yes we can calculate with the help of mat.a sin, a cos and a tan. After that the last mathematical function that is number raise to number suppose we want to calculate 2 raise to 3 yes mat.pow that is power with the help of which we can calculate the number raise to number. Now these are the problem statement we will go to the first problem statement write the program with the help of different mathematical functions. We have discussed maybe 10 to 20 so this is the program. First we will declare the variable a with the data type double. So mat.max in the bracket 20, 78. So a is equal to mat.max in the bracket 20, 78. So that will be here there will be the calculation. What is the maximum number that will be calculated by the software that is our software manually we do not have to calculate anything after that the calculated value will be printed here that is maximum between 20 and 78 that will be plus a. So plus a value will be taken from this particular calculation similarly a is equal to mat.min 37,89. So minimum value from these two values will be kept here that is plus a mat.sqrt. So here we have to calculate the square root of 961 here there will be the calculation of square root of 961 and that will be printed with the help of square root of 961 is equal to plus a. So system.out.println with the help of which the double inverted commas statement will be printed as it is and the plus a. So the value will be calculated here a is equal to that particular square root value of 961 and that will be printed here with the help of plus sign. The plus means the particular value will be calculated that will be printed and recalled with the help of plus sign. Here we are calculating 6 raise to 8 so mat.power is equal to 6,8 so 6 raise to 8 will be calculated here and that will be printed with the help of plus a means only with the help of one variable only we can calculate that particular mathematical function and we can store and we can provide the output after that. Because I want to calculate log of 7 yes mat.log particular 7 value so log of 7 will be calculated mat.exe that is exponential of the 8 raise to 8 value will be calculated and that will be provided here so mat.seal so 20.23 so during the output we will see what is the actually the output regarding the mat.seal and mat.flow rounding up of the particular value that is 20.23 that will be 21. Here it is value that is 67.99 which is equal to 68 but with the help of mat.flow that is rounding down of the particular value by 1 that is will be 67 only after that. So sign of edge is 19 that is hyperbolic of 19 so sign of hyperbolic 19 will be calculated here mat.cos is 9 so cos 9 is where that will be calculated. So hyperbolic tan will be calculated here. Cubrate of 119 suppose I want to calculate yes mat.cbrt 119 will be stored here so last one will be mat.radiance 45 so the 45 degrees will be stored and that will be converted into radian with the help of this now we will see the output. So our class name is mat.fun and file name is mat.fun m capital we will go to the docs prompt our file is stored in the desktop so so java c mat.fun.java so java space mat.fun so these are the outputs so radian 45 that will be calculated here so this program we will see in the next session these are the references.