log() Method in java
Java Programming Language / Number Class in java
867Program:
public class WrapperlogMethod { public static void main(String args[]) { double x = 13.635; double y = 3.76; System.out.printf("The value of e is %.4f%n", Math.E); System.out.printf("log(%.3f) is %.3f%n", x, Math.log(x)); } } /* Returns the natural logarithm of the argument. */
Output:
The value of e is 2.7183 log(13.635) is 2.613 Press any key to continue . . .
This Particular section is dedicated to Programs only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.
# C Tutorials
# JAVA Tutorials
# HTML Tutorials
# Computer Fundamental
# Data Structure
# DBMS Tutorials
SQL
# C# Language
# R Language
# PHP
# Python
# Vue JS