Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Ejercicio8;
- public class FuncionMatem {
- public static double X;
- public FuncionMatem(double pX) {
- X = pX;
- }
- public void evaluar() {
- evaluarX(X);
- }
- public static void evaluarX(double x) {
- double x1 = Math.sqrt(Math.sin(x * (x * x + 2.0 / 9.0)))
- + Math.cos(6.0 * Math.PI + Math.tan(Math.pow(Math.E, x * x * x)));
- System.out.println(x1);
- }
- public static void main(String[] args) {
- FuncionMatem f1 = new FuncionMatem(0);
- f1.evaluar();
- f1.evaluarX(0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment