Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class FunctionCalculator {
  4. public static void main(String[] args) {
  5.  
  6. System.out.println("Please enter x");
  7. Scanner scanner = new Scanner(System.in);
  8. double x = scanner.nextDouble();
  9. double fnc = Math.log(Math.sin(x) + (Math.exp(x) * ((Math.sqrt(x) / Math.PI))));
  10. System.out.println(fnc);
  11.  
  12.  
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement