Math Functions in JAVA

Duration: 15 min

This video lesson is available to enrolled students.

Return to /learn/HEXAWARE-PREPARATION/programming-basics-ccjavapython/java-/java-programming-by-yash/asset-math-functions-in-java after enrolling

Inside: a video lesson and guided study material.

Module outline

  1. Quantitative Ability: Speed Mathematics and Basic Mathematics, Percentage, Ratio and Proportion (Ratios), Average, Profit and Loss, Simple Interest and Compound Interest, Time and Work, Pipe and Cistern, Speed Time and Distance, Number System, HCF LCM, Data Interpretation, Age Problems, Mixture and Alligation, Partnership, Algebra, Sequence and Series (Series), Mensuration and Geometry, Arithmetic
  2. Reasoning Ability: Puzzle Solving (Puzzles), Seating Arrangements, Coding Decoding, Blood Relations, Directions (Direction Test), Syllogisms, Data Sufficiency, Ranking, Order and Sequence, Series (Number and Letter Series) (Numerical Relations and Reasoning), Logical Sequence Of Words, Calendar, Clock, Cubes & Dices, Analytical Reasoning (Counting Figures Reasoning), Data Arrangement, Non Verbal Reasoning (Spatial Aptitude) (Spatial Reasoning) (Visual Reasoning), Deductive and Inductive Reasoning (Logical Deduction and Induction) (Prepositional Reasoning)
  3. Verbal Ability: Comprehension / Reading Comprehension / Unseen Passages (Critical Reasoning) (Paragraph Questions), Cloze Test (Cloze Passage), Sentence Re-arrangements (Para Jumbles) (Narrative Sequencing), Vocabulary, Sentence Completion (Fill in the blanks), Active Passive Voice (Voice), Direct and Indirect Speech, Subject Verb Agreement (Verb Noun Agreement), Tenses, Preposition, Articles, Sentence Correction (Error Correction)
  4. Programming Basics (MCQs + Interview): C Programming by Yash Sir, Programming in C++, Java, Python for Placements by Yash Sir
  5. OOPs (MCQs + Interview): Object Oriented Programming (OOPS)
  6. DBMS (MCQs + Interview): Basics of DBMS, ER Diagram, Relational Model & Functional Dependencies, Keys & Integrity Constraints, Normalization (1NF - BCNF), Transaction Management, Decomposition Properties & 4NF, Concurrency Control, Database Recovery, File Organization & Indexing, Relational Algebra, Database Security & Authorization
  7. SQL (MCQs + Interview): SQL
  8. Operating Systems (MCQs + Interview): Introduction to OS, Process Management, CPU Scheduling, Deadlock, Threads & Process Creation, Memory Management, Virtual Memory, Process Synchronization, Disc Scheduling, File Management, Security
  9. Computer Networks (MCQs + Interview): Introduction to CN, Data Communication, DLL: Access Control, DLL: Flow Control, DLL: Error Control, DLL: Framing, Data Link Layer - Ethernet, Net Layer: IPv4 & Proto, Net Layer: IP Addressing, Net Layer:Routing Protocol, Transport Layer Services, TL: Congestion & UDP, Application Layer, Hardware basics, Network Security, Mobile Technology, Cloud Computing and IoT, Cyber and Info Security
  10. Coding: Coding Questions by Yash Sir
  11. HR Interview: MR & HR Interview Preparation
AI summary & chapters

AI Summary

An AI-generated summary of this video lecture.

This educational video provides a comprehensive tutorial on the Math class in Java, focusing on its various static methods for performing mathematical operations. The lecture begins with an introduction to the topic, followed by a detailed walkthrough of core methods such as Math.max(), Math.min(), Math.sqrt(), Math.abs(), and Math.pow(), with the instructor explaining their syntax and demonstrating their use with code examples. The video then transitions to trigonometric functions, including Math.sin(), Math.cos(), and Math.tan(), and explains the conversion between degrees and radians using Math.toRadians() and Math.toDegrees(). The instructor further covers rounding functions like Math.ceil() and Math.floor(), and concludes with a summary of hyperbolic and angular math methods. The teaching style is interactive, with the instructor using a code editor to run the examples and a digital blackboard to write out formulas and explanations, making it a practical guide for learning Java's mathematical capabilities.

Chapters

  1. 0:00 – 2:00 00:00-02:00

    The video opens with a title slide for a Java programming tutorial, featuring the Java logo and the text 'Math Functions in Java'. The instructor, Yash Jain, appears in a small window in the bottom right corner. The slide transitions to a blue background with floating mathematical symbols and the title 'Math Functions in Java'. The instructor begins by introducing the topic, explaining that the Math class in Java provides a set of static methods for performing mathematical operations, which are essential for any programming language.

  2. 2:00 – 5:00 02:00-05:00

    The instructor displays a code snippet in a dark-themed editor, demonstrating the use of several Math class methods. He explains the syntax for Math.max(p, q) and Math.min(p, q), showing that they return the larger and smaller of two values, respectively. He then demonstrates Math.sqrt(49) and Math.sqrt(47), noting that the result is a double. The instructor also shows Math.abs(-5) and Math.abs(5), explaining that it returns the absolute value. He proceeds to demonstrate Math.pow(3, 2), which calculates 3 squared, and Math.log(2) and Math.log10(100), explaining the natural logarithm and base-10 logarithm functions. The instructor uses a digital blackboard to write out the expected results for each function, such as '10' for max and '7' for sqrt(49), to reinforce the concepts.

  3. 5:00 – 10:00 05:00-10:00

    The instructor continues to demonstrate the Math class methods. He shows the output of the code in the console, confirming that Math.max(5, 10) returns 10 and Math.min(5, 10) returns 5. He explains that Math.sqrt(49) returns 7.0 and Math.sqrt(47) returns approximately 6.855. He demonstrates that Math.abs(-5) returns 5.0 and Math.pow(3, 2) returns 9.0. He also shows that Math.log(2) returns approximately 0.693 and Math.log10(100) returns 2.0. The instructor then moves on to demonstrate the conversion of degrees to radians using Math.toRadians(90), explaining that 90 degrees is equal to π/2 radians. He writes the formula on the blackboard to illustrate the concept.

  4. 10:00 – 14:43 10:00-14:43

    The instructor demonstrates the trigonometric functions of the Math class, including Math.sin(90), Math.cos(90), and Math.tan(90), explaining that the input is in radians. He then shows the inverse trigonometric functions: Math.asin(1), Math.acos(0), and Math.atan(1). The video transitions to hyperbolic functions, with the instructor explaining Math.sinh(), Math.cosh(), and Math.tanh(). He then covers the ceiling and floor functions, demonstrating Math.ceil(2.45) and Math.floor(2.45), and explains that ceil rounds up to the nearest integer and floor rounds down. The instructor uses a table to summarize the methods, including Math.abs(), Math.max(), Math.min(), Math.round(), Math.sqrt(), Math.cbrt(), Math.pow(), and Math.signum(). He concludes by showing a table of hyperbolic and angular math methods, including Math.toDegrees() and Math.toRadians().

The video provides a structured and practical introduction to the Math class in Java. It begins with an overview of the class and its purpose, then systematically covers the most commonly used methods. The instructor uses a combination of code examples and on-screen annotations to explain the syntax and behavior of each function. The progression from basic arithmetic operations to more complex trigonometric and hyperbolic functions, along with the conversion between degrees and radians, creates a logical flow that builds a comprehensive understanding of the Math class. The use of a code editor to run the examples and a digital blackboard for explanations makes the tutorial highly effective for visual and practical learners.

Loading lesson…