Scala scala.math Package Programs

In Scala programming language, scala.math package contains the various methods for performing basic numeric operations such as elementary exponential, logarithmic, root and trigonometric functions, etc.

Practice these Scala scala.math Package programs to learn the concept of performing mathematical operations, these programs contain the solved code, outputs, and the detailed explanation of the statements, functions used in the Scala scala.math Package programs.

List of Scala scala.math Package Programs

  1. Scala program to find the largest number using scala.math.max() function
  2. Scala program to find the smallest number using scala.math.min() function
  3. Scala program to perform ceiling operation on given number using scala.math.ceil() function
  4. Scala program to perform floor operation on given number using scala.math.floor() function
  5. Scala program to get the natural logarithm of a Double number using scala.math.log() function
  6. Scala program to get the base 10 logarithm of a Double number using scala.math.log10() function
  7. Scala program to get the Euler's number e raised to the power of a Double number using scala.math.exp() function
  8. Scala program to get the absolute value of a given number using scala.math.abs() function
  9. Scala program to calculate the cube root of a given number using scala.math.cbrt() function
  10. Scala program to calculate the IEEE remainder of given numbers using scala.math.IEEEremainder() function
  11. Scala program to convert the angle measured radian to a degree using scala.math.toDegrees() function
  12. Scala program to convert the angle measured in the degree to radian using scala.math.toRadians() function




Comments and Discussions




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.